townengine/apps/platformer/scenes/scene.c

9 lines
188 B
C

#include "scene.h"
#include "../state.h"
void switch_to(State *state, Scene *(*scene_func)(State *)) {
state->next_scene = scene_func(state);
state->is_scene_switching = true;
}