2019-01-21 20:37:58 +01:00
|
|
|
# Config variables
|
|
|
|
import pygame
|
|
|
|
from pygame.locals import *
|
|
|
|
|
|
|
|
# Runtime settings
|
|
|
|
WINDOW_WIDTH = 1280
|
|
|
|
WINDOW_HEIGHT = 720
|
|
|
|
FPS = 30
|
|
|
|
WIN_NAME = "Kostschevsky's shooter"
|
|
|
|
|
|
|
|
# Controls
|
|
|
|
|
|
|
|
# player 1
|
|
|
|
P1_UP=pygame.K_w
|
|
|
|
P1_DOWN=pygame.K_s
|
|
|
|
P1_RIGHT=pygame.K_d
|
|
|
|
P1_LEFT=pygame.K_a
|
|
|
|
P1_SHOOT=pygame.K_z
|
|
|
|
|
|
|
|
# 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
|