From 321a4fa91c2712b825cfc25b32330ccd049a08ce Mon Sep 17 00:00:00 2001 From: Miguel Angel Astor Romero Date: Thu, 10 Jan 2013 17:35:18 -0430 Subject: [PATCH] Fixed dependencies of NotValidState on the Game class. --- game.py | 4 +--- particle.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/game.py b/game.py index e2128c1..9709575 100644 --- a/game.py +++ b/game.py @@ -12,7 +12,6 @@ from intro import IntroState from menu import MenuState from ingame import InGameState from score import ScoreState -from notvalidstate import NotValidState from constants import DEBUG # The Game class implements the state machine of the game and @@ -30,10 +29,9 @@ class Game: menu = MenuState() in_game = InGameState() score = ScoreState() - not_valid = NotValidState() # Create a states list. - self.state_vector = [intro, menu, in_game, score, not_valid] + self.state_vector = [intro, menu, in_game, score] def get_state(self): """ Returns the current state of the game. """ diff --git a/particle.py b/particle.py index 62f0186..62032cd 100644 --- a/particle.py +++ b/particle.py @@ -149,7 +149,7 @@ class ParticleSystem: float(random.randrange(-self.initial_velocity_max, self.initial_velocity_max))] particle = Particle( int(self.lifespan), - max(min(random.random(), 1.0), 0.5), + max(min(random.random(), 1.0), 0.2), self.texture, list(self.gravity), list(self.position),