mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 19:50:12 +01:00
minor fixes
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
import pyray as ray
|
||||
|
||||
from libs.utils import get_current_ms, is_l_don_pressed, is_r_don_pressed
|
||||
from scenes.song_select import Transition
|
||||
|
||||
|
||||
class DevScreen:
|
||||
def __init__(self, width: int, height: int):
|
||||
self.width = width
|
||||
self.height = height
|
||||
self.screen_init = False
|
||||
self.transition = Transition(self.height, 'TRIPLE HELIX', 'Yonokid')
|
||||
|
||||
def on_screen_start(self):
|
||||
if not self.screen_init:
|
||||
@@ -21,16 +17,11 @@ class DevScreen:
|
||||
|
||||
def update(self):
|
||||
self.on_screen_start()
|
||||
self.transition.update(get_current_ms())
|
||||
|
||||
if is_l_don_pressed() or is_r_don_pressed():
|
||||
self.transition = Transition(self.height, 'TRIPLE HELIX', 'Yonokid')
|
||||
|
||||
if ray.is_key_pressed(ray.KeyboardKey.KEY_ENTER):
|
||||
return self.on_screen_end('GAME')
|
||||
|
||||
def draw(self):
|
||||
self.transition.draw(self.height)
|
||||
pass
|
||||
|
||||
def draw_3d(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user