Skip to content

Commit

Permalink
Bug fix:
Browse files Browse the repository at this point in the history
HMM key image fixed
Song menu click button is now normal
  • Loading branch information
blueSparrow2000 committed Dec 20, 2023
1 parent 9e1d333 commit 7f763de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion game.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def run_FGHJ(screen,clock,song_name,stage_speed,offset,judgement_shown,guide_lin

# custom press setting for HHM fan music!
hhm_list = []
if song_name == 'Hmm Heu Ming':
if song_name == 'Hmm Heu Ming Remix (Rcol)':
print("Now playing Hmm Heu Ming!")
hmm = load_image('hmm')
hu = load_image('hu')
Expand Down Expand Up @@ -295,6 +295,8 @@ def run_FGHJ(screen,clock,song_name,stage_speed,offset,judgement_shown,guide_lin
for T in tiles_off_screen + nodes_on_screen + holds_on_screen:
T.draw(screen,screen_freeze)
draw_frame(screen)
write_text(screen, width // 2, (info_length // 2) // 2, 'Song: %s' % (song_name), small_text,
background_color[change_background_color], red_color)
pygame.display.flip()
####### change background color! ########
#pygame.time.delay(wait_delay)
Expand Down
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ def update_song_info():
mouse_particle_list.append((pygame.time.get_ticks(),(xp, yp)))

if abs(xp - option_key_x_level) < big_text*6:
if abs(yp - (option_key_y_level)) < big_text*2:
if abs(yp - (option_key_y_level)) < big_text:
print('option clicked!')
run = False
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)
#print(stage_speed, offset, judgement_shown, guide_line_shown, high_quality_verifying_graphics)
break

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

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

write_text(screen, option_key_x_level, option_key_y_level + big_text,
write_text(screen, option_key_x_level, option_key_y_level,
'[ Options ]', big_text, background_color[0],
highlight_text_color)

write_text(screen, song_selection_key_x_level, song_selection_key_y_level + big_text,
write_text(screen, song_selection_key_x_level, song_selection_key_y_level,
'[ Song selection ]', big_text, background_color[0],
highlight_text_color)

Expand Down
1 change: 1 addition & 0 deletions variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
holding_middle_color = (170,170,170)
not_holding_middle_color = (120,120,120)

red_color = (150,25,25)
bad_apple_color = (240, 180, 180)
bad_apple_toggled_color = (0,0,0)
debug_color = (241, 196, 15)
Expand Down

0 comments on commit 7f763de

Please sign in to comment.