Cutscene tests

This commit is contained in:
2026-07-02 11:18:36 -05:00
parent 01d89cf22c
commit 7b98e40ccf
15 changed files with 49 additions and 245 deletions
+3 -5
View File
@@ -9,9 +9,9 @@
#include "entity/entity.h"
#include "rpg/overworld/map.h"
#include "rpg/cutscene/cutscenesystem.h"
#include "rpg/cutscene/scene/testcutscene.h"
#include "time/time.h"
#include "rpgcamera.h"
#include "rpgtextbox.h"
#include "util/memory.h"
#include "util/string.h"
#include "assert/assert.h"
@@ -25,8 +25,6 @@ errorret_t rpgInit(void) {
errorChain(mapInit());
rpgCameraInit();
rpgTextboxInit();
// Init world
errorChain(mapPositionSet((chunkpos_t){ 0, 0, 0 }));
@@ -50,8 +48,8 @@ errorret_t rpgInit(void) {
entityInit(npc, ENTITY_TYPE_NPC);
npcSetMoveType(npc, NPC_MOVE_TYPE_PATH);
npc->position = (worldpos_t){ 8, 8, 1 };
npc->interact.type = ENTITY_INTERACT_PRINT;
npc->interact.data.message = "hello world";
npc->interact.type = ENTITY_INTERACT_CUTSCENE;
npc->interact.data.cutscene = &TEST_CUTSCENE;
{
chunkpos_t cp;
worldPosToChunkPos(&npc->position, &cp);