HDB: Modify constants for simpler access

This commit is contained in:
Nipun Garg 2019-06-27 22:31:00 +05:30 committed by Eugene Sandulenko
parent 761c90e62a
commit 235040fb8a
3 changed files with 7 additions and 6 deletions

View File

@ -40,6 +40,7 @@ enum {
kMaxAutoActions = 30,
kMaxLuaEnts = 50,
kMaxCallbacks = 20,
kDelay5Seconds = 5 * kGameFPS,
kPlayerMoveSpeed = 4,
kEnemyMoveSpeed = 2,
kPushMoveSpeed = (kPlayerMoveSpeed >> 1),

View File

@ -35,7 +35,12 @@ enum {
kMaxSkies = 10,
kNum3DStars = 300,
kFontSpace = 5,
kFontIncrement = 1
kFontIncrement = 1,
kGameFPS = 60,
kAnimFrameDelay = kGameFPS / 30,
kAnimSlowFrames = kAnimFrameDelay * 10,
kAnimMediumFrames = kAnimFrameDelay * 6,
kAnimFastFrames = kAnimFrameDelay * 2
};
class Tile;

View File

@ -113,11 +113,6 @@ enum Flag {
enum {
kScreenWidth = 640,
kScreenHeight = 480,
kGameFPS = 60,
kAnimFrameDelay = kGameFPS / 30,
kAnimSlowFrames = kAnimFrameDelay * 10,
kAnimMediumFrames = kAnimFrameDelay * 6,
kAnimFastFrames = kAnimFrameDelay * 2
};
class HDBGame : public Engine {