VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Asteroid Collisions (using the DotProduct)

Peter Wilson  (25 Submissions)   Graphics   VB Script   Intermediate   Wed 3rd February 2021

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.

Rate Asteroid Collisions (using the DotProduct) (8(8 Vote))

Download Asteroid Collisions (using the DotProduct)

Asteroid Collisions (using the DotProduct) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters