VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Asteroid Collisions (using the DotProduct)

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.

Rate Asteroid Collisions (using the DotProduct)

Download Asteroid Collisions (using the DotProduct)

Download Asteroid Collisions (using the DotProduct) (44 KB)

Asteroid Collisions (using the DotProduct) Comments

No comments have been posted about Asteroid Collisions (using the DotProduct). Why not be the first to post a comment about Asteroid Collisions (using the DotProduct).

Post your comment

Subject:
Message:
0/1000 characters