Blitz Basic Tutorial Guide

Graphics 800, 600, 32, 2 SetBuffer BackBuffer() ; --- Player 1 (Left) --- p1_y = 250 p1_score = 0

; Keep ball on screen (Boundaries) If x < 0 Then x = 0 If x > 768 Then x = 768 If y < 0 Then y = 0 If y > 568 Then y = 568 blitz basic tutorial

Spoiler: It wasn't lying.

Cls

; 3. Collisions (Top/Bottom walls) If ball_y < 5 Or ball_y > 595 Then ball_dy = -ball_dy Graphics 800, 600, 32, 2 SetBuffer BackBuffer() ;

Have you dusted off your copy of BlitzBasic lately? Let me know what you're building in the comments below! Let me know what you're building in the comments below

If x > 780 Or x < 20 Then dx = -dx PlaySound beep EndIf Note: Blitz3D loves WAV files. MP3s require a plugin. In Blitz, you don't need Object Oriented Programming, but you have Types . Think of a Type as a cookie-cutter for game objects.