Skip to content

Commit e4fdab3

Browse files
committed
Set up packaging for Windows
1 parent cabe796 commit e4fdab3

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CMakeLists.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,12 @@ include_directories(${SFML_INCLUDE_DIR})
208208
file(COPY sample_game DESTINATION ${CMAKE_BINARY_DIR})
209209

210210

211-
install(TARGETS spiced RUNTIME DESTINATION bin)
211+
if (CMAKE_HOST_WIN32)
212+
install(TARGETS spiced RUNTIME DESTINATION .)
213+
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/sample_game/ DESTINATION .)
214+
else()
215+
install(TARGETS spiced RUNTIME DESTINATION bin)
216+
endif()
217+
212218

213219

sample_game/spiced.chai

+1-1
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ var game_creator = fun(game) {
628628
t_game.show_message_box("Your choices have consequences.\nYou may want to play multiple times.");
629629
t_game.show_message_box("To interact with characters and objects simply bump into them.\nAll input is via the arrow keys and enter key.");
630630
t_game.show_message_box("Unfortunately we ran out of time for graphics.\nOur NPCs are pinheads.\n\nOur PC is a marble.\n\nOur modern world is a medieval fantasy world.");
631-
t_game.show_message_box("You have ${money} to start with.\nUse it wisely.");
631+
t_game.show_message_box("You have $${money} to start with.\nUse it wisely.");
632632
t_game.add_queued_action(
633633
fun(t_game_time, t_simulation_time, t_game) {
634634
t_game.enter_map("glennhaven");

src/game.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void Game::update(const float t_game_time, const float t_simulation_time)
173173
if (m_map != m_maps.end())
174174
{
175175
auto &map = m_map->second;
176-
auto distance = Game::get_input_direction_vector() * 20.0f * simulation_time;
176+
auto distance = Game::get_input_direction_vector() * 40.0f * simulation_time;
177177
for (auto &collision : map.get_collisions(m_avatar, distance))
178178
{
179179
collision.get().do_collision(t_game_time, simulation_time, *this, m_avatar);

0 commit comments

Comments
 (0)