Archive for July, 2010
2010 -
07.31
Tags: 3D, C#, Opengl, Projective, Shooting, TAO
Posted in Code Snippets, Portfolio, Second Semester, Third Year, University Projects | 2 Comments »

My Teapot is a Projective space 3D Game, the player tries to prevent the collision between the teapot and the red opponents, while go for the green ones.. Also they can shoot any red opponent.
..:: Controls ::..
W – Up
S – Down
A - Left
D – Right
SPACE - Shoot
..:: Download ::..
Please contact me through email to send you the source code.
..:: Prerequisite ::..
TAO OpenGL Library
2010 -
07.14
Tags: Birds, Boids, C#, Simulation
Posted in Code Snippets | No Comments »

As with most artificial life simulations, Boids is an example of emergent behaviour; that is, the complexity of Boids arises from the interaction of individual agents (the boids, in this case) adhering to a set of simple rules. The rules applied in the simplest Boids world are as follows:
- separation: steer to avoid crowding local flockmates
- alignment: steer towards the average heading of local flockmates
- cohesion: steer to move toward the average position of local flockmates
src: wikipedia
How To:-
Right Mouse Click: Add new Blue Boid
Left Mouse Click: Add new Red Boid
What happens next?
The blue boids try to move in groups – notice they have a limited sight vision! They always fear the red boids so they try avoid them.
Download:-
Boids (Executable)
Boids_src (VS 2008)