2024-07-18 10:53:51 +02:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
import pygame
|
|
|
|
|
|
|
|
vec2 = pygame.math.Vector2
|
|
|
|
|
|
|
|
RES = WIDTH, HEIGHT = vec2(1400, 800)
|
|
|
|
CENTER = H_WIDTH, H_HEIGHT = RES // 2
|
|
|
|
TILE_SIZE = 250
|
|
|
|
|
|
|
|
PLAYER_SPEED = 0.4
|
|
|
|
PLAYER_ROT_SPEED = 0.0015
|
|
|
|
|
|
|
|
BG_COLOR = "olivedrab"
|
|
|
|
NUM_ANGLES = 180 # multiple of 360
|
|
|
|
TRANSP_COLOR = (43, 64, 36)
|
|
|
|
|
|
|
|
SPRITE_ATTRS = {
|
|
|
|
"Robot": {
|
|
|
|
"path": "../assets/stacked_sprites/Robot.png",
|
2024-07-18 17:21:05 +02:00
|
|
|
"layers": 16,
|
|
|
|
"scale": 8
|
2024-07-18 10:53:51 +02:00
|
|
|
},
|
|
|
|
"Building": {
|
|
|
|
"path": "../assets/stacked_sprites/Building.png",
|
2024-07-18 17:21:05 +02:00
|
|
|
"layers": 80,
|
|
|
|
"scale": 4
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ANIMATED_SPRITE_ATTRS = {
|
|
|
|
"Bla": {
|
|
|
|
"path": "../assets/stacked_sprites/animated/bla/",
|
|
|
|
"layers": 3,
|
|
|
|
"scale": 16
|
2024-07-18 10:53:51 +02:00
|
|
|
}
|
|
|
|
}
|