comparison demos/rio_de_hola/scripts/agents/girl.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 70697641fca3
children 3dff106b945b
comparison
equal deleted inserted replaced
495:ae9f5383f5b1 496:987307d12235
21 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 # #################################################################### 22 # ####################################################################
23 23
24 from agent import Agent 24 from agent import Agent
25 from fife import fife 25 from fife import fife
26 from settings import Setting 26 from fife.extensions.fife_settings import Setting
27 27
28 TDS = Setting() 28 TDS = Setting(app_name="rio_de_hola")
29 29
30 _STATE_NONE, _STATE_IDLE, _STATE_RUN, _STATE_FOLLOW = 0, 1, 2, 3 30 _STATE_NONE, _STATE_IDLE, _STATE_RUN, _STATE_FOLLOW = 0, 1, 2, 3
31 31
32 GIRL_SPEED = 3 * float(TDS.readSetting("TestAgentSpeed")) 32 GIRL_SPEED = 3 * float(TDS.readSetting("TestAgentSpeed"))
33 class Girl(Agent): 33 class Girl(Agent):