diff options
| author | realtradam <[email protected]> | 2023-05-02 20:49:16 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-05-02 20:49:16 -0400 |
| commit | 9761b2ab4ded859f6f2252eae449ce8fd2b81c83 (patch) | |
| tree | c275e29ac697768f257c07e8f9a146e60680cd27 /src/main.c | |
| parent | f079cdd1d182d6a24bd705627a72fba638f4d8b1 (diff) | |
| download | rodeo_sample_game-9761b2ab4ded859f6f2252eae449ce8fd2b81c83.tar.gz rodeo_sample_game-9761b2ab4ded859f6f2252eae449ce8fd2b81c83.zip | |
rodeo bump
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |
