codi-hacks / space-race

Love2D-based Spaceship Racing Game
Other
3 stars 0 forks source link

Convert entity tables to factories #17

Closed jaythomas closed 2 years ago

jaythomas commented 2 years ago

Closes #16

TLDR Turns out I already took Custom Properties into consideration when I initially created the tmx parser. The custom props simply needed to be consumed during the entity spawning process. Converting the entity tables to factory functions achieves this. Try adding a planet to your map and setting a radius on it.