generated from 32blit/32blit-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGame.hpp
43 lines (35 loc) · 1.07 KB
/
Game.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
41
42
43
/*
* Game.hpp - part of SokoBlit
*
* Copyright (c) 2021 Pete Favelle / fsqaured limited <[email protected]>
*
* The Game class handles everything to do with the game itself, letting the
* player scurry around pushing boxes and generally living the dream.
*
* This software is distributed under the MIT License. See LICENSE for details.
*/
#ifndef _GAME_HPP_
#define _GAME_HPP_
#include "32blit.hpp"
#include "sokoblit.hpp"
#include "Player.hpp"
class Game
{
private:
uint8_t c_zoom;
blit::Surface *c_game_sprites;
blit::TileMap *c_game_map;
uint8_t *c_game_tiles;
Player *c_player[SOKOBLIT_LEVEL_MAX+1];
blit::Rect level_rect( uint8_t );
blit::Point level_tile_origin( uint8_t );
bool set_tile( blit::Point, uint8_t );
public:
Game( void );
~Game( void );
blit::Mat3 map_transform( uint8_t );
void update( uint32_t );
void render( uint32_t, uint8_t );
};
#endif /* _GAME_HPP_ */
/* End of file Game.hpp */