Blitz — Basic Tutorial
By: Retro Dev Journal Read Time: 10 minutes
; --- Ball --- ball_x = 400 ball_y = 300 ball_dx = 4 ball_dy = 3 blitz basic tutorial
; Slow down the loop so it doesn't zoom too fast (50 milliseconds) Delay 20 Wend By: Retro Dev Journal Read Time: 10 minutes
; 3. Collisions (Top/Bottom walls) If ball_y < 5 Or ball_y > 595 Then ball_dy = -ball_dy 5 Or ball_y >
Graphics 800, 600, 32, 2 SetBuffer BackBuffer() ; Variables Global x = 100 Global y = 300 Global dx = 3 ; Speed in X direction
Flip