Skip to content

yasunerkan/QuadTreeUnityImp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuadTreeUnityImp

Problem: write a quadtree implementation for collision detection (rect & circle)

  • spawn lots of entities in the world with varying sizes. when an entity bump into another, takes 1 damage. each entity has 5 health, when they die, spawn another entity in a random position within the tree.
  • make a UI to give the player the ability to control the number of entities.
  • possibility to activate debug rendering for quadtree. -try to create as small garbage as possible.

optional/bonus:

  • polish the feeling of the simulation. create particles on collisions, tween the spawning of entities, destroying, etc.
  • polish the player UI controls. add feedback to buttons.

Solution:

QuadTreeUML1

QuadTreeUML2

QuadTreeMenu

QuadTreeDemo

Reference:

https://www.integu.net/visitor-pattern/https://refactoring.guru/design-patterns/visitorhttps://medium.com/@ErkanYasun/factory-pattern-with-generics-f73432921f99

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published