New demo uploaded: Pool Table Simulator

All aspects of programming on the Commander X16.
Post Reply
lamb-duh
Posts: 63
Joined: Fri Jul 10, 2020 7:46 pm

New demo uploaded: Pool Table Simulator

Post by lamb-duh »




Pool Table Simulator




View File






Play a game of pool on your commander X16. Click inside the light green circle to hit the white ball around the table.






 
User avatar
desertfish
Posts: 1123
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

New demo uploaded: Pool Table Simulator

Post by desertfish »


A 2d physics multi-object collision engine on an 8 bit system, that's actually pretty darn nice even though it's not entirely realistic behavior.  I always find it fun to play around with anything having physics simulation.  It's always more fun when it's less realistic !

lamb-duh
Posts: 63
Joined: Fri Jul 10, 2020 7:46 pm

New demo uploaded: Pool Table Simulator

Post by lamb-duh »



48 minutes ago, desertfish said:




A 2d physics multi-object collision engine on an 8 bit system, that's actually pretty darn nice even though it's not entirely realistic behavior.  I always find it fun to play around with anything having physics simulation.  It's always more fun when it's less realistic !



haha, I agree that non-realistic physics can be lots of fun, but this is more broken-physics than cartoon-physics! I'm pretty happy with how it turned out though, very surprised how much I could pack into a frame. When I started I wasn't even sure if I'd be able to get two or three balls bouncing at 60fps. By the time I got all the physics more or less working on 16 balls it still wasn't missing frames, and I managed to pack the whole thing 5 times into *most* frames. (it misses some frames when there's lots of collisions, but I haven't found it to be particularly noticeable).

The physics engine does a lot better when you turn down the velocities and the friction, but then it's not fast enough to feel anything like pool. There's a lot that could probably be done to make the physics engine more efficient though.

Xiphod
Posts: 568
Joined: Thu Apr 15, 2021 8:05 am

Re: New demo uploaded: Pool Table Simulator

Post by Xiphod »

Hey trying to find the original developer of this, to dust it off and revise for the newer R45 ROMs.

Looks pretty slick, and had mouse support? Neato.
Post Reply