Compare commits
2 Commits
943b116f56
...
cb59cbdcae
| Author | SHA1 | Date | |
|---|---|---|---|
| cb59cbdcae | |||
| 508ea87a7d |
13
__init__.py
13
__init__.py
@ -4,6 +4,8 @@ from random import randint
|
|||||||
#import NoPELib
|
#import NoPELib
|
||||||
#import PDOLib
|
#import PDOLib
|
||||||
|
|
||||||
|
#Oh god here we go. I'm gonna screw up this entire thing
|
||||||
|
|
||||||
class Game:
|
class Game:
|
||||||
def __init__(self, surface, size):
|
def __init__(self, surface, size):
|
||||||
"""
|
"""
|
||||||
@ -18,6 +20,17 @@ class Game:
|
|||||||
self.surface = surface
|
self.surface = surface
|
||||||
self.size = size
|
self.size = size
|
||||||
self.clock = pygame.time.Clock()
|
self.clock = pygame.time.Clock()
|
||||||
|
|
||||||
|
# TODO: Add a random delay between the spin and fire
|
||||||
|
|
||||||
|
# TODO: Utiles the following new sounds:
|
||||||
|
# gun-load: Should be played at the beginning of the game,
|
||||||
|
# and should have an animation accompanying it.
|
||||||
|
# see Brosef for the animation.
|
||||||
|
# gun-cylinder-stop: Plays directly after the load
|
||||||
|
# animation is complete.
|
||||||
|
# gun-spin/blank/shot are all used in their original ways.
|
||||||
|
|
||||||
#Sounds for the gun :3
|
#Sounds for the gun :3
|
||||||
self.playSound = pygame.mixer.Sound.play
|
self.playSound = pygame.mixer.Sound.play
|
||||||
self.gunBlank = pygame.mixer.Sound("sfx/gun-blank.mp3")
|
self.gunBlank = pygame.mixer.Sound("sfx/gun-blank.mp3")
|
||||||
|
|||||||
Reference in New Issue
Block a user