initial monopoly test
This commit is contained in:
@@ -24,7 +24,9 @@ SRC = main.cpp low_level_display_sfml.cpp input_manager.cpp game_launcher.cpp \
|
||||
../display/low_level_render.cpp \
|
||||
../display/low_level_gui.cpp \
|
||||
../games/demo_game.cpp \
|
||||
../games/tic_tac_toe.cpp
|
||||
../games/tic_tac_toe.cpp \
|
||||
../games/monopoly/monopoly_game.cpp \
|
||||
../games/monopoly/player.c
|
||||
|
||||
$(TARGET): $(SRC)
|
||||
$(CXX) $(CXXFLAGS) $(SRC) -o $(TARGET) $(INCLUDES) $(LIBS)
|
||||
|
||||
Binary file not shown.
@@ -5,6 +5,7 @@
|
||||
#include "game_launcher.h"
|
||||
#include "../games/demo_game.h"
|
||||
#include "../games/tic_tac_toe.h"
|
||||
#include "../games/monopoly/monopoly_game.h"
|
||||
#include "input_manager.h"
|
||||
#include <SFML/Window.hpp>
|
||||
#include <SFML/Graphics.hpp>
|
||||
@@ -37,6 +38,10 @@ int main() {
|
||||
[](uint16_t w, uint16_t h, LowLevelRenderer* r, LowLevelGUI* g, InputManager* im) -> Game* {
|
||||
return new TicTacToeGame(w, h, r, g, im);
|
||||
});
|
||||
launcher.register_game("Monopoly", "Classic property trading game",
|
||||
[](uint16_t w, uint16_t h, LowLevelRenderer* r, LowLevelGUI* g, InputManager* im) -> Game* {
|
||||
return new MonopolyGame(w, h, r, g, im);
|
||||
});
|
||||
launcher.register_game("Demo Game", "Simple test game",
|
||||
[](uint16_t w, uint16_t h, LowLevelRenderer* r, LowLevelGUI* g, InputManager* im) -> Game* {
|
||||
return new DemoGame(w, h, r, g, im);
|
||||
|
||||
Reference in New Issue
Block a user