04-03-2025, 05:42 PM
Yep, very well done, looks and feels awesome!
And I like this "naughty" code:
, where you let the 'Ball' variable contain both regular fields and array indexes!
And I like this "naughty" code:
Code:
' Ball
visible Ball = [] ' Array to store all balls (cue ball + others)
Ball.r = 10 ' Ball radius
Ball.m = 15 ' Maximum power for shooting the cue ball
Ball.n = 9 ' The number of the balls
for i = 0 to Ball.n
Ball[i] = []
Ball[i].vx = 0
Ball[i].vy = 0
next
, where you let the 'Ball' variable contain both regular fields and array indexes!