mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
fix audio engine, add difficulty sorting kind of
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import pyray as ray
|
||||
|
||||
from libs.utils import session_data
|
||||
|
||||
|
||||
class DevScreen:
|
||||
def __init__(self, width: int, height: int):
|
||||
@@ -13,12 +15,14 @@ class DevScreen:
|
||||
|
||||
def on_screen_end(self, next_screen: str):
|
||||
self.screen_init = False
|
||||
session_data.prev_score = 10000
|
||||
session_data.result_score = 100000
|
||||
return next_screen
|
||||
|
||||
def update(self):
|
||||
self.on_screen_start()
|
||||
if ray.is_key_pressed(ray.KeyboardKey.KEY_ENTER):
|
||||
return self.on_screen_end('GAME')
|
||||
return self.on_screen_end('RESULT')
|
||||
|
||||
def draw(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user