diff --git a/apps/examples/circle-raster/CMakeLists.txt b/apps/examples/circle-raster/CMakeLists.txt index 2c0b53c..6c81f47 100644 --- a/apps/examples/circle-raster/CMakeLists.txt +++ b/apps/examples/circle-raster/CMakeLists.txt @@ -13,4 +13,4 @@ set(SOURCE_FILES state.h ) -use_townengine(${PROJECT_NAME} "${SOURCE_FILES}" ${CMAKE_CURRENT_SOURCE_DIR}) +use_townengine("${SOURCE_FILES}" ${CMAKE_CURRENT_SOURCE_DIR}) diff --git a/apps/examples/circle-raster/game.c b/apps/examples/circle-raster/game.c index 3d89d9d..f33868a 100644 --- a/apps/examples/circle-raster/game.c +++ b/apps/examples/circle-raster/game.c @@ -116,9 +116,9 @@ void game_tick(void) { input_action("up", "LCLICK"); input_action("down", "RCLICK"); - if (input_action_just_pressed("up")) + if (input_action_pressed("up")) state->r += 1; - if (input_action_just_pressed("down")) + if (input_action_pressed("down") && state->r > 2) state->r -= 1; int32_t const rsi = (int32_t)state->r * (int32_t)state->r; @@ -135,7 +135,8 @@ void game_tick(void) { draw_circle(mouse_snap, state->r * 8, (Color){125, 125, 125, 125}); - benchmark(state); + /* uncomment to see performance difference between variants */ + // benchmark(state); }