Blitz Basic Tutorial File
; 6. Drawing Color 255, 255, 255 Rect 10, p1_y, 15, 60, True ; Left Paddle Rect 775, p2_y, 15, 60, True ; Right Paddle Oval ball_x, ball_y, 10, 10, True ; Ball
Have you dusted off your copy of BlitzBasic lately? Let me know what you're building in the comments below! blitz basic tutorial
; Show FPS or instructions Color 255, 255, 255 ; White text Text 10, 10, "X Position: " + x ; Show FPS or instructions Color 255, 255,
Graphics 800, 600, 32, 2 SetBuffer BackBuffer() ; Our loop runs forever until we press ESC While Not KeyHit(1) ; Key 1 is the Escape key Draw Scores Text 350
Cls
Run that. You just made a physics engine. Sort of. 4. Input Handling (Keyboard) Blitz makes reading the keyboard stupidly easy using KeyDown() (holding) or KeyHit() (single press).
; Draw Scores Text 350, 20, p1_score Text 430, 20, p2_score