Add new level transition state machine
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "game/editor.h"
|
||||
#include "game/entity_registry.h"
|
||||
#include "game/transition.h"
|
||||
#include "engine/core.h"
|
||||
#include "engine/input.h"
|
||||
#include "engine/renderer.h"
|
||||
@@ -359,6 +360,16 @@ static bool save_tilemap(const Tilemap *map, const char *path) {
|
||||
if (map->player_unarmed)
|
||||
fprintf(f, "PLAYER_UNARMED\n");
|
||||
|
||||
/* Transition styles */
|
||||
if (map->transition_in != TRANS_NONE) {
|
||||
fprintf(f, "TRANSITION_IN %s\n",
|
||||
transition_style_name(map->transition_in));
|
||||
}
|
||||
if (map->transition_out != TRANS_NONE) {
|
||||
fprintf(f, "TRANSITION_OUT %s\n",
|
||||
transition_style_name(map->transition_out));
|
||||
}
|
||||
|
||||
fprintf(f, "\n");
|
||||
|
||||
/* Entity spawns */
|
||||
|
||||
Reference in New Issue
Block a user