Slightly optimised code (maybe idk)
This commit is contained in:
@ -98,7 +98,7 @@ class Game:
|
||||
self.spinning = False #stop spinning
|
||||
self.startSpin = False #what did i say bitch? stop spinning
|
||||
self.shockScale += self.fire() #check if the user gets shot
|
||||
if self.shockScale > 1: self.shockScale=1 #keeps shockScale in bounds
|
||||
self.shockScale = min(self.shockScale, 1) #keeps shockScale in bounds
|
||||
|
||||
#screen code
|
||||
self.surface.fill("black")
|
||||
|
||||
Reference in New Issue
Block a user