Mozaik effekt

This commit is contained in:
markojozsef
2026-09-25 10:31:07 +02:00
parent 8e060ce43f
commit 7a62dc6ae0
6 changed files with 37 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
import gamestate
# Azért létezik ez a "none" gamestate hogy meghívja az elsö gamestate init() funkcióját
def update(dt):
gamestate.switch_gamestate("overworld")
def update(game, dt):
gamestate.switch_gamestate(game, "title")

View File

@@ -26,8 +26,6 @@ OVERWORLD_MAP = [
[0,0,0,0],
]
class BalthasarController:
def __init__(self):
self.direction = DIR_UP
@@ -95,10 +93,10 @@ class OverworldMap:
controller = BalthasarController()
overworld = OverworldMap()
def switch():
def switch(game):
pass
def update(dt):
def update(game, dt):
controller.update()
if controls.is_control_pressed(0): # Fel

View File

@@ -10,18 +10,24 @@ panel = renderers.NineSlicesPanel(0,100,230,100)
m = []
def switch():
def mos_1x(g):
g.mosaic = 1
def mos_2x(g):
g.mosaic = 2
def switch(game):
global m
m = [
menu.MenuItem("1", 100, 90, None, None, None, None, None, None),
menu.MenuItem("2", 100, 70 , None, None, None, None, None, None)
menu.MenuItem("1", 100, 90, None, None, None, None, mos_1x, game),
menu.MenuItem("2", 100, 70 , None, None, None, None, mos_2x, game)
]
m[0].down = m[1]
m[1].up = m[0]
m[0].select()
def update(dt):
def update(game, dt):
controltext = ""
for c in controls.controls: