Systems now control most of the game's operations and a lot of the rendering logic, this now brings in a camera so maps can be larger than the viewport.
This commit is contained in:
parent
e42647d727
commit
da64e526c4
5 changed files with 62 additions and 36 deletions
10
gui.hpp
10
gui.hpp
|
@ -16,8 +16,10 @@
|
|||
using std::string;
|
||||
using ftxui::Canvas, ftxui::Component, ftxui::Screen;
|
||||
|
||||
constexpr int GAME_MAP_X = 30;
|
||||
constexpr int GAME_MAP_Y = 15;
|
||||
constexpr int GAME_MAP_X = 60;
|
||||
constexpr int GAME_MAP_Y = 30;
|
||||
constexpr int VIEW_PORT_X = 30;
|
||||
constexpr int VIEW_PORT_Y = 15;
|
||||
constexpr int GAME_MAP_POS = 600;
|
||||
constexpr int SCREEN_X = 40;
|
||||
constexpr int SCREEN_Y = 30;
|
||||
|
@ -25,10 +27,6 @@ constexpr int VIDEO_X = 1600;
|
|||
constexpr int VIDEO_Y = 900;
|
||||
constexpr int MAP_FONT_SIZE=60;
|
||||
constexpr int UI_FONT_SIZE=30;
|
||||
#define WALL_TILE "█"
|
||||
#define FLOOR_TILE "·"
|
||||
#define PLAYER_TILE "☺"
|
||||
#define ENEMY_TILE "Ω"
|
||||
|
||||
enum class Value {
|
||||
BLACK=0, DARK_DARK, DARK_MID,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue