generated from 32blit/32blit-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSplashState.hpp
40 lines (33 loc) · 1.03 KB
/
SplashState.hpp
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
/*
* SplashState.hpp - part of 32Blox (revised edition!)
*
* Copyright (C) 2020 Pete Favelle <32blit@ahnlak.com>
*
* This file is released under the MIT License; see LICENSE for details
*
* The SplashState is the entry to the game, prompting the player to start
* the game by pressing the button.
*/
#ifndef _SPLASHSTATE_HPP_
#define _SPLASHSTATE_HPP_
#include "AssetFactory.hpp"
#define SPLASHSTATE_GRADIENT_HEIGHT 160
class SplashState : public GameStateInterface
{
private:
AssetFactory &assets = AssetFactory::get_instance();
blit::Pen font_pen;
blit::Tween font_tween;
blit::Tween logo_tween_x;
blit::Tween logo_tween_y;
blit::Pen gradient_pen[SPLASHSTATE_GRADIENT_HEIGHT];
uint8_t gradient_offset;
public:
SplashState( void );
void init( GameStateInterface * );
void fini( GameStateInterface * );
gamestate_t update( uint32_t );
void render( uint32_t );
};
#endif /* _SPLASHSTATE_HPP_ */
/* End of SplashState.hpp */