Test out some YarnSpinner format stuff
This commit is contained in:
parent
e0d3ca8021
commit
b16b27e03d
@ -8,10 +8,31 @@ You: What happened to the updates from mission control?
|
||||
-> Is this even still the same ship?
|
||||
You: Best not get too philsophical just yet
|
||||
You: Let's have another look around...
|
||||
<<room quarters>>
|
||||
===
|
||||
title: Room:quarters
|
||||
---
|
||||
You: It's the crew quarters
|
||||
<<declare $roll = 0>>
|
||||
// You: It's the crew quarters.
|
||||
// You: Well, it will be. Set-up hasn't started yet.
|
||||
// You: That was meant to be one of my first jobs after defrost...
|
||||
// You: ...but it doesn't exactly seem like a priority now.
|
||||
You: Maybe there's something useful here?
|
||||
-> Search the lockers [perception]
|
||||
<<set $roll to dice(6)>>
|
||||
<<if $roll > 2>>
|
||||
You: Aha! A small piece of paper with the **hangar access code**.
|
||||
<<room hangar>>
|
||||
<<else>>
|
||||
You: Just some dust bunnies. Guess they stowed away from Earth.
|
||||
<<endif>>
|
||||
-> Set up a sleeping mat [ingenuity]
|
||||
<<set $roll to dice(6)>>
|
||||
<<if $roll > 2>>
|
||||
You: Nice, at least I have somewhere to crash now.
|
||||
<<else>>
|
||||
You: Hmm, I was never good at this camping stuff. Maybe I can find somewhere else to rest.
|
||||
<<endif>>
|
||||
===
|
||||
title: Room:hangar
|
||||
---
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user