mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
can't achieve this with rgbds 0.3.5
This commit is contained in:
parent
e32e5212af
commit
d11cac9e83
@ -115,7 +115,7 @@ sine_wave: MACRO
|
|||||||
x = 0.0
|
x = 0.0
|
||||||
rept \1
|
rept \1
|
||||||
dw (sin(x) + (sin(x) & $ff)) >> 8 ; round up
|
dw (sin(x) + (sin(x) & $ff)) >> 8 ; round up
|
||||||
x = x + (32768.0 / \1) ; a circle has 65536.0 "degrees"
|
x = x + 1024.0 ; a circle has 65536.0 "degrees"
|
||||||
endr
|
endr
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user