-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSplash.h
More file actions
44 lines (34 loc) · 943 Bytes
/
Splash.h
File metadata and controls
44 lines (34 loc) · 943 Bytes
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
41
42
43
44
/*******************************************************************************
CommanderTux
Penguin In Space
Released under the GNU Public License
2005 by Andr� Schnabel (thefrogs@web.de)
*******************************************************************************/
// Splash.h
#ifndef CSPLASH_H
#define CSPLASH_H
#include <SDL.h>
#include <SDL_image.h>
#include "State.h"
#define FADE_SPEED 5
#define ROLL_SPEED 10
class CSplash : public CState
{
public:
CSplash();
virtual ~CSplash();
virtual void Input();
virtual void Update();
virtual void Draw();
private:
SReleased m_released;
SDL_Texture *m_splash_surf;
SDL_Texture *m_version_surf;
SDL_Rect m_splash_rect, m_version_rect;
Uint8 m_splash_surf_fade;
int m_splash_surf_roll;
#ifndef NO_SOUND
Mix_Chunk *m_splash_sound;
#endif
};
#endif