AI generálta csaták
This commit is contained in:
@@ -152,14 +152,15 @@ class OverworldMap:
|
||||
pixelated=True
|
||||
)
|
||||
|
||||
# Teszt objektum
|
||||
class TestObject:
|
||||
def __init__(self, x, y):
|
||||
# Csata Szobor
|
||||
class BattlePodium:
|
||||
def __init__(self, x, y, battle_id):
|
||||
self.x = x
|
||||
self.y = y
|
||||
self.w = 16
|
||||
self.h = 16
|
||||
self.interactive = True
|
||||
self.battle = battle_id
|
||||
|
||||
def get_aabb(self):
|
||||
return self.x, self.y, self.x + self.w, self.y + self.h
|
||||
@@ -171,5 +172,4 @@ class TestObject:
|
||||
)
|
||||
|
||||
def on_interact(self, start_battle_func):
|
||||
print("never gonna give you up")
|
||||
start_battle_func(0)
|
||||
start_battle_func(self.battle)
|
||||
|
||||
Reference in New Issue
Block a user