Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2014-02-15 00:17:50 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2014-02-15 00:17:50 (GMT)
commit85c11c0a88af436de3c19b61d80848dac0ff316a (patch)
tree195d57528e10d6ec111db20d4979563c88b21e00 /src
parent83d6a842d1ae22f182a4044d1a92a87e237c18bd (diff)
spanglish messages
Diffstat (limited to 'src')
-rwxr-xr-xsrc/Main.py6
-rw-r--r--src/api/Game.py4
-rw-r--r--src/api/PartidasMan.py7
-rw-r--r--src/game/PresentationState.py2
4 files changed, 10 insertions, 9 deletions
diff --git a/src/Main.py b/src/Main.py
index 7ec27b5..5e9e9be 100755
--- a/src/Main.py
+++ b/src/Main.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from api.Game import CGame
-import game.PresentationState
+from game.PresentationState import CPresentationState
class EdSexualGame():
@@ -12,7 +12,7 @@ class EdSexualGame():
g = CGame()
- ms = game.PresentationState.CPresentationState()
+ ms = CPresentationState()
g.setState(ms)
g.gameLoop()
@@ -20,4 +20,4 @@ class EdSexualGame():
if __name__ == "__main__":
j = EdSexualGame()
- j.main() \ No newline at end of file
+ j.main()
diff --git a/src/api/Game.py b/src/api/Game.py
index 440e260..bf4b9ce 100644
--- a/src/api/Game.py
+++ b/src/api/Game.py
@@ -46,7 +46,7 @@ class CGame(object):
setPartidasToFile(self.mPartidaDict)
pygame.mouse.set_visible(True)
pygame.quit()
- print "destroy Game"
+ print "destroy game..."
def init(self):
print "initing game..."
@@ -104,7 +104,7 @@ class CGame(object):
self.mCurrentPartida = 1
def gameLoop(self):
- print "starting game.."
+ print "starting game..."
while not self.mQuit:
diff --git a/src/api/PartidasMan.py b/src/api/PartidasMan.py
index de78669..c5ab974 100644
--- a/src/api/PartidasMan.py
+++ b/src/api/PartidasMan.py
@@ -33,7 +33,7 @@ def getPartidasFromFile():
try:
f = open(path + 'data_partidas', 'r')
except:
- print 'Error al abrir partidas'
+ print 'Error opening partidas'
p1 = Partida()
p2 = Partida()
p3 = Partida()
@@ -75,7 +75,7 @@ def setPartidasToFile(par):
try:
f = open(path + 'data_partidas', 'w')
except:
- print 'Error al guardar partidas'
+ print 'Error saving partidas'
return
for i in [1, 2, 3]:
@@ -94,4 +94,5 @@ def setPartidasToFile(par):
else:
f.write('None\n')
f.close()
- print 'partidas guardadas'
+ print 'saving partidas'
+
diff --git a/src/game/PresentationState.py b/src/game/PresentationState.py
index 3178f37..fe5e104 100644
--- a/src/game/PresentationState.py
+++ b/src/game/PresentationState.py
@@ -44,7 +44,7 @@ class CPresentationState(CGameState):
if CMouse().firstPress():
self.mactive = True
- if self.mactive == True:
+ if self.mactive:
if CMouse().release():
self.mactive = False
ms = MenuState.CMenuState()