Changeset 557:e648501c2eea


Ignore:
Timestamp:
04/09/11 23:58:50 (12 years ago)
Author:
Adrianna Pińska <adrianna.pinska@…>
Branch:
default
Phase:
public
Rebase:
64323261343366643239636435643761613763393331316164356464616333366235366436326131
Message:

victory scene hacked in

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • data/npcs/kitsune.json

    r524 r557  
    1212        "text" : "But now we are here, face to face. How could you ever hope to defeat me?",
    1313        "choices" : [
    14             { "text": "In battle!", "next": "state.battle_start" },
    1514            { "text": "In a haiku competition.", "next": "state.haiku_start", "if": "len(world.fox.scrolls) > 0" }
    1615        ]
    17     },
    18     "battle_start" : {
    19         "text" : "Take your best shot!",
    20         "auto_next": "state.battle"
    2116    },
    2217    "haiku_start" : {
    2318        "text" : "What? Play me at my own game? You can certainly try! You must beat me at two out of three challenges. Tell me which line is missing.",
    2419        "auto_next": "state.haiku1"
    25     },
    26     "battle" : {
    27         "events" : [
    28             { "matches" : "world.missions.final_battle_lost", "next": "state.lost" },
    29             { "matches" : "world.missions.final_battle_won", "next": "state.won" }
    30         ]
    3120    },
    3221    "haiku1" : {
     
    9584    "won" : {
    9685        "text" : "What? How? No! This is impossible – how could you defeat me? My power... slipping... my tails! Gone! Noooo...",
    97         "auto_next": "state.defeated"
     86        "auto_next": "state.defeated",
     87        "on_exit": "end_game()"
    9888    },
    9989    "defeated" : {
  • skaapsteker/cutscene.py

    r503 r557  
    3636
    3737    def enter(self):
    38         if self._background_music:
     38        if self._background_music and self._soundsystem:
    3939            self._soundsystem.play_background_music(self._background_music)
    4040
  • skaapsteker/dialogue.py

    r553 r557  
    22
    33from . import data
    4 from .engine import OpenDialog, AddSpriteEvent
     4from .engine import OpenDialog, AddSpriteEvent, ChangeScene
    55
    66
     
    4949        AddSpriteEvent.post(sprite)
    5050
     51    def _end_game(self):
     52        """End the game"""
     53        from .cutscene import VictoryCutScene
     54        ChangeScene.post(VictoryCutScene(None, None))
     55
    5156    def _make_locals(self):
    5257        my_locals = {
     
    5661            "switch_to": self._switch_dialogue_to,
    5762            "drop_item": self._drop_item,
     63            "end_game": self._end_game,
    5864        }
    5965        return my_locals
Note: See TracChangeset for help on using the changeset viewer.