by Peter Wilson (25 Submissions)
Category: Graphics
Compatability: VB Script
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (7 Votes)
Watch Asteroids floating around in space bouncing off each other with the same realistic precision as billiard balls. No DirectX or OpenGL, just pure VB code that produces the most wonderful, mesmerizing zero-G display. This application builds on two of my previous submissions, namely the Asteroids game, and the DotProduct demonstration. It would be trivial to turn this into a 2D game of billiards. It’s also easy to change the shape of the asteroids into perfect speheres by adjusting variables in the “CreateRandomShapeAsteroid” routine. Comments are scattered everywhere throughout the code. As always, compile for speed. Press the space-bar to reset.