-
Notifications
You must be signed in to change notification settings - Fork 0
/
Text.h
40 lines (27 loc) · 849 Bytes
/
Text.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*******************************************************************************
CommanderTux
Penguin In Space
Released under the GNU Public License
2005 by Andr� Schnabel ([email protected])
*******************************************************************************/
// Text.h
#ifndef TEXT_H
#define TEXT_H
#include "Framework.h"
#define FLYING_SPEED 2
class CFlyingText
{
public:
CFlyingText( const char *text,
int s_pos_x, int s_pos_y,
Direction dir, Uint32 duration, Color color );
~CFlyingText();
bool Update( int *scroll_x, int *scroll_y );
void Draw( int *scroll_x, int *scroll_y );
private:
SDL_Rect m_rect;
SDL_Texture *m_surface;
Direction m_dir;
Uint32 m_duration, m_start;
};
#endif