February 2016 development updates

Week 7

I wanted to push the improvements I had made on the last Tiled Sunday to the new snapshot branch as soon as possible, but in the short evenings I was busy responding to e-mails and forum posts. By Saturday I finally found some time to write last weeks’ update.

Tiled Sunday

For whatever reason I initially forgot about looking at the JSON format and went straight for a pull request that I had scheduled for Tiled 1.0 (as you can see in the first screencast of that day). Fortunately, it only took one hour to merge and clean up the pull request, which was about adding the Properties view to the Tile Collision Editor.

The next thing I did was indeed to make the JSON format support property types. I also improved the Lua export format, avoiding quoting of numbers and booleans. Soon, the snapshot branch could be synchronized to master.

Then I decided to tackle that you couldn’t reset color values after setting them, which affected the map background color, object layer color and the transparent color for image layers. This required digging into the Qt Property Browser solution and looking how Qt Designer was adding a reset button to all properties. Eventually, I added a reset button to color properties and also made some fixes to color properties in the Qt Property Browser solution when dealing with the “invalid” color.

I still had time for another feature, so I worked on adding erasing functionality to the Terrain Brush, which is important for transparency-based tilesets. This was a tricky addition to work on since it touched somewhat hard to read code and I ran into several smaller issues as well. I ended up finishing it only late in the evening, but it was well worth it!

http://forum.mapeditor.org/uploads/mapeditor/original/1X/6b7cd1e642d5599759f207d52b9bb284a2ac151b.webm

Closed Issues

  • #446 Delete background color property - Implemented
  • #778 Missing Object Properties in Tile Collision Editor mode - Implemented
  • #1062 Image Layer transparent color property cannot be reset once edited - Implemented
  • #1111 Terrain feature doesn’t work well with transparency-based tilesets - Implemented
  • #1207 Fixed compilation on Windows with MinGW and qmake - Merged
  • #1210 Prevent segfault when adding new property to many tiles - Merged

Looking Ahead

At the start of next month, my wife and kids will be away for a few days, and I want to use the additional free time at home to make progress with the editing of external tilesets. It’s the most difficult issue remaining for Tiled 1.0 and this seems like the right time to work on it.

I’ll definitely keep streaming. Even though it’s sometimes a bit of a distraction, I think it keeps me more focused and it’s also nice to have some people around who may be able to help. I’m looking for ways to make it more interesting, so feedback regarding this is welcome! See you soon again at livecoding.tv/bjorn if you’re interested!

As always, many thanks to everybody who is enabling me to continue working on Tiled at this pace, either by paying for it on itch.io, donating or being a patron on Patreon. I really appreciate it!