|
#ifndef _GAME_H_INCLUDED_
#define _GAME_H_INCLUDED_
class AtlasImage;
const int NUM_FRAMES = 40;
class Game
{
public:
Game();
~Game();
void Init(const string& dirResources, const string& dirUser,
int screenWidth, int screenHeight);
void Render();
// used to display error on screen
const string& GetErr() const
{
return m_strErr;
}
void Update();
int GetWaitTime(int timeRender);
private:
int GetReqFrameTime();
int m_timeLast;
int m_timeStart;
string m_strErr;
AtlasImage* m_pImage[NUM_FRAMES];
int m_currFrame;
int m_age;
};
#endif // _GAME_H_INCLUDED_
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
After working in the software industry for many years, I've started my own
games company that specialises in strategy games for mobile platforms.