Mercurial > fife-parpg
comparison demos/shooter/scripts/gui/guis.py @ 491:c4168eb47a44
Adding some comments to the shooter demo. Updated the copyright date and FIFE URL as well.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 06 May 2010 19:34:21 +0000 |
parents | ab28994820dd |
children | 987307d12235 |
comparison
equal
deleted
inserted
replaced
490:939a4dc12ca1 | 491:c4168eb47a44 |
---|---|
1 # -*- coding: utf-8 -*- | 1 # -*- coding: utf-8 -*- |
2 | 2 |
3 # #################################################################### | 3 # #################################################################### |
4 # Copyright (C) 2005-2009 by the FIFE team | 4 # Copyright (C) 2005-2010 by the FIFE team |
5 # http://www.fifengine.de | 5 # http://www.fifengine.net |
6 # This file is part of FIFE. | 6 # This file is part of FIFE. |
7 # | 7 # |
8 # FIFE is free software; you can redistribute it and/or | 8 # FIFE is free software; you can redistribute it and/or |
9 # modify it under the terms of the GNU Lesser General Public | 9 # modify it under the terms of the GNU Lesser General Public |
10 # License as published by the Free Software Foundation; either | 10 # License as published by the Free Software Foundation; either |
137 def __init__(self, name, score): | 137 def __init__(self, name, score): |
138 self._name = name | 138 self._name = name |
139 self._score = int(score) | 139 self._score = int(score) |
140 | 140 |
141 class HighScores(object): | 141 class HighScores(object): |
142 """ | |
143 Handles all the high scores. It saves and loads the high score file. | |
144 """ | |
142 def __init__(self, world): | 145 def __init__(self, world): |
143 self._world = world | 146 self._world = world |
144 self.load() | 147 self.load() |
145 | 148 |
146 def load(self): | 149 def load(self): |