Just get Tiled, STI is a loader of Tiled maps.
As for generating atlases, 5 million years worth of google search reveals things like https://www.codeandweb.com/texturepacker
Simple Tiled Implementation - STI v1.2.3.0
Re: Simple Tiled Implementation - STI v0.16.0.3
I already have Tiled. I tried to follow the tutorial and it seems there is a problem with drawing my layer with the player It gets created but doesn't get drawn...
link to a rushed .love: https://www.dropbox.com/s/0nkn9a315qcb6 ... .love?dl=0
link to a rushed .love: https://www.dropbox.com/s/0nkn9a315qcb6 ... .love?dl=0
Re: Simple Tiled Implementation - STI v0.16.0.3
I walked through the code with the Zerobrane debugger, it seems that the "sprites" layer doesn't have the draw() function at all. Any ideas why that would happen, I was just following the tutorial.
Re: Simple Tiled Implementation - STI v0.16.0.3
For custom layers, you need to create your own callbacks.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
Re: Simple Tiled Implementation - STI v0.16.0.3
Why isn't this mentioned anywhere in the tutorial? I followed the tutorial exactly, twice, every time with the same result (or lack of one).Karai17 wrote:For custom layers, you need to create your own callbacks.
Re: Simple Tiled Implementation - STI v0.16.0.3
It is totally there, in the code examples.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
Re: Simple Tiled Implementation - STI v0.16.0.3
I copied the code examples, and it's not working. See the .love I attached to an earlier post.
Re: Simple Tiled Implementation - STI v0.16.0.3
So on line 15, you are trying to create the layer in slot 8 but you don't have 7 other slots like my example did, so ipairs wasn't picking it up. Removing the 8 puts it in the right slot, in this case 3. There is another small issue which is the fault of the tutorial: love.graphics.point seems to no longer exist (sliiiiiime!) so switch it to love.graphics.circle fixes that.
Code: Select all
-- Temporarily draw a point at our location so we know
-- that our sprite is offset properly
love.graphics.circle("fill", math.floor(self.player.x), math.floor(self.player.y), 5)
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
- slime
- Solid Snayke
- Posts: 3166
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Simple Tiled Implementation - STI v0.16.0.3
[wiki]love.graphics.points[/wiki]Karai17 wrote:There is another small issue which is the fault of the tutorial: love.graphics.point seems to no longer exist (sliiiiiime!) so switch it to love.graphics.circle fixes that.
Re: Simple Tiled Implementation - STI v0.16.0.3
sliiiiiiiiiiiiime!
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 6 guests