mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 14:05:45 +01:00
re-implement shape dropping
This commit is contained in:
@@ -48,11 +48,12 @@ void window_free(void) {
|
||||
|
||||
void window_open(void) {
|
||||
while (!close) {
|
||||
game_update(input_getdat());
|
||||
size_t time = time_pull();
|
||||
game_update(input_getdat(), time);
|
||||
render_update();
|
||||
|
||||
static time_t timeout = 0;
|
||||
if (time_poll(time_pull(), music.ms, &timeout))
|
||||
if (time_poll(time, music.ms, &timeout))
|
||||
audio_play(&music);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user