Mercurial > fife-parpg
comparison demos/rio_de_hola/scripts/world.py @ 496:987307d12235
Added the fife_settings.py extension. This provides a small utility class for loading and saving settings along with a dialog box for setting screen resolution and other things.
Updated the shooter demo and rio_de_hola to use the new settings extension.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 12 May 2010 16:09:46 +0000 |
parents | e29853880e87 |
children | 3dff106b945b |
comparison
equal
deleted
inserted
replaced
495:ae9f5383f5b1 | 496:987307d12235 |
---|---|
33 from agents.hero import Hero | 33 from agents.hero import Hero |
34 from agents.girl import Girl | 34 from agents.girl import Girl |
35 from agents.cloud import Cloud | 35 from agents.cloud import Cloud |
36 from agents.beekeeper import Beekeeper | 36 from agents.beekeeper import Beekeeper |
37 from agents.agent import create_anonymous_agents | 37 from agents.agent import create_anonymous_agents |
38 from settings import Setting | 38 from fife.extensions.fife_settings import Setting |
39 | 39 |
40 TDS = Setting() | 40 TDS = Setting(app_name="rio_de_hola") |
41 | 41 |
42 class MapListener(fife.MapChangeListener): | 42 class MapListener(fife.MapChangeListener): |
43 def __init__(self, map): | 43 def __init__(self, map): |
44 fife.MapChangeListener.__init__(self) | 44 fife.MapChangeListener.__init__(self) |
45 map.addChangeListener(self) | 45 map.addChangeListener(self) |