player: cursor now flickers to make it semi-transparent
authorLukas Krickl <lukas@krickl.dev>
Fri, 7 Nov 2025 07:32:38 +0000 (08:32 +0100)
committerLukas Krickl <lukas@krickl.dev>
Fri, 7 Nov 2025 07:32:38 +0000 (08:32 +0100)
src/player.s

index 1de61f646ec6d0202c352702b580e2bfbe42c0e6..46a11b382eaf05aaf3f3d47ac7e05a469efffcbf 100644 (file)
@@ -63,6 +63,12 @@ move_cursor:
        
        ; draws player at current location
 player_draw:
+       ; flicker the cursor 
+       ; for transparency effect
+       ld a, [frame_count]
+       and a, 1
+       ret z
+
        ld a, 2
        call oamalloc