Simple Tiled Implementation - STI v0.18.2.1

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Karai17
Party member
Posts: 852
Joined: Sun Sep 02, 2012 10:46 pm

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by Karai17 » Thu Sep 07, 2017 7:31 pm

Awesome, glad you figured it out. :)
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé

marimbab
Prole
Posts: 1
Joined: Mon Nov 13, 2017 9:14 am

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by marimbab » Mon Nov 13, 2017 9:16 am

is it just me/workingasintended or is Map.tiles populated only to the width/height of the TILESET and not the map dimensions in Map:setTiles()?

KyleFlores1014
Citizen
Posts: 72
Joined: Thu May 25, 2017 1:43 pm

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by KyleFlores1014 » Tue Dec 26, 2017 8:29 am

When I translate the map the collision boxes doesnt move it still works like normal but with the map moving.
Game.love
(178.65 KiB) Downloaded 41 times
(I also tried the tutorial on lua.space but cant figure out to add collisions on the layer.player.)

KyleFlores1014
Citizen
Posts: 72
Joined: Thu May 25, 2017 1:43 pm

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by KyleFlores1014 » Tue Dec 26, 2017 1:03 pm

KyleFlores1014 wrote:
Tue Dec 26, 2017 8:29 am
When I translate the map the collision boxes doesnt move it still works like normal but with the map moving.Game.love

(I also tried the tutorial on lua.space but cant figure out to add collisions on the layer.player.)
Also please do not copy our images/assets

User avatar
modiX
Citizen
Posts: 73
Joined: Mon Dec 04, 2017 1:47 am

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by modiX » Tue Jan 02, 2018 10:12 am

Hi Karai thanks for the great lib.

Check this:
Image

These are placed objects, and some have those first pixel line in any color. It's always the same on the same objects, but it seems to include the location, too, since the other tree stump is fine.

Strange, you got an idea?
───▄▀▀▀▄▄▄▄▄▄▄▀▀▀▄───
───█▒▒░░░░░░░░░▒▒█───
────█░░░░░░░░░█────
▄▄──█░░░▀█▀░░░█──▄▄
█░░█▀▄░░░░░░░▄▀█░░█

Visual Studio Code Template

User avatar
Karai17
Party member
Posts: 852
Joined: Sun Sep 02, 2012 10:46 pm

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by Karai17 » Tue Jan 02, 2018 10:26 am

It looks like you are scaling the the game a bit, is that correct? If so, how are you scaling it?
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé

User avatar
modiX
Citizen
Posts: 73
Joined: Mon Dec 04, 2017 1:47 am

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by modiX » Tue Jan 02, 2018 4:09 pm

Karai17 wrote:
Tue Jan 02, 2018 10:26 am
It looks like you are scaling the the game a bit, is that correct? If so, how are you scaling it?
Yes I am. I think it happened because of uneven scaling that occurred through gamera, but I cannot reproduce anymore, since I kept working on it and now it doesn't happen.
───▄▀▀▀▄▄▄▄▄▄▄▀▀▀▄───
───█▒▒░░░░░░░░░▒▒█───
────█░░░░░░░░░█────
▄▄──█░░░▀█▀░░░█──▄▄
█░░█▀▄░░░░░░░▄▀█░░█

Visual Studio Code Template

User avatar
Karai17
Party member
Posts: 852
Joined: Sun Sep 02, 2012 10:46 pm

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by Karai17 » Tue Jan 02, 2018 4:21 pm

cool :)

I would personally recommend against using gamera with STI and instead use map:draw(tx, ty, sx, sy), but if you got it working then feel free to disregard. :D
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé

User avatar
modiX
Citizen
Posts: 73
Joined: Mon Dec 04, 2017 1:47 am

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by modiX » Wed Jan 03, 2018 9:36 pm

Karai17 wrote:
Tue Jan 02, 2018 4:21 pm
I would personally recommend against using gamera with STI and instead use map:draw(tx, ty, sx, sy)
May I ask: Why?

I found a sample game that works very well in that constellation and I got it to work, too, although I'm not at camera movement at this point. Btw, scaling is required for me in any case.
───▄▀▀▀▄▄▄▄▄▄▄▀▀▀▄───
───█▒▒░░░░░░░░░▒▒█───
────█░░░░░░░░░█────
▄▄──█░░░▀█▀░░░█──▄▄
█░░█▀▄░░░░░░░▄▀█░░█

Visual Studio Code Template

User avatar
Karai17
Party member
Posts: 852
Joined: Sun Sep 02, 2012 10:46 pm

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by Karai17 » Wed Jan 03, 2018 9:53 pm

The way sti needs to manage graphics state is not necessarily compatible with using external libs, at least I cannot guarantee that they will work. If it works for you, have at it, but if there is an issue then perhaps look into using map:draw()'s args instead of a camera helper lib
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests