Game Development Community

T2D 90 Degree tile rotation extension

by Greg Lincoln · 04/14/2005 (2:53 pm) · 0 comments

Download Code File

Installation is easy:

The zip file contains two folders, rot90engine and rot90editor. Place the .cc and .h file from rot90engine into your SDK/engine/t2d folder and recompile.

Then, copy the two files from rot90editor to SDK\example\tileeditor\client or wherever you have the tile editor installed.

To rotate a tile 90 degrees, simply ctrl left click it to open the tile editor dialog and check the rotate 90 degrees check box. 90 degree rotation is saved in a brush just like any other tile settings, so brush away.

VERY IMPORTANT
Installing these changes will create a slightly different map file format that will not work with the stock t2d release. It should load maps created from the stock release fine but if you save it will upgrade them to the new format. Please backup your maps first! I'll feel terrible if you lose work due to a bug!

Bonus
As an added bonus if you act now, you get a few tweaks that I made to the tile editor absolutely free! :)
- Background support to allow you to show a scaled chunked sprite behind your map as you edit.
(this is only partially complete. You have to edit the $bg to point to the chunked imagemap of your choice manually. If you ignore this, it won't break anything though)
- Toggle-able guide grid and bg layer

I hope you find this useful!

About the author

Recent Blogs

• T2D Text Display Class