28 update every entity in the update list
29 dispatch collision events
30 execute spawn and delete events
35 entity_master_simulate();
41 //entity_draw_visible(cx, cy);
43 // draw_gfx(dummy_gfx,px,py,16,0,8,8);
51 static void press(input in
){
52 if(in
.button
== ESCAPE_KEY
){
57 player_press(in
.player
, in
.button
);
60 static void release(input in
){
61 player_release(in
.player
, in
.button
);
67 set_handler(update
, draw
, press
, release
);
70 setup_test_entities();
74 int x
= load_zone("woods");
76 error_msg("inner: cannot load zone\n");
97 stage - the stage, collision with stage, stage events
98 entity - moving, colliding, active/inactive stuff
99 inner - update draw press release
103 this is the inner file
104 the starting point to the internal game workings
105 independent of i/o, game loops, or graphics details
107 draw - draw the current state of the game
108 use current camera pos to...
109 draw the stage, efficiently draws the tiles and background
110 draw visible entities
112 draw foreground decorations
116 move entities / execute collision
118 deactivate certain entities
121 do global actions like pause, open menu
122 do player specific actions