Пример #1
0
import annchienta
import PartyManager, SceneManager, BattleManager

mapManager = annchienta.getMapManager()
engine = annchienta.getEngine()
videoManager = annchienta.getVideoManager()
audioManager = annchienta.getAudioManager()
partyManager = PartyManager.getPartyManager()
sceneManager = SceneManager.getSceneManager()
battleManager = BattleManager.getBattleManager()

currentMap = partyManager.getCurrentMap()

august = partyManager.getPlayer()

sceneManager.initDialog([august])

sceneManager.text("March:\nLook out!")
sceneManager.text("Ultros:\nYaaaouch! Seafood soup!")
won = battleManager.runBattle(
    ["ultros"], annchienta.Surface("images/backgrounds/cave.png"), False)
#won = True

if won:
    sound = annchienta.Sound("sounds/collapse.ogg")
    audioManager.playSound(sound)

    sceneManager.speak(august, "The cave is collapsing!")
    sceneManager.text("March:\nGet on this raft. Now.")
    sceneManager.text(
        "Use the mouse cursor to steer the raft. You will reach the cave exit in approximately one minute."
Пример #2
0
import annchienta
import battle

battleManager = battle.getBattleManager()
annchienta.getAudioManager().playMusic("music/tasumian.ogg")
annchienta.getVideoManager().setClearColor(20, 51, 2)
battleManager.enemiesInMap = ["hawk", "bovinasaur"]
battleManager.battleBackground = "images/backgrounds/woods.png"
Пример #3
0
 def __init__(self, sprite, sound):
     Animation.Animation.__init__(self, sprite, sound)
     self.audioManager = annchienta.getAudioManager()
Пример #4
0
import annchienta, PartyManager, BattleManager

partyManager = PartyManager.getPartyManager()
battleManager = BattleManager.getBattleManager()
annchienta.getAudioManager().playMusic("music/facilities.ogg")
annchienta.getVideoManager().setClearColor(72, 68, 50)
battleManager.setRandomBattleEnemies(
    ["brainfuck mutant", "sample 0x4a", "soldier"])
battleManager.setRandomBattleBackground("images/backgrounds/facilities.png")
Пример #5
0
import annchienta, PartyManager, BattleManager

partyManager = PartyManager.getPartyManager()
battleManager = BattleManager.getBattleManager()
annchienta.getAudioManager().playMusic( "music/inaran.ogg")
annchienta.getVideoManager().setClearColor(60,60,60)
battleManager.setRandomBattleEnemies( ["goblin", "stauld", "squid"] )
battleManager.setRandomBattleBackground( "images/backgrounds/cave.png" )

Пример #6
0
import annchienta, PartyManager, BattleManager

partyManager = PartyManager.getPartyManager()
battleManager = BattleManager.getBattleManager()
annchienta.getAudioManager().playMusic( "music/mountains.ogg")
annchienta.getVideoManager().setClearColor(147,201,233)
battleManager.setRandomBattleEnemies( ["ice warrior", "coeurl", "hawk"] )
battleManager.setRandomBattleBackground( "images/backgrounds/ice.png" )

# Load images we need for rendering into the cache
# so we don't have to do this on-the-fly.
cacheManager = annchienta.getCacheManager()
cacheManager.getSurface( "images/backgrounds/mountains.png" )
cacheManager.getSurface( "images/backgrounds/snow.png" )