battleoffice.h

来自「游戏编程源码」· C头文件 代码 · 共 41 行

H
41
字号
//-----------------------------------------------------------------
// Battle Office Application
// C++ Header - BattleOffice.h
//-----------------------------------------------------------------

#ifndef BATTLEOFFICE_H
#define BATTLEOFFICE_H

//-----------------------------------------------------------------
// Include Files
//-----------------------------------------------------------------
#include <windows.h>
#include "Resource.h"
#include "GameEngine.h"
#include "Bitmap.h"
#include "Sprite.h"

//-----------------------------------------------------------------
// Global Variables
//-----------------------------------------------------------------
HINSTANCE   g_hInstance;
GameEngine* g_pGame;
HDC         g_hOffscreenDC;
HBITMAP     g_hOffscreenBitmap;
Bitmap*     g_pOfficeBitmap;
Bitmap*     g_pTargetBitmap;
Bitmap*     g_pPowBitmap;
Bitmap*     g_pGuyBitmaps[5];
Bitmap*     g_pSmallGuyBitmap;
Bitmap*     g_pGameOverBitmap;
Sprite*     g_pTargetSprite;
Sprite*     g_pPowSprite;
Sprite*     g_pGuySprites[5];
int         g_iGuyDelay[5];
int         g_iGuyMasterDelay;
int         g_iHits;
int         g_iMisses;
BOOL        g_bGameOver;

#endif

⌨️ 快捷键说明

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