diff src/parpg/application.py @ 182:59c9ce2b8351

PARPG now works with, and needs Fife 0.3.3.
author KarstenBock@gmx.net
date Tue, 11 Oct 2011 14:47:37 +0200
parents 0443ab9533ce
children 9d9c4ccc081e
line wrap: on
line diff
--- a/src/parpg/application.py	Mon Oct 10 15:13:56 2011 +0200
+++ b/src/parpg/application.py	Tue Oct 11 14:47:37 2011 +0200
@@ -18,7 +18,6 @@
 
 from fife import fife
 from fife.extensions import pychan
-from fife.extensions.serializers.xmlanimation import XMLAnimationLoader
 from fife.extensions.basicapplication import ApplicationBase
 
 from parpg import console, vfs
@@ -121,9 +120,6 @@
         # KLUDGE M. George Hansen 2011-06-04: See parpg/vfs.py.
         vfs.VFS = self.engine.getVFS()
         vfs.VFS.addNewSource(setting.parpg.DataPath)
-        self._animationloader = XMLAnimationLoader(self.engine.getImagePool(),
-                                                   self.engine.getVFS())
-        self.engine.getAnimationPool().addResourceLoader(self._animationloader)
 
         pychan.init(self.engine, debug = True)
         pychan.setupModalExecution(self.mainLoop,self.breakFromMainLoop)
@@ -180,7 +176,9 @@
         engineSetting.setDefaultFontSize(self._setting.fife.DefaultFontSize)
         engineSetting.setBitsPerPixel(self._setting.fife.BitsPerPixel)
         engineSetting.setInitialVolume(self._setting.fife.InitialVolume)
-        engineSetting.setSDLRemoveFakeAlpha(self._setting.fife.SDLRemoveFakeAlpha)
+        engineSetting.setSDLRemoveFakeAlpha(
+            self._setting.fife.SDLRemoveFakeAlpha
+        )
         engineSetting.setScreenWidth(self._setting.fife.ScreenWidth)
         engineSetting.setScreenHeight(self._setting.fife.ScreenHeight)
         engineSetting.setRenderBackend(self._setting.fife.RenderBackend)
@@ -207,7 +205,7 @@
 
     def _pump(self):
         """Main game loop.
-           There are in fact 2 main loops, this one and the one in GameSceneView.
+           There are 2 main loops, this one and the one in GameSceneView.
            @return: None"""
         if self.listener.quit:
             self.breakRequested = True #pylint: disable-msg=C0103