Play a short beep whenever fruit is eaten

This commit is contained in:
Juhani Krekelä 2023-01-14 21:35:55 +02:00
parent c81dee26f2
commit c632573f90
1 changed files with 3 additions and 0 deletions

View File

@ -183,6 +183,9 @@ collision:
eat_fruit:
; TODO: Lenghten snake
ld v0, 1
ld st, v0
ld i, single_pixel
drw fruit_x_reg, fruit_y_reg, 1
jp spawn_fruit