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

📄 meteordefense.h

📁 游戏编程源码
💻 H
字号:
//-----------------------------------------------------------------
// Meteor Defense Application
// C++ Header - MeteorDefense.h
//-----------------------------------------------------------------

#ifndef METEORDEFENSE_H
#define METEORDEFENSE_H

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

//-----------------------------------------------------------------
// Global Variables
//-----------------------------------------------------------------
HINSTANCE         g_hInstance;
GameEngine*       g_pGame;
HDC               g_hOffscreenDC;
HBITMAP           g_hOffscreenBitmap;
Bitmap*           g_pGroundBitmap;
Bitmap*           g_pTargetBitmap;
Bitmap*           g_pCityBitmap;
Bitmap*           g_pMeteorBitmap;
Bitmap*           g_pMissileBitmap;
Bitmap*           g_pExplosionBitmap;
Bitmap*           g_pGameOverBitmap;
StarryBackground* g_pBackground;
Sprite*           g_pTargetSprite;
int               g_iNumCities, g_iScore, g_iDifficulty;
BOOL              g_bGameOver;

//-----------------------------------------------------------------
// Function Declarations
//-----------------------------------------------------------------
void NewGame();
void AddMeteor();

#endif

⌨️ 快捷键说明

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