generated from 32blit/32blit-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenu.hpp
39 lines (32 loc) · 932 Bytes
/
Menu.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
/*
* Menu.hpp - part of SokoBlit
*
* Copyright (c) 2021 Pete Favelle / fsqaured limited <[email protected]>
*
* The Menu class handles everything to do with the game menu, which allows
* the player to choose which levels to play.
*
* This software is distributed under the MIT License. See LICENSE for details.
*/
#ifndef _MENU_HPP_
#define _MENU_HPP_
#include "32blit.hpp"
class Menu
{
private:
uint8_t c_zoom;
blit::Surface *c_menu_sprites;
blit::Surface *c_menu_splash;
blit::TileMap *c_menu_map;
uint8_t *c_menu_tiles;
uint8_t c_movetimer;
blit::Rect level_rect( uint8_t );
public:
Menu( void );
~Menu( void );
blit::Mat3 map_transform( uint8_t );
void update( uint32_t );
void render( uint32_t, uint8_t );
};
#endif /* _MENU_HPP_ */
/* End of file Menu.hpp */