24 update every entity in the update list
25 dispatch collision events
26 execute spawn and delete events
33 //stage_draw_bg(cx, cy);
34 //entity_draw_visible(cx, cy);
35 //stage_draw_fg(cx, cy);
39 static void press(input in
){
40 if(in
.button
== ESCAPE_KEY
){
44 printf("press: %s\n", input_str(in
));
51 static void release(input in
){
52 printf("release: %s\n", input_str(in
));
62 set_handler(update
, draw
, press
, release
);
66 int x
= load_zone("3ztest/");
68 error_msg("inner: cannot load zone\n");
86 stage - the stage, collision with stage, stage events
87 entity - moving, colliding, active/inactive stuff
88 inner - update draw press release
92 this is the inner file
93 the starting point to the internal game workings
94 independent of i/o, game loops, or graphics details
96 draw - draw the current state of the game
97 use current camera pos to...
98 draw the stage, efficiently draws the tiles and background
101 draw foreground decorations
105 move entities / execute collision
107 deactivate certain entities
110 do global actions like pause, open menu
111 do player specific actions