Planimeter / game-engine-2d

Planimeter Game Engine 2D - LÖVE-based game engine for Lua
https://github.com/Planimeter/game-engine-2d/wiki
MIT License
736 stars 74 forks source link

Entities without sprites no longer crash #106

Closed GamerGambit closed 1 year ago

GamerGambit commented 3 years ago

This PR allows entities with physics and without a sprite to draw without crashing. It works by assuming game.tileSize when no sprite (and no sprite size) is available. If game.tileSize is not available or valid, then it will crash the same way.