I'm very new to game development (just started 3 months ago) and I'm learning through creating a game engine. It's located here. In terms of collision, I know only brute-force detection, in which case, the game slows down if there are a number of objects. So my question is How should I program the collisions?
I want them to happen automatically for every object and call the object's
collision(GObject other) method on each collision.
Are there any new algorithms which can make this fast? If so, can anybody shed some light on this topic?