2019-01-21 20:37:58 +01:00
|
|
|
# Config variables
|
|
|
|
import pygame
|
|
|
|
from pygame.locals import *
|
|
|
|
|
|
|
|
# Runtime settings
|
2019-01-29 21:17:55 +01:00
|
|
|
WINDOW_WIDTH = 720
|
2019-01-31 09:17:12 +01:00
|
|
|
WINDOW_HEIGHT = 1000
|
2019-01-21 20:37:58 +01:00
|
|
|
FPS = 30
|
|
|
|
WIN_NAME = "Kostschevsky's shooter"
|
|
|
|
|
2019-01-30 20:21:08 +01:00
|
|
|
PLAYER_HP=100
|
2019-01-30 23:35:43 +01:00
|
|
|
|
2019-01-21 20:37:58 +01:00
|
|
|
# Controls
|
|
|
|
|
|
|
|
# player 1
|
|
|
|
P1_UP=pygame.K_w
|
|
|
|
P1_DOWN=pygame.K_s
|
|
|
|
P1_RIGHT=pygame.K_d
|
|
|
|
P1_LEFT=pygame.K_a
|
2019-01-30 23:35:43 +01:00
|
|
|
P1_SHOOT=pygame.K_LCTRL
|
2019-01-21 20:37:58 +01:00
|
|
|
|
|
|
|
# player 2
|
|
|
|
P2_UP=pygame.K_UP
|
|
|
|
P2_DOWN=pygame.K_DOWN
|
|
|
|
P2_RIGHT=pygame.K_RIGHT
|
|
|
|
P2_LEFT=pygame.K_LEFT
|
|
|
|
P2_SHOOT=pygame.K_RCTRL
|
|
|
|
|
2019-01-21 22:55:58 +01:00
|
|
|
# bullets
|
|
|
|
BULLET_SPEED=20
|
2019-01-22 00:38:30 +01:00
|
|
|
SHOOT_SPEED=200
|
2019-01-30 20:21:08 +01:00
|
|
|
BULLET_DMG=20
|