Tiled Drawer
Posted: Wed May 18, 2011 3:16 pm
Based on work from Ninwa http://love2d.org/forums/viewtopic.php?f=5&t=2097
I present you the super modified version
Features:
My very own inefficient .tmx parser
Camera
Buckets(Damn you feature I hate you!)
Spritebatches
Support for multiple tilesets
Arbitrary layer drawing(so you can you can draw over your sprites)
Your very own 512x512 map so you can claw your eyes when yous see the framerate(press m to change to map 2)
And lots of obsolete files and comments as well as test functions so you can see how messy I code
The engine is still WIP and is generally intended for those who like to tinker with things
Also since its intended for a game don't expect it to be any less quirky then it is
http://dl.dropbox.com/u/1027218/gamesource.love
Warning: Do not export from Tiled maps with other encoding other then CVS,that includes the default xml encoding which is shit
Update: Added y collision offset as well as change the image directory so you can load .tmx files in tiled
Updated!: Retarded performance edition
Update: Fixed image initializing, added some smart garbage collection, cron.lua FTW!
I present you the super modified version
Features:
My very own inefficient .tmx parser
Camera
Buckets(Damn you feature I hate you!)
Spritebatches
Support for multiple tilesets
Arbitrary layer drawing(so you can you can draw over your sprites)
Your very own 512x512 map so you can claw your eyes when yous see the framerate(press m to change to map 2)
And lots of obsolete files and comments as well as test functions so you can see how messy I code
The engine is still WIP and is generally intended for those who like to tinker with things
Also since its intended for a game don't expect it to be any less quirky then it is
http://dl.dropbox.com/u/1027218/gamesource.love
Warning: Do not export from Tiled maps with other encoding other then CVS,that includes the default xml encoding which is shit
Update: Added y collision offset as well as change the image directory so you can load .tmx files in tiled
Updated!: Retarded performance edition
Update: Fixed image initializing, added some smart garbage collection, cron.lua FTW!