Skip to content

Commit 7f763de

Browse files
Bug fix:
HMM key image fixed Song menu click button is now normal
1 parent 9e1d333 commit 7f763de

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

game.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def run_FGHJ(screen,clock,song_name,stage_speed,offset,judgement_shown,guide_lin
147147

148148
# custom press setting for HHM fan music!
149149
hhm_list = []
150-
if song_name == 'Hmm Heu Ming':
150+
if song_name == 'Hmm Heu Ming Remix (Rcol)':
151151
print("Now playing Hmm Heu Ming!")
152152
hmm = load_image('hmm')
153153
hu = load_image('hu')
@@ -295,6 +295,8 @@ def run_FGHJ(screen,clock,song_name,stage_speed,offset,judgement_shown,guide_lin
295295
for T in tiles_off_screen + nodes_on_screen + holds_on_screen:
296296
T.draw(screen,screen_freeze)
297297
draw_frame(screen)
298+
write_text(screen, width // 2, (info_length // 2) // 2, 'Song: %s' % (song_name), small_text,
299+
background_color[change_background_color], red_color)
298300
pygame.display.flip()
299301
####### change background color! ########
300302
#pygame.time.delay(wait_delay)

main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ def update_song_info():
8181
mouse_particle_list.append((pygame.time.get_ticks(),(xp, yp)))
8282

8383
if abs(xp - option_key_x_level) < big_text*6:
84-
if abs(yp - (option_key_y_level)) < big_text*2:
84+
if abs(yp - (option_key_y_level)) < big_text:
8585
print('option clicked!')
8686
run = False
8787
stage_speed, offset, judgement_shown, guide_line_shown, high_quality_verifying_graphics = option_screen(screen,clock,stage_speed, offset, judgement_shown, guide_line_shown, high_quality_verifying_graphics)
8888
#print(stage_speed, offset, judgement_shown, guide_line_shown, high_quality_verifying_graphics)
8989
break
9090

9191
if abs(xp - song_selection_key_x_level) < big_text*6:
92-
if abs(yp - (song_selection_key_y_level)) < big_text*2:
92+
if abs(yp - (song_selection_key_y_level)) < big_text:
9393
print('song selection clicked!')
9494
run = False
9595
music_list, music_pointer, song_name = song_selection_screen(screen,clock,stage_speed, offset, judgement_shown, guide_line_shown, high_quality_verifying_graphics)
@@ -116,11 +116,11 @@ def update_song_info():
116116

117117
write_text(screen, width//2, height//8 , 'A rhythm game in pygame', big_text, background_color[0], highlight_text_color)
118118

119-
write_text(screen, option_key_x_level, option_key_y_level + big_text,
119+
write_text(screen, option_key_x_level, option_key_y_level,
120120
'[ Options ]', big_text, background_color[0],
121121
highlight_text_color)
122122

123-
write_text(screen, song_selection_key_x_level, song_selection_key_y_level + big_text,
123+
write_text(screen, song_selection_key_x_level, song_selection_key_y_level,
124124
'[ Song selection ]', big_text, background_color[0],
125125
highlight_text_color)
126126

variables.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
holding_middle_color = (170,170,170)
8888
not_holding_middle_color = (120,120,120)
8989

90+
red_color = (150,25,25)
9091
bad_apple_color = (240, 180, 180)
9192
bad_apple_toggled_color = (0,0,0)
9293
debug_color = (241, 196, 15)

0 commit comments

Comments
 (0)