Test out some YarnSpinner format stuff

This commit is contained in:
3wc
2024-02-16 02:54:58 -03:00
parent e0d3ca8021
commit b16b27e03d
3 changed files with 25 additions and 3 deletions

View File

@ -172,6 +172,7 @@ class Game extends hxd.App {
for (o in options) {
o.remove();
}
options.splice(0, options.length);
}
function onDialogueComplete(event:DialogueComplete) {

View File

@ -59,7 +59,7 @@ class WorldMapScene extends h2d.Flow implements GameScene implements h2d.domkit.
#if debug
trace('skipping intro dialogue');
Game.current.globalEventBus.publishEvent(new OpenRoomEvent("hangar"));
Game.current.globalEventBus.publishEvent(new OpenRoomEvent("quarters"));
#else
Game.current.globalEventBus.publishEvent(new StartDialogueNode("Intro"));
#end
@ -68,7 +68,7 @@ class WorldMapScene extends h2d.Flow implements GameScene implements h2d.domkit.
public function openRoom(event:OpenRoomEvent) {
var room = rooms.get(event.roomName);
room.isOpen = true;
room.area.alpha = 0;
room.rect.alpha = 0;
}
public function getH2dObject() {