polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

commit f4db3acb3832c8ec35f4e0913bed9a5da7d6939d
parent c658dbe92967a0345bd41b09932f02a191ba5678
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 25 Oct 2022 08:21:23 -0700

switch back to regular game

to see how easy it is...

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mmain.c | 16+++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/main.c b/main.c @@ -42,21 +42,23 @@ int main(void) srand(seed); struct engine engine; - //struct test_game game; - struct rogue_game rogue_game; + struct test_game game; + //struct rogue_game rogue_game; engine.seed = seed; init_engine(&engine, width, height); + /* if (!init_rogue_game(&engine, &rogue_game)) { printf("failed to init game!\n"); return 1; } + */ - //init_test_game(&engine, &game); + init_test_game(&engine, &game); //reset_scene(&engine); - //default_scene(&game); - //pbr_scene(&game); + default_scene(&game); + pbr_scene(&game); check_gl(); double last = hires_time_in_seconds(); @@ -80,8 +82,8 @@ int main(void) last = new_time; // render our game frame here - //test_game_frame(&engine, &game); - rogue_frame(&engine, &rogue_game); + test_game_frame(&engine, &game); + //rogue_frame(&engine, &rogue_game); /* Swap front and back buffers */ SDL_GL_SwapWindow(engine.window);