Keyboard input added.

This commit is contained in:
2018-03-25 15:22:43 +02:00
parent d57da20ec7
commit ea4f4a97b6
3 changed files with 95 additions and 6 deletions

View File

@@ -53,11 +53,16 @@ int main() {
while(run)
{
handle_event();
// TODO: run simulation physics
// only redraw if the timer event has occurred
// only redraw or run simulation if the timer event has occurred
if(redraw)
{
/*
* We only run the simulation when the timer goes off so it's
* running at a consistent rate, rather than dependent on random
* events.
*/
// TODO: run simulation physics
al_clear_to_color(al_map_rgb(0, 0, 0));
// TODO: run simulation draw functions
al_flip_display();