i just threw this together in the last few hours, so its probably overkill/messy. let me know what you think.
and you can use it if you want for anything, although i know there are a few things in the code i don't exactly like, but it works (thus far).
it takes an image, and converts it to a table to be drawn, but all seamlessly. you just provide the textures, and the indexing colors, and the map image. and it draws it for you, and only draws what is visible and not the whole map. it also has blocky map movement (if thats what you call it), use the arrow keys, one block at a time. it can probably be converted to smooth movement, but im to lazy right now lol
have a look at the code if you need help, its documented. but if it doesn't answer your question, feel free to ask
btw only the arrow keys do anything. aaanndd its dependent on the conf.lua file, but its not much.
comments/suggestions/anything? thanks.
Drawing Maps With Images
Drawing Maps With Images
- Attachments
-
- Map Loader.love
- for Love 0.8.0
- (5.56 KiB) Downloaded 270 times
saved by a scholarship..
redesigned my "avatar"
redesigned my "avatar"
Re: Drawing Maps With Images
It looks good but it should move continously if you keep the key down
Re: Drawing Maps With Images
all that is going to be on the programmers end, whoever user the code would be able to set that up. i will change it to be a smooth scroll instead of block by blockÖbey wrote:It looks good but it should move continously if you keep the key down
saved by a scholarship..
redesigned my "avatar"
redesigned my "avatar"
Who is online
Users browsing this forum: No registered users and 96 guests