I'm a uber newbie in gaming development, Lua and Love in general, so I may be missing something.
I'm developing a simple game where players must climb walls of a tower from within. On the walls I make some spears spawn randomly as obstacles.
What I have in mind it's an infinite scrolling type of game: I do a query search for colliders way up my position, and when I have a 0 hit I make walls and spears spawn vertically, so players will never run out of wall to climb.
Thing is, when I climbed at about -23458 on Y-axis, my game always crash, returning me this error:
Code: Select all
Error
libraries/windfield/windfield/init.lua:745: Box2D assertion failed: m_I > 0.0f
Traceback
[love "callbacks.lua"]:228: in function 'handler'
[C]: in function 'newFixture'
libraries/windfield/windfield/init.lua:745: in function 'newPolygonCollider'
I don't know C++ but I can see it's an assert fail, asserting that mass of a given Collider must be negative.
What I find baffling it's that it's always at the same spot.
So I'm wondering, and that's my question for you: did I hit some coordinate bound? So that it won't create anymore collider beyond some threshold?
Debugging last known spawn point for walls and spears I got
Code: Select all
WALL X L 50
WALL Y L -24420
WALL X R 550
WALL Y R -24420
SPEARS X R 550
SPEARS Y R -23527
SPEARS X L 200
SPEARS Y L -23733