add tip list
This commit is contained in:
parent
7b9d7734ab
commit
c733cf64e1
12 changed files with 598 additions and 187 deletions
26
settings.py
Normal file
26
settings.py
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import pygame
|
||||
|
||||
# Globale Einstellungen für das Spiel
|
||||
MAP_PATH = "geodata/s2_2025.tif"
|
||||
WIDTH = 800
|
||||
HEIGHT = 600
|
||||
MINIMAP_MARGIN = 20
|
||||
|
||||
PLAYER_SIZE = 40
|
||||
PLAYER_SPEED = 5
|
||||
WATER_SIZE = 10
|
||||
WATER_SPEED = 10
|
||||
KILL_RADIUS = 30
|
||||
|
||||
PLAYER_IMG_PATH = "images/player.png"
|
||||
ENEMY_IMG_PATH = "images/enemy.png"
|
||||
HUMAN_IMG_PATH = "images/human.png"
|
||||
|
||||
|
||||
def load_img(path, size):
|
||||
try:
|
||||
img = pygame.image.load(path).convert_alpha()
|
||||
return pygame.transform.scale(img, size)
|
||||
except Exception as e:
|
||||
print(f"Error loading image '{path}': {e}")
|
||||
return None
|
||||
Loading…
Add table
Add a link
Reference in a new issue