First, I apologise if this has been asked before, but I'm struggling to find decent tutorials on Lua out there, and I'm not fond of the way the 'official' one is written...even Google has failed me
![Surprised :o](./images/smilies/ms-surprise.png)
Thanks
![Smile :)](./images/smilies/ms-smile.png)
http://love2d.org/wiki/index.php?title= ... ling_Juicenunix wrote:Is the fine tile-based scrolling 0.6.0-compliant or does it need any tweaks?
Just basic changes: adding a "love." prefix to callbacks and replacing constants with strings. Wiki article updated.nunix wrote:Is the fine tile-based scrolling 0.6.0-compliant or does it need any tweaks?
Code: Select all
--the map
map={
{0, 0, 0},
{0, 2, 0},
{0, 0, 0},
{0, 0, 0},
{0, 0, 0},
{0, 1, 0},
{0, 0, 0},
}
Code: Select all
tile_w = 400
tile_h = 400
Code: Select all
for i=0,2 do
Users browsing this forum: No registered users and 2 guests