Simple Tiled Implementation - STI v1.2.3.0

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

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by Karai17 »

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 »

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: 73
Joined: Thu May 25, 2017 1:43 pm

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by KyleFlores1014 »

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 222 times
(I also tried the tutorial on lua.space but cant figure out to add collisions on the layer.player.)
KyleFlores1014
Citizen
Posts: 73
Joined: Thu May 25, 2017 1:43 pm

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by KyleFlores1014 »

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
Marty
Citizen
Posts: 89
Joined: Mon Dec 04, 2017 1:47 am
Location: Germany

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by Marty »

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 TemplateRichLÖVE Mobile (AdMob+UnityAds+PlayGamesServices+GameCenter)Add me on Discord

───▄▀▀▀▄▄▄▄▄▄▄▀▀▀▄───
───█▒▒░░░░░░░░░▒▒█───
────█░░░░░░░░░█────
▄▄──█░░░▀█▀░░░█──▄▄
█░░█▀▄░░░░░░░▄▀█░░█
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by Karai17 »

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
Marty
Citizen
Posts: 89
Joined: Mon Dec 04, 2017 1:47 am
Location: Germany

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by Marty »

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 TemplateRichLÖVE Mobile (AdMob+UnityAds+PlayGamesServices+GameCenter)Add me on Discord

───▄▀▀▀▄▄▄▄▄▄▄▀▀▀▄───
───█▒▒░░░░░░░░░▒▒█───
────█░░░░░░░░░█────
▄▄──█░░░▀█▀░░░█──▄▄
█░░█▀▄░░░░░░░▄▀█░░█
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by Karai17 »

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
Marty
Citizen
Posts: 89
Joined: Mon Dec 04, 2017 1:47 am
Location: Germany

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by Marty »

Karai17 wrote: Tue Jan 02, 2018 4:21 pmI 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 TemplateRichLÖVE Mobile (AdMob+UnityAds+PlayGamesServices+GameCenter)Add me on Discord

───▄▀▀▀▄▄▄▄▄▄▄▀▀▀▄───
───█▒▒░░░░░░░░░▒▒█───
────█░░░░░░░░░█────
▄▄──█░░░▀█▀░░░█──▄▄
█░░█▀▄░░░░░░░▄▀█░░█
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: Simple Tiled Implementation - STI v0.18.2.1

Post by Karai17 »

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: No registered users and 43 guests