1
Fork 0

added an OP mode, for dev and cheats

This commit is contained in:
Jake Howard 2015-05-07 20:10:47 +01:00
parent 9e34de19b4
commit f74812bc3b

View file

@ -95,6 +95,8 @@ def play(window):
temp = Bullet(player) temp = Bullet(player)
bullet_group.add(temp) bullet_group.add(temp)
if event.type == pygame.KEYDOWN and event.key == pygame.K_KP_PLUS:
player.OP = not player.OP
keys = pygame.key.get_pressed() keys = pygame.key.get_pressed()
if keys[pygame.K_RIGHT] or keys[pygame.K_d]: if keys[pygame.K_RIGHT] or keys[pygame.K_d]: