Test out some YarnSpinner format stuff
This commit is contained in:
@ -172,6 +172,7 @@ class Game extends hxd.App {
|
||||
for (o in options) {
|
||||
o.remove();
|
||||
}
|
||||
options.splice(0, options.length);
|
||||
}
|
||||
|
||||
function onDialogueComplete(event:DialogueComplete) {
|
||||
|
@ -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() {
|
||||
|
Reference in New Issue
Block a user