This commit is contained in:
parent
0e10ca164c
commit
da0eac7a3d
12 changed files with 231 additions and 59 deletions
|
@ -5,7 +5,7 @@
|
|||
Author: PKG
|
||||
Created:
|
||||
Project: Spongebob
|
||||
Purpose:
|
||||
Purpose: Scrolling tiled background class
|
||||
|
||||
Copyright (c) 2000 Climax Development Ltd
|
||||
|
||||
|
@ -37,9 +37,25 @@ public:
|
|||
void render();
|
||||
void think(int _frames);
|
||||
|
||||
void setSpeed(int _xSpeed,int _ySpeed) {m_xSpeed=_xSpeed;m_ySpeed=_ySpeed;}
|
||||
void setSpeedScale(int _speedScale) {m_speedScale=_speedScale;}
|
||||
void setOt(int _ot) {m_ot=_ot;}
|
||||
|
||||
|
||||
private:
|
||||
enum
|
||||
{
|
||||
DEFAULT_X_SPEED=-2,
|
||||
DEFAULT_Y_SPEED=-3,
|
||||
DEFAULT_SPEED_SCALE=2,
|
||||
DEFAULT_OT=1000,
|
||||
};
|
||||
|
||||
class SpriteBank *m_sprites;
|
||||
int m_xOff,m_yOff;
|
||||
int m_xSpeed,m_ySpeed;
|
||||
int m_speedScale;
|
||||
int m_ot;
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue