Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (24 sloc) 960 Bytes
import game
class Messenger(object):
"""Used to allow objects to communicate with each other."""
game = None
gameScreen = None
menuScreen = None
creditScreen = None
score = None
def change_mode(new_mode):
"""Changes game mode, makes me wish we had symbols in Python."""
if new_mode == "CreditScreen":
score = "Final Score: %d" % Messenger.gameScreen.score
Messenger.creditScreen.score_label.text = score
if ==["GameScreen"]:["GameScreen"] = game.GameScreen() =[new_mode]
if new_mode == "GameScreen":
def quit():