minor fixes

This commit is contained in:
Yonokid
2025-07-29 12:36:00 -04:00
parent 03a95b2de7
commit 69e718fa49
4 changed files with 8 additions and 17 deletions

View File

@@ -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

View File

@@ -26,10 +26,10 @@ class EntryScreen:
self.width = width
self.height = height
self.screen_init = False
self.box_titles: list[tuple[OutlinedText, OutlinedText]] = [(OutlinedText('演奏ゲーム', 50, ray.Color(255, 255, 255, 255), ray.Color(109, 68, 24, 255), outline_thickness=5, vertical=True),
OutlinedText('演奏ゲーム', 50, ray.Color(255, 255, 255, 255), ray.Color(0, 0, 0, 255), outline_thickness=5, vertical=True)),
(OutlinedText('ゲーム設定', 50, ray.Color(255, 255, 255, 255), ray.Color(109, 68, 24, 255), outline_thickness=5, vertical=True),
OutlinedText('ゲーム設定', 50, ray.Color(255, 255, 255, 255), ray.Color(0, 0, 0, 255), outline_thickness=5, vertical=True))]
self.box_titles: list[tuple[OutlinedText, OutlinedText]] = [(OutlinedText('演奏ゲーム', 50, ray.WHITE, ray.Color(109, 68, 24, 255), outline_thickness=5, vertical=True),
OutlinedText('演奏ゲーム', 50, ray.WHITE, ray.BLACK, outline_thickness=5, vertical=True)),
(OutlinedText('ゲーム設定', 50, ray.WHITE, ray.Color(109, 68, 24, 255), outline_thickness=5, vertical=True),
OutlinedText('ゲーム設定', 50, ray.WHITE, ray.BLACK, outline_thickness=5, vertical=True))]
def load_textures(self):
self.textures = load_all_textures_from_zip(Path('Graphics/lumendata/entry.zip'))