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: 903
Joined: Sun Sep 02, 2012 10:46 pm

Re: Simple Tiled Implementation - STI v0.9.2

Post by Karai17 » Mon Sep 29, 2014 6:31 am

¡¡Double Post!!

0.9.2 finally allows for tile objects to be drawn.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé

User avatar
Rukiri
Citizen
Posts: 68
Joined: Mon Jun 27, 2011 5:52 am

Re: Simple Tiled Implementation - STI v0.9.0

Post by Rukiri » Wed Oct 29, 2014 1:20 am

Karai17 wrote:¡¡Double Post!!

STI v0.9.0 now supports animated tiles! A big thanks to Clean3d for the patch!

STI is at a point where we are very close to being feature-complete. A few more small things and some bug fixing, micro-optimizations, and unit testing and I might just be able to officially release a "stable" version!
Animated tiles were a big deal for me, awesome it's finally added! :awesome:

User avatar
Jeeper
Party member
Posts: 573
Joined: Tue Mar 12, 2013 7:11 pm
Contact:

Re: Simple Tiled Implementation - STI v0.9.2

Post by Jeeper » Wed Oct 29, 2014 2:13 am

Is the limit to draw range of tiles actually working? When I try to use it, it either draws every single tile or none at all.

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

Re: Simple Tiled Implementation - STI v0.9.2

Post by Karai17 » Wed Oct 29, 2014 2:18 am

The draw rangle is not necessarily in pixels, but takes into account the sprite batches within the draw distance. The minimum size of a sprite batch is 20x20 tiles so if your map is smaller than that, then it will draw everything. If you have several sprite batches on screen, it will draw the full batches, even if most of it is off screen. Any batches that are off screen will not be drawn.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé

User avatar
Jeeper
Party member
Posts: 573
Joined: Tue Mar 12, 2013 7:11 pm
Contact:

Re: Simple Tiled Implementation - STI v0.9.2

Post by Jeeper » Wed Oct 29, 2014 11:09 am

Karai17 wrote:The draw rangle is not necessarily in pixels, but takes into account the sprite batches within the draw distance. The minimum size of a sprite batch is 20x20 tiles so if your map is smaller than that, then it will draw everything. If you have several sprite batches on screen, it will draw the full batches, even if most of it is off screen. Any batches that are off screen will not be drawn.
Aha, thank you for clarifying that. I just had a memory of ATL having a similar thing, but it allowed you to draw for an example 3x3 tiles only. Must have mixed it up with STI :)

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

Re: Simple Tiled Implementation - STI v0.9.2

Post by Karai17 » Wed Oct 29, 2014 1:31 pm

I originally had sti doing that but it turned out to be way too slow compared to how it works now.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé

User avatar
Jeeper
Party member
Posts: 573
Joined: Tue Mar 12, 2013 7:11 pm
Contact:

Re: Simple Tiled Implementation - STI v0.9.2

Post by Jeeper » Wed Oct 29, 2014 1:53 pm

Karai17 wrote:I originally had sti doing that but it turned out to be way too slow compared to how it works now.
And there really are few reasons to want to draw anything bigger or smaller than your screen anyway. So yeah, performance > that feature!

ddfreyne
Prole
Posts: 2
Joined: Sat Aug 16, 2014 12:28 pm
Location: Berlin, Germany
Contact:

Re: Simple Tiled Implementation - STI v0.9.2

Post by ddfreyne » Wed Oct 29, 2014 10:21 pm

Karai17: What’s the reason for clearing and re-creating the canvas on every call to draw()? Does it give performance gains over not using a canvas at all?

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

Re: Simple Tiled Implementation - STI v0.9.2

Post by Karai17 » Wed Oct 29, 2014 10:24 pm

The canvas isnt recreated every call, it is just reset to blank. Using a canvas allows for customised drawing and fixes some scaling glitches
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé

pevzi
Prole
Posts: 27
Joined: Tue Apr 02, 2013 4:09 pm
Contact:

Re: Simple Tiled Implementation - STI v0.9.2

Post by pevzi » Fri Oct 31, 2014 4:04 pm

First of all, thank you for a great library, definitely going to use it in a game of mine. But I'm still unsure about several things related to its usage. Sorry if these are too silly or already answered but I've read the entire thread and these things are still unclear for me.

1. Is it possible to access object's/tile's properties within a collision callback? Like, how do I determine if a player bumped into a door and not a wall?
2. How do I replace a tile or maybe change its state, for example, to make a door opened/closed?
3. This is probably more related to Tiled itself than STI but anyway. Is it possible to make "tall" tiles that overlap the player, nearby objects and the tiles in the upper row (like houses or pillars in JRPG games)?
4. And another thing. I couldn't manage to find the description of Layer and Map properties in the documentation. It would be much easier to get started with the library if the docs said what is inside these objects.

Also yay, it's my first post here, hello everyone.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 9 guests