added basic spell class.
spells should override damagebox trigger functions to be triggered. Added helperfunctions to the entity to set damagebox/attackbox delegates.
fixed helperfunctions to use forEach. Added Fireball.as
Made interface methods public. Added movement to fireball.
fixed override.
fireball using direction as animation name.
fireball shooting works. Fireball gets removed after explosion. Collision with wall works, collision with walls misses a damagebox. Light gets automatically removed after explosion if one is present (feature of light).
Note to myself: I really need to abstract moving in strait lines xD this is getting tedious, its always the same.
fireball light does not blink at a specific position before appearing at the position of the fireball (or anything else).
skull now does dmg (still has some commented out code in it), changed player light to not get smaller than 0.4 of the original.
sorting the clips is done in every frame. this is a bit slower than before i think, but at least everything is in one place.
clearer sorting.
Merge branch 'feature/fireball' of github.com:r00f/prophet-code into feature/fireball
remove warning duplicate variable.
enabled collision detection on damagebox. Fixed forEach arguemtn on Entity. Fixed spell not adding eventlistener.
fixed fireball hitting only 1 enemy per cast.
Merge branch 'feature/fireball' into develop