AngryBoids - Implementation Workflow
Implementation Workflow
- Import required libraries
- import jbox2d libraries for Java & Android
- for javascript, include the following files in directory
- Box2D.js
- CollisionDetector.s
- Maxim.js
- physics.js
- Setup physics objects - physics
- Setup the start point
- Setup the collision detector
- Setup audio
- Setup graphics
- Setup custom rendering function where all drawing is done by physics engine
- Layout all the objects
- Map complex Graphics shapes to simple Physics objects e.g. boid maps to circle
- Setup gameplay score
- In the draw():
- Update the game score
- In mouseDragged();
- Set position of objects
- In mouseReleased():
- Apply impulse to objects
- Implement the customRenderer
- Implement the collision call back
- Check collisions with walls
- Elements to be added
- Gameplay mechanics
- Scoring mechanism
- Good artwork
- Good audio
No comments:
Post a Comment