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

📄 shajia.h

📁 一个完整的2D滚屏游戏示例
💻 H
字号:
#ifndef  _SHA_JIA
#define  _SHA_JIA 

#include "saintfighter.h" 

//class CShaJia;
//class CLotus;//shajia's lotus; 
///////////////////////////////////////////////////////////////////////
class CShaJia : public CSaintFighter
{
public:
CShaJia();
virtual void Trace(long unsigned int luTime,CSaintFighter saint); 
};

////////////////////////////////////////////////////////////////////////
class CLotus:public CSpirit
{
public:
int   m_nRadio; //the radio of the circle on which the lotus around Sahjia; 
int   m_nAngle; //the angle of the circle on which the lotus around Sahjia;
public:
CLotus();
void InitAngle(int i);
virtual void Trace(CSaintFighter saint,int i); //"i" is a paremeter to control the position of lotus;
};

#endif

⌨️ 快捷键说明

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