bugfixek és chatgpt teszt csatamenet
This commit is contained in:
11
src/menu.py
11
src/menu.py
@@ -33,16 +33,13 @@ class MenuItem:
|
||||
if controls.is_control_pressed(0) and self.up: # Fel
|
||||
self.selected = False
|
||||
self.up.select()
|
||||
|
||||
if controls.is_control_pressed(1) and self.down: # Le
|
||||
elif controls.is_control_pressed(1) and self.down: # Le
|
||||
self.selected = False
|
||||
self.down.select()
|
||||
|
||||
if controls.is_control_pressed(2) and self.left: # Bal
|
||||
elif controls.is_control_pressed(2) and self.left: # Bal
|
||||
self.selected = False
|
||||
self.left.select()
|
||||
|
||||
if controls.is_control_pressed(3) and self.right: # Jobb
|
||||
elif controls.is_control_pressed(3) and self.right: # Jobb
|
||||
self.selected = False
|
||||
self.right.select()
|
||||
|
||||
@@ -55,4 +52,4 @@ class MenuItem:
|
||||
assets.sprites["cursor"],
|
||||
arcade.LBWH(self.x - 16, self.y - 6, 16, 16),
|
||||
pixelated=True
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user