aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-04-15 13:49:08 +0200
committerlonkaars <loek@pipeframe.xyz>2023-04-15 13:49:08 +0200
commit597de95572721ea51569caeba40bfb816f505400 (patch)
treee5e1098480b224461a03d7407386e57d156428d7 /src
parent0daeed25c65412400e7b0b12ee1dc371c4060920 (diff)
fix demo figure
Diffstat (limited to 'src')
-rw-r--r--src/demo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/demo.c b/src/demo.c
index 27b8db2..dbaf2ca 100644
--- a/src/demo.c
+++ b/src/demo.c
@@ -52,8 +52,8 @@ void hh_demo_loop(unsigned long frame) {
hh_ppu_update_background_pos((frame / 5) % HH_PPU_SPRITE_WIDTH, (frame / 20) % HH_PPU_SPRITE_HEIGHT);
for (unsigned i = 0; i < HH_DEMO_BALL_COUNT; i++) {
- g_hh_demo_balls[i].position_x = HH_PPU_SCREEN_WIDTH/2 - HH_PPU_SPRITE_WIDTH/2 + (int)(60 * (double)sin((1*(double)frame / 10) + (double)i * 12));
- g_hh_demo_balls[i].position_y = HH_PPU_SCREEN_HEIGHT/2 - HH_PPU_SPRITE_HEIGHT/2 + (int)(30 * (double)sin((2*(double)frame / 10) + (double)i * 12));
+ g_hh_demo_balls[i].position_x = HH_PPU_SCREEN_WIDTH/2 - HH_PPU_SPRITE_WIDTH/2 + (int)(60 * (double)sin(1*((double)frame + 3*(double)i) / 10));
+ g_hh_demo_balls[i].position_y = HH_PPU_SCREEN_HEIGHT/2 - HH_PPU_SPRITE_HEIGHT/2 + (int)(30 * (double)sin(2*((double)frame + 3*(double) i) / 10));
hh_ppu_update_foreground(i+16, g_hh_demo_balls[i]);
}
return;