diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2013-08-22 21:19:57 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2013-08-22 21:19:57 (GMT) |
commit | 9a62679e89ad1fbc0954ba5bdb378b6c132c04ec (patch) | |
tree | b3e9579c831e2d32633ad3e61d4a47027871c428 /src | |
parent | 7c72adf0a7206842ea00890ef8213c8f4e2c25b6 (diff) |
clean credits state
Diffstat (limited to 'src')
-rw-r--r-- | src/game/CreditsState.py | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/src/game/CreditsState.py b/src/game/CreditsState.py index 0b2f38a..94c5787 100644 --- a/src/game/CreditsState.py +++ b/src/game/CreditsState.py @@ -1,13 +1,13 @@ # -*- coding: utf-8 -*- +import pygame import MenuState from api.GameState import CGameState from api.Game import CGame from api.Button import CButton import api.Image as CImage -from api.Globe import Globe +#from api.Globe import Globe -import pygame class CCreditsState(CGameState): @@ -18,9 +18,6 @@ class CCreditsState(CGameState): def init(self): CGameState.init(self) - #self.mInstructions = CMultiLabel() - #CGame().addChild(self.mInstructions) - #print self.mX self.mButtonBack = CButton() self.mButtonBack.set_bgColor((0x99, 0x99, 0x66)) @@ -33,18 +30,10 @@ class CCreditsState(CGameState): self.mBackground = CImage.loadImage('assets/images/back_credits.png', False) CGame().setBackground(self.mBackground) - t = "hola esto\nes una simple\nprueba de\nconcepto" + """t = "hola esto\nes una simple\nprueba de\nconcepto" self.mGlobe = Globe((200, 200), text=t) - CGame().addChild(self.mGlobe) - - """self.mPiece1 = Globe((200, 200)) - #self.mPiece1.loadImage('assets/images/a1g1/piece1.png', False) - #self.mPiece1.loadImage('assets/images/dialog/esquina-up-left.png', False) - self.mPiece1.loadImage('assets/images/dialog/esquina-down-right.png', False) - size = self.mPiece1.getSize() - self.mPiece1.setRegistrationPointOffset(size[0] / 2 , size[1] / 2) - - CGame().addChild(self.mPiece1)""" + self.mGlobe.set_center((200, 200)) + CGame().addChild(self.mGlobe)""" def update(self): @@ -61,7 +50,7 @@ class CCreditsState(CGameState): CGame().removeChild(self.mButtonBack) self.mButtonBack = None self.mBackground = None - CGame().removeChild(self.mGlobe) + #CGame().removeChild(self.mGlobe) print "CMenuState destroy" def doEvents(self, aEvent): |