louislafontaine / thetaleofmaya Goto Github PK
View Code? Open in Web Editor NEWProjet info ASINSA 2A - Jeu 2D avec implémetation de Boid
Projet info ASINSA 2A - Jeu 2D avec implémetation de Boid
Add a Sound.java class that enables to read mp3 files
Implement a quadtree data structure to optimize the handling of boids
Steer towards the average heading of local flock-mates
http://www.red3d.com/cwr/boids/
Make the boid able to detect the border of the screen and avoid them
Implement formation flight.
To do this, add the rule that boids should want to have their "view" empty.
For further see : https://www.youtube.com/watch?v=mhjuuHl6qHM at 40 min
example of the result : https://image.shutterstock.com/image-photo/ducks-flying-triangle-formation-260nw-55605025.jpg
Add an entity that is controllable through the keyboard wasd keys
Have boids change their color so that all neighbor flockmates are the same color
Steer to avoid crowding local flock-mates
http://www.red3d.com/cwr/boids/
Currently after the new acceleration vector of a boid (i) has been computed, that boid is updated and put back in the list of all boids. So the (i+1) boid's acceleration is based on the already updated (0 to i) boid's accelerations.
The goal here is to update the acceleration vector of every boid so that the acceleration of the aforementioned (i+1) boid would be calculated based on the non updated (0 to i) boid's acceleration.
Add an Animation.java class that can handle animation based on a SpriteSheet
Steer to move toward the average position of local flock-mates
http://www.red3d.com/cwr/boids/
Display the current fps of the boid simulation as a small overlay in a corner of the window
Implement a viewing angle on the perception radius, eg :
http://www.red3d.com/cwr/boids/images/neighborhood.gif
Don't forget to also modify the way the percetion radius is drawn on screen.
I think that to solve this, we simply need to add a check in the flock method, next to the distance < perceptionRadius checking if the absolute value of the angle between the boid's velocity and the director vector of the line between the boid and the other boid, is inferior the to the viewing angle.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.