stuntjumper.h

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

H
52
字号
//-----------------------------------------------------------------
// Stunt Jumper Application
// C++ Header - StuntJumper.h
//-----------------------------------------------------------------

#ifndef STUNTJUMPER_H
#define STUNTJUMPER_H

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

//-----------------------------------------------------------------
// Global Variables
//-----------------------------------------------------------------
HINSTANCE             g_hInstance;
GameEngine*           g_pGame;
HDC                   g_hOffscreenDC;
HBITMAP               g_hOffscreenBitmap;
Bitmap*               g_pSplashBitmap;
BackgroundLayer*      g_pBGRoadLayer;
BackgroundLayer*      g_pBGTreesLayer;
BackgroundLayer*      g_pBGMountainsLayer;
BackgroundLayer*      g_pBGSkyLayer;
Bitmap*               g_pJumperBitmap;
Bitmap*               g_pBusBitmap;
Bitmap*               g_pRampBitmap[2];
Bitmap*               g_pGameOverBitmap;
ScrollingBackground*  g_pBackground;
MotorcycleSprite*     g_pJumperSprite;
Sprite*               g_pLaunchRampSprite;
Sprite*               g_pLandingRampSprite;
Sprite*               g_pBusSprite[7];
int                   g_iInputDelay;
BOOL                  g_bGameOver;
BOOL                  g_bSplash;

//-----------------------------------------------------------------
// Function Declarations
//-----------------------------------------------------------------
void NewGame();
void NewJump(int iNumBuses);

#endif

⌨️ 快捷键说明

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