generated from 32blit/32blit-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HiscoreState.hpp
40 lines (33 loc) · 1.02 KB
/
HiscoreState.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
/*
* HiscoreState.hpp - part of 32Blox (revised edition!)
*
* Copyright (C) 2020 Pete Favelle <[email protected]>
*
* This file is released under the MIT License; see LICENSE for details
*
* The Hiscore state displays the high score table to the user, at the end
* of the current game.
*/
#ifndef _HISCORESTATE_HPP_
#define _HISCORESTATE_HPP_
#include "AssetFactory.hpp"
#include "HighScore.hpp"
#define HISCORESTATE_GRADIENT_HEIGHT 160
class HiscoreState : public GameStateInterface
{
private:
AssetFactory &assets = AssetFactory::get_instance();
HighScore *high_score;
blit::Pen font_pen;
blit::Tween font_tween;
blit::Pen gradient_pen[HISCORESTATE_GRADIENT_HEIGHT];
uint8_t gradient_offset;
public:
HiscoreState( void );
void init( GameStateInterface * );
void fini( GameStateInterface * );
gamestate_t update( uint32_t );
void render( uint32_t );
};
#endif /* _HISCORESTATE_HPP_ */
/* End of HiscoreState.hpp */