AI generálta csaták
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user