2022-04-04 11:40:18 +02:00
|
|
|
import pygame as pg
|
|
|
|
|
|
|
|
#colors
|
|
|
|
LIGHTGREY = (100, 100, 100)
|
|
|
|
CYAN = (0, 255, 255)
|
2022-04-08 01:34:11 +02:00
|
|
|
RED = (255, 0, 0)
|
2022-04-04 11:40:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
#game settings
|
|
|
|
WIDTH = 1024
|
|
|
|
HEIGHT = 768
|
|
|
|
FPS = 60
|
|
|
|
|
|
|
|
TILESIZE = 64
|
|
|
|
GRIDWIDTH = WIDTH/TILESIZE
|
|
|
|
GRIDHEIGHT = HEIGHT/TILESIZE
|
|
|
|
|
|
|
|
|
|
|
|
WALL_IMG = 'buliding\GTA2_TILE_26.bmp'
|
|
|
|
|
|
|
|
#player settings
|
|
|
|
PLAYER_SPEED = 280
|
|
|
|
PLAYER_ROT_SPEED = 200
|
|
|
|
PLAYER_IMG = 'garbagetruck/trashmaster_v2.png'
|
|
|
|
PLAYER_HIT_RECT = pg.Rect(0, 0, 50, 50)
|
|
|
|
PLAYER_WIDTH = 64
|
2022-04-08 02:17:02 +02:00
|
|
|
PLAYER_HEIGHT = 32
|
|
|
|
|
|
|
|
#map settings
|
2022-04-29 11:01:16 +02:00
|
|
|
MAP_WIDTH = 16
|
|
|
|
MAP_HEIGHT = 12
|
2022-04-08 02:17:02 +02:00
|
|
|
|
|
|
|
TILE_SIZE_PX = 64
|
|
|
|
MAP_WIDTH_PX = MAP_WIDTH * TILE_SIZE_PX
|
|
|
|
MAP_HEIGHT_PX = MAP_HEIGHT * TILE_SIZE_PX
|