summaryrefslogtreecommitdiffhomepage
path: root/src/main.c
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-05-02 20:49:16 -0400
committerrealtradam <[email protected]>2023-05-02 20:49:16 -0400
commit9761b2ab4ded859f6f2252eae449ce8fd2b81c83 (patch)
treec275e29ac697768f257c07e8f9a146e60680cd27 /src/main.c
parentf079cdd1d182d6a24bd705627a72fba638f4d8b1 (diff)
downloadrodeo_sample_game-9761b2ab4ded859f6f2252eae449ce8fd2b81c83.tar.gz
rodeo_sample_game-9761b2ab4ded859f6f2252eae449ce8fd2b81c83.zip
rodeo bump
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 225ade7..4cb1cf8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -117,6 +117,13 @@ main_loop(void)
summon_position.x += *(float*)units_move_right_input(NULL, NULL) + *(float*)units_move_left_input(NULL, NULL);
summon_position.y += *(float*)units_move_down_input(NULL, NULL) + *(float*)units_move_up_input(NULL, NULL);
+ if(*(bool*)play_sound_input(NULL, NULL))
+ {
+ rodeo_audio_playSample();
+ }
+
+ //play_sound_input(NULL, NULL);
+
if(*(bool*)summon_units_input(NULL, NULL))
{
summon_units();
@@ -268,6 +275,7 @@ main(void)
//);
texture = rodeo_texture_2d_create_from_path(cstr_lit("assets/orc.png"));
+ rodeo_audio_loadSample();
rodeo_mainLoop_run(
main_loop