I was learning game development by making a game engine at https://code.google.com/p/game-engine-for-java/
I want to make a perfect Map class which checks the collisions and updates all the entities. The main problem is that tilemaps wont fit for every game and I want to implement a most robust and perfect and faster implementation.
The current class is listed at https://code.google.com/p/game-engine-for-java/source/browse/src/com/gej/map/Map.java.
I’m currently using Quadtrees for the collision which still seems slow.
Here’s the quadtree class. https://code.google.com/p/game-engine-for-java/source/browse/src/com/gej/collision/QuadTree.java
What else could I do? I intend it to make it work automatically and every object is collidable.