# import modules from it. sys.path.append("src") # This is only to be sure... the windows release # might need it. sys.path.append("lib") import annchienta try: os.mkdir(os.path.join(os.path.expanduser("~"), ".fall-of-imiryn")) except: pass # Fire up the engine. annchienta.init(os.path.join(os.path.expanduser("~"), ".fall-of-imiryn")) engine = annchienta.getEngine() # Init VideoManager. videoManager = annchienta.getVideoManager() videoManager.setVideoMode(400, 300, "Annchienta", False, 1) videoManager.setClearColor(0, 0, 0) # Init AudioManager. audioManager = annchienta.getAudioManager() audioManager.setVolume(0.33) audioManager.playMusic("music/title_1a.ogg") # Init MapManager. mapManager = annchienta.getMapManager()
import annchienta import sys sys.path.append(".") from editor import * # init annchienta annchienta.init() app = QApplication([]) widget = Editor() widget.show() app.exec_() #annchienta.quit()
#!/usr/bin/python import sys # Add the scripts directory to the path so we can # import modules from it. sys.path.append("scripts") # This is only to be sure... the windows release # might need it. sys.path.append("../lib") import annchienta # Fire up the engine. annchienta.init("saves") engine = annchienta.getEngine() logManager = annchienta.getLogManager() videoManager = annchienta.getVideoManager() videoManager.setVideoMode( 400, 300, "Annchienta", False ) videoManager.setClearColor(0,0,0) mapManager = annchienta.getMapManager() mapManager.setTileWidth(64) mapManager.setTileHeight(32) mapManager.setUpdatesPerSecond(60) mapManager.setMaxAscentHeight(32) mapManager.setMaxDescentHeight(32) mapManager.setOnUpdateScript("scripts/onupdate.py")