⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 proto.h

📁 Space Invaders game
💻 H
字号:
//*********************************************************************
// function prototypes
//*********************************************************************

int PASCAL WinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpszCmdLine,
int cmdShow);


void InitInvaders(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpszCmdLine,
int cmdShow);


void InitInvadersFirst(
HINSTANCE hInstance);


void InitInvadersEvery(
HINSTANCE hInstance,
int cmdShow);


void CloseInvaders(
void);


BOOL CALLBACK About(
HWND hDlg,
UINT message,
WPARAM wParam,
LPARAM lParam);


BOOL CALLBACK VaryVariablesDlgProc(
HWND hDlg,
UINT iMessage,
WPARAM wParam,
LPARAM lParam);


LRESULT CALLBACK  InvadersWndProc(
HWND hWnd,
UINT message,
WPARAM wParam,
LPARAM lParam);


void PaintInvaders(
RECT *VRect);


void PaintObject(
int x,
int y,
unsigned char *object);


void InitGame(void);


void InitFrame(void);


void ClearScrn(void);


void DelayStartGame(void);


void CALLBACK StartGameProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK MoveGunProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK MoveBulletProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK FlatBulletProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK MoveGremlinProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK ExplosionProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK LaunchSpaceShipProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK MoveSpaceShipProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK LaunchBombProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK MoveAllBombsProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


GREMLINPTR GetLeftEndGremlin(void);


GREMLINPTR GetRightEndGremlin(void);


void LaunchBombFromGremlin(
GREMLINPTR gp);


void RemoveBomb(
BOMBPTR bp,
BOMBPTR bpPrev);



void BombHit(
int x,
int y);


void CALLBACK RefreshTextProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK FrameEndOneProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK FrameEndTwoProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK GameEndOneProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK GameEndTwoProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK FlashProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK TimerFrameTickProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void MoveGremlinRight(
GREMLINPTR Grem);


void MoveGremlinDownLeft(
GREMLINPTR Grem);


void MoveGremlinLeft(
GREMLINPTR Grem);


void MoveGremlinDownRight(
GREMLINPTR Grem);


void AllGremlinsKilled(void);


void GunHit(void);


void Invaded(void);


void PlayWAV(
unsigned char SndCode);


void BulletHit(void);


void KillGameTimers(void);


void SetGameTimers(void);


void SetGameText(void);


void InitGremlins(void);


void InitBombs(void);


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -