Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the Tiled Terrain Tool and Subrectangles / Polygons #125

Open
pmer opened this issue Apr 27, 2017 · 5 comments
Open

Support the Tiled Terrain Tool and Subrectangles / Polygons #125

pmer opened this issue Apr 27, 2017 · 5 comments
Labels
Milestone

Comments

@pmer
Copy link
Member

pmer commented Apr 27, 2017

http://doc.mapeditor.org/manual/using-the-terrain-tool/

The Tiled terrain tool looks useful for game developers as it automates the repetitive process of placing terrain transition files.

wall2

The tool supports transitions between two different terrain types within the same tile layer, which, funnily enough, Driftwood will support pretty well right now. Driftwood supports it well right now because it allows players to move ½ a tile over the bounds of the current tile. (Look at the pictures in the link. Notice how terrain transition tiles change terrain at the half-way point within a tile.) The plans for redoing the engine's entities (#91) might mess with this. This issue is to figure out how to support the terrain tool with the new entity movement schema.

@pmer
Copy link
Member Author

pmer commented Apr 27, 2017

If a transitionary tile contains a wall (as several of the examples in the docs show) then a map author will probably mark the tile as no-walk.

wall

Then pixel-mode entities cannot enter the tile, which will look weird. To fix this, we can allow authors to specify sub-tile rectangles that are no-walk. That will allow pixel-mode entities to walk up to the wall edges.

Tile- and turn-based entities can never enter into Tiled's transitionary tiles if they contain walls.

@pmer pmer changed the title Figure out how to support Tiled Terrain Tool Support Tiled Terrain Tool Apr 27, 2017
@pmer pmer changed the title Support Tiled Terrain Tool Support the Tiled Terrain Tool Apr 27, 2017
@seisatsu seisatsu changed the title Support the Tiled Terrain Tool Support the Tiled Terrain Tool and Subrectangles Apr 29, 2017
@seisatsu seisatsu added this to the Alpha-0.0.8 milestone Apr 29, 2017
@seisatsu seisatsu changed the title Support the Tiled Terrain Tool and Subrectangles Support the Tiled Terrain Tool and Subrectangles / Polygons Apr 29, 2017
@pmer
Copy link
Member Author

pmer commented Apr 30, 2017

Oh yeah, supporting subrectangles & polygons is #110. I should have linked that here. @seisatsu Should we add #110 to 0.0.8?

@seisatsu
Copy link
Member

seisatsu commented Apr 30, 2017

Sure we can add it, but tile entities will treat any amount of nowalk on a tile as the entire tile being nowalk, since they only think in whole tiles when deciding whether or not to move. They do the same thing with other entities. So, I don't think #110 is actually a prerequisite.

@pmer
Copy link
Member Author

pmer commented Apr 30, 2017

Oh man, you're right. I was confused and thought #110 was for pixel entities.

@pmer
Copy link
Member Author

pmer commented Apr 30, 2017

Let's not add it. I'll revert its milestone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants