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");
87 stage - the stage, collision with stage, stage events
88 entity - moving, colliding, active/inactive stuff
89 inner - update draw press release
93 this is the inner file
94 the starting point to the internal game workings
95 independent of i/o, game loops, or graphics details
97 draw - draw the current state of the game
98 use current camera pos to...
99 draw the stage, efficiently draws the tiles and background
100 draw visible entities
102 draw foreground decorations
106 move entities / execute collision
108 deactivate certain entities
111 do global actions like pause, open menu
112 do player specific actions