meteordefense.h
来自「《24小时教会你游戏编程》上的源码」· C头文件 代码 · 共 42 行
H
42 行
//-----------------------------------------------------------------
// Meteor Defense Application
// C++ Header - MeteorDefense.h
//-----------------------------------------------------------------
#pragma once
//-----------------------------------------------------------------
// Include Files
//-----------------------------------------------------------------
#include <windows.h>
#include "Resource.h"
#include "GameEngine.h"
#include "Bitmap.h"
#include "Sprite.h"
#include "Background.h"
//-----------------------------------------------------------------
// Global Variables
//-----------------------------------------------------------------
HINSTANCE _hInstance;
GameEngine* _pGame;
HDC _hOffscreenDC;
HBITMAP _hOffscreenBitmap;
Bitmap* _pGroundBitmap;
Bitmap* _pTargetBitmap;
Bitmap* _pCityBitmap;
Bitmap* _pMeteorBitmap;
Bitmap* _pMissileBitmap;
Bitmap* _pExplosionBitmap;
Bitmap* _pGameOverBitmap;
StarryBackground* _pBackground;
Sprite* _pTargetSprite;
int _iNumCities, _iScore, _iDifficulty;
BOOL _bGameOver;
//-----------------------------------------------------------------
// Function Declarations
//-----------------------------------------------------------------
void NewGame();
void AddMeteor();
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?