AI generálta csaták

This commit is contained in:
markojozsef
2026-10-15 14:46:51 +02:00
parent 1383587e35
commit 158a375da2
5 changed files with 419 additions and 116 deletions

View File

@@ -4,14 +4,17 @@ import controls
import gamestate
import math
from objects import BalthasarRenderer, OverworldMap, TestObject, DIR_UP, DIR_LEFT, DIR_DOWN, DIR_RIGHT, B_SPRITE_HEIGHT
from objects import BalthasarRenderer, OverworldMap, BattlePodium, DIR_UP, DIR_LEFT, DIR_DOWN, DIR_RIGHT, B_SPRITE_HEIGHT
WALK_SPEED = 48
balthasar = BalthasarRenderer()
overworld = OverworldMap()
objects = [
TestObject(0,16),
BattlePodium(0 , 0, 0),
BattlePodium(48, 0, 1),
BattlePodium(0 ,48, 2),
BattlePodium(48,48, 3),
balthasar
]
@@ -186,4 +189,4 @@ def draw(game):
trans = overworld.get_translation(game)
for o in sorted(objects, key=lambda o: o.y, reverse=True):
o.render(game, trans)
o.render(game, trans)