Skip to content

Instantly share code, notes, and snippets.

@fleon
Created May 16, 2013 03:08
Show Gist options
  • Save fleon/5589116 to your computer and use it in GitHub Desktop.
Save fleon/5589116 to your computer and use it in GitHub Desktop.
Demo map yaml
---
# Game Scene
Variables:
- Player:
- If PlayerGender = Male: Elric
- Else: Amy
Speakers:
- Elric:
Normal: CharacterAvatar_Elric.png
Sad: CharacterAvatar_Elric.png
- Amy:
Normal: CharacterAvatar_Amy.png
Sad: CharacterAvatar_Amy.png
- Flippers:
Normal: CharacterAvatar_Flippers.png
Sad: CharacterAvatar_Flippers.png
Dialogues:
- Current Scene Frame 1:
- Player (Confused): |
... |...
- Player (Confused): |
Where am I?
- Player (Confused): |
... |...
- Player (Confused): |
What is this place?
- Current Scene Frame 2:
- Player (Surprised): |
Whoa! Looks like something's shining over
there!
- Current Scene Frame 3:
- Player (Surprised): |
Wow, its so shiny! Lets look at whats in it!
- Current Scene Frame 4:
- Player (Confused): |
These letters spell out BRIDGE.|
Hmm...
- Current Scene Frame 5:
- Player: |
That's what I need to get across!
- Current Scene Frame 6:
- Flippers: |
...|...
- Current Scene Frame 7:
- Flippers (Happy): |
Mama!
- Player (Surprised): |
Mama?| I'm not your mama, little one.
- Current Scene Frame 8:
- Flippers (Happy): |
Mama!
- Player: |
It seems that you are lost, little one,
but so am I.
- Player: |
Don't worry, little one. I will take you
back to your mama.
- Flippers (Happy): |
Mama!
Messages:
- Current Scene Message 1: |
Touch and drag the character to walk to the
shiny bag above.
- Current Scene Message 2: |
Tap the bag repeatedly to extract its contents.
- Current Scene Message 3: |
Drag the letters in the pile to water to bridge
the gap between the two islands and tap 'Freeze'!
- Current Scene Message 4: |
Great! You have earned X coins. The shortest path
you make using valid words will earn you more
coins.
- Current Scene Message 5: |
You can click the Coins button to learn how to
earn and spend coins. Give it a try!
- Current Scene Message 6: |
Now drag the character to move to the other
island across the bridge.
- Current Scene Message 7: |
You can swipe to pan the screen. Go ahead, try it!
- Current Scene Message 8: |
You can access the Journal from the menu on the
top-left. Go check it out!
- Current Scene Message 9: |
You can bridge islands vertically and also create
branches. Go ahead, give it a try!
EventActionBindings:
- SceneWasLoaded: NewGameStarts
Tasks:
- Task 1: |
Take the little penguin back to his mama.
ActionSequences:
- NewGameStarts:
- Disable: Swipe
- LoadMap: 01. Lost # make this action
- Focus: Player
- Play: PlayerLooksAround
- ShowDialogueWindow
- BeginDialogue: Current Scene Frame 1
- HideDialogueWindow
- Play: PlayerLooksAround
- Play: PlayerExclaims
- ShowDialogueWindow
- BeginDialogue: Current Scene Frame 2
- HideDialogueWindow
- Alert: Current Scene Message 1
- Confirm: Current Scene Message 2
- WaitUntil:
- InteractedWith (MagicalBag)
- ShowDialogueWindow
- BeginDialogue: Current Scene Frame 3
- HideDialogueWindow
- Alert: Current Scene Message 2
- ShowLetterPile
- Disable: LetterPile
- WaitUntil:
- InteractedWith (MagicalBag)
- AddLetterToPile: B
- WaitUntil:
- InteractedWith (MagicalBag)
- AddLetterToPile: R
- WaitUntil:
- InteractedWith (MagicalBag)
- AddLetterToPile: I
- WaitUntil:
- InteractedWith (MagicalBag)
- AddLetterToPile: D
- WaitUntil:
- InteractedWith (MagicalBag)
- AddLetterToPile: G
- WaitUntil:
- InteractedWith (MagicalBag)
- AddLetterToPile: E
- WaitFor: 500ms
- ShowDialogueWindow
- Begin Dialogue: Current Scene Frame 4
- Play: PlayerExclaims
- Begin Dialogue: Current Scene Frame 5
- HideDialogueWindow
- Alert: Current Scene Message 3
- ShowGameplayButtons
- Enable: LetterPile
- WaitUntil:
- LandsBridged (Island 1, Island 2)
- Alert: Current Scene Message 4
- Alert: Current Scene Message 5
- WaitUntil:
- CoinsPanelWasHidden
- Alert: Current Scene Message 6
- WaitUntil:
- SteppedOn (Island 2)
- Alert: Current Scene Message 7
- WaitUntil:
- MapWasPanned
- HideLetterPile
- Focus: Flippers
- HideGameplayButtonsAndLetterPile
- ShowDialogueWindow
- BeginDialogue: Current Scene Frame 6
- HideDialogueWindow
- With (Flippers):
- StopFacingLeft
- MakeBubbleAppear: Exclamation
- WalkNear: Player
- ShowDialogueWindow
- BeginDialogue: Current Scene Frame 7
- HideDialogueWindow
- Flippers.CircleAround: Player
- ShowDialogueWindow
- BeginDialogue: Current Scene Frame 8
- HideDialogueWindow
- Flippers.StartFollowing: Player
- AddTask: Task 1
- Alert: Current Scene Message 8
- WaitUntil
- JournalWasHidden
- InGameMenuWasHidden
- ShowGameplayButtonsAndLetterPile
- Alert: Current Scene Message 9
- WaitFor:
- SteppedOn: MainExit
- Player.Exit: South
- LoadMap: 02. NewMap
- PlayerLooksAround:
- WithCharacter (Player):
- StopFacingRight
- WaitFor: 100ms
- StopFacingBottom
- WaitFor: 100ms
- StopFacingLeft
- WaitFor: 100ms
- StopFacingTop
- WaitFor: 100ms
- PlayerExclaims:
- WithCharacter (Player):
- MakeBubbleAppear: Exclamation
- PlayerIsConfused:
- WithCharacter (Player):
- MakeBubbleAppear: QuestionMark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment