Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New PongClone Demo
#9
+1 AI for the nice added touch!
Code: (Select All)
Sub CreateBurst (x, y, num)
    For i = 1 To MAX_PARTICLES
        If parts(i).active = 0 And num > 0 Then
            parts(i).active = 1: parts(i).x = x: parts(i).y = y
            parts(i).xv = (Rnd * 10) - 5: parts(i).yv = (Rnd * 10) - 5
            parts(i).life = 255: num = num - 1
        End If
    Next
End Sub


As long as we are wasting time here is Infinite Pong - The Movie!
Code: (Select All)
_Title "Infinite Pong the Movie.bas for QB64 B+ 2018-09-16"
p1y = 1: p2y = 25 'paddle y
bx = 30: by = 10: bdx = 2: bdy = 1 'ball x, y, dx, dy
While 1
    Cls
    For row = 2 To 24
        Locate row, 5: Print "|";
        Locate row, 75: Print "|";
    Next
    p1x = bx - 5: _PrintString (p1x, p1y), "1111111111" ' draw paddle 1
    p2x = bx - 5: _PrintString (p2x, p2y), "2222222222" ' draw paddle 2
    If bx + bdx < 6 Then bdx = bdx * -1 + Int(Rnd * 3) - 1
    If bx + bdx > 74 Then bdx = bdx * -1 + Int(Rnd * 3) - 1
    If by + bdy < 2 Then bdy = bdy * -1: bdx = bdx + Int(Rnd * 3) - 1
    If by + bdy > 24 Then bdy = bdy * -1: bdx = bdx + Int(Rnd * 3) - 1
    bx = bx + bdx: by = by + bdy
    _PrintString (bx, by), "O"
    _Limit 10
Wend

Sorry you cant play this one either bLOL
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
New PongClone Demo - by TempodiBasic - 02-08-2026, 01:50 AM
RE: New PongClone Demo - by Unseen Machine - 02-08-2026, 07:03 AM
RE: New PongClone Demo - by SMcNeill - 02-08-2026, 07:29 AM
RE: New PongClone Demo - by Unseen Machine - 02-08-2026, 08:59 AM
RE: New PongClone Demo - by Magdha - 02-08-2026, 10:53 AM
RE: New PongClone Demo - by TempodiBasic - 02-08-2026, 02:06 PM
RE: New PongClone Demo - by TempodiBasic - 02-08-2026, 02:31 PM
RE: New PongClone Demo - by Magdha - 02-08-2026, 02:46 PM
RE: New PongClone Demo - by bplus - 02-08-2026, 02:59 PM
RE: New PongClone Demo - by TempodiBasic - 02-08-2026, 04:46 PM
RE: New PongClone Demo - by bplus - 02-08-2026, 07:19 PM
RE: New PongClone Demo - by Unseen Machine - 02-17-2026, 03:33 AM
RE: New PongClone Demo - by bplus - 02-17-2026, 03:48 AM
RE: New PongClone Demo - by Unseen Machine - 02-17-2026, 04:00 AM
RE: New PongClone Demo - by bplus - 02-17-2026, 04:18 AM
RE: New PongClone Demo - by Unseen Machine - 02-17-2026, 04:30 AM
RE: New PongClone Demo - by dbox - 02-17-2026, 04:36 AM
RE: New PongClone Demo - by Unseen Machine - 02-17-2026, 04:44 AM
RE: New PongClone Demo - by dbox - 02-17-2026, 05:29 AM
RE: New PongClone Demo - by bplus - 02-17-2026, 04:54 AM
RE: New PongClone Demo - by Unseen Machine - 02-17-2026, 10:17 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)