タイトル: アイスペースウォーズ1
ジャンル: 弾幕STG+ADV
開発スタート: 2009年03月28日
現在の完成目標: 2010年3月
2月現在の開発進捗状況
シナリオ …… 90%
プログラム本体 …… 90%
ADV部スクリプト …… 70%
画像加工 …… 90%
音楽 …… 80%
デバッグ、仕上げ作業 …… 70%
延期予定:なし
その他:メンバーの一人が作ってくれたので
近々、PV動画を公開する予定。お楽しみに。
制作に協力してくれた方々に感謝します。
2010年2月5日金曜日
C++マルチスレッド
メンバー関数のマルチスレッドは少し細工が必要なので
プログラム例を載せます。
★Key.h
class Key
{
private:
HANDLE hThreadKanon;
static unsigned int __stdcall ThreadKanon(void *p);
void Kanon();
public:
Key();
~Key();
}
★Key.cpp
Key::Key()
{
hThreadKanon = (HANDLE)_beginthreadex(NULL, 0, &Key::ThreadKanon, this, 0, NULL);
}
Key::~Key()
{
WaitForSingleObject(hThreadKanon, INFINITE);
CloseHandle(hThreadKanon);
}
unsigned int __stdcall Key::ThreadKanon(void *p)
{
Key* pThis = (Key*)p;
pThis->Kanon();
_endthreadex(0);
return 0;
}
void Key::Kanon()
{
//実処理
}
プログラム例を載せます。
★Key.h
class Key
{
private:
HANDLE hThreadKanon;
static unsigned int __stdcall ThreadKanon(void *p);
void Kanon();
public:
Key();
~Key();
}
★Key.cpp
Key::Key()
{
hThreadKanon = (HANDLE)_beginthreadex(NULL, 0, &Key::ThreadKanon, this, 0, NULL);
}
Key::~Key()
{
WaitForSingleObject(hThreadKanon, INFINITE);
CloseHandle(hThreadKanon);
}
unsigned int __stdcall Key::ThreadKanon(void *p)
{
Key* pThis = (Key*)p;
pThis->Kanon();
_endthreadex(0);
return 0;
}
void Key::Kanon()
{
//実処理
}
登録:
投稿 (Atom)