Brief talk about how I'm using TileD
One of the nice thing about TileD is it's versatility through simplicity. It doesn't try and tell you how to build your levels or designs, it doesn't give you a premade system to use and then try and work around to get the job done. It just gives you the tools you need, and then lets you do the rest. I decided to take a purely object oriented approach to creating my objects in TileD and how they hook into the Lua scripts for the game.
Basically, every object in the game inherits from a basic game object base class that I built in Lua. The sub classes then change what's needed for control (AI or player input), display (usually a sprite animation, but not always), and update (check messages from other objects and player input, act accordingly by changing the state for this object's FSM). This hook into TileD in a very simple fashion- every object in TileD has a type parameter. This Type is actually the object type. So when the map is loaded, this type is then instantiated dynamically from this field.
This can also allow further customization- each object has a series of custom properties, so when the map is loaded and this object is created, it will then pass the custom properties to the object's constructor. There will of course be base object properties that are pretty much the same across the board (and you can specify, or leave these as default), but for each subclass there could be an infinite number of other custom properties, allowing for unique abilities and powers that I can simply add into the code.
I found this process to be really quick and nimble when designing items and enemies and player code. Since every object acts pretty much in the same way, with small changes here and there, it gives me a lot of power. If I need to create a slime with, let's say, a different AI and pattern of movement and a slightly (bluer) image, I can just inherit the slime object, and change only the draw and AI functions. The draw would be super simple, just tinting it a different color in code. Or scaling it larger, whatever.
And then in TileD I just set the type to this new slime class, and there you go. It's quick, it's simple, and I can do pretty much anything with little overhead and planning.
Get Emberglass
Emberglass
A nonlinear action adventure platformer, inspired by Ico, The Legend of Zelda, Castlevania, and Shadow of the Colossus
Status | Released |
Author | Riddle Fox Games |
Genre | Platformer |
Tags | 2D, Action-Adventure, Exploration, Fantasy, Metroidvania, Open World, Pixel Art, Retro, Sandbox |
Languages | English |
More posts
- New bug fixes in the next few monthsSep 01, 2023
- Bug fixes for Windows coming soonFeb 17, 2022
- Updates coming up in a few weeks...Feb 21, 2021
- Steam is an absolute nightmare to useFeb 10, 2021
- A post mortem for EmberglassFeb 08, 2021
- Trailer is uploaded!Jan 14, 2021
- And the game is LIVE for purchase. 4.99$ for a week, than back up to 5.99$Jan 13, 2021
- Redid main pageJan 13, 2021
- IT IS DONE.Jan 10, 2021
- Price points...Jan 08, 2021
Leave a comment
Log in with itch.io to leave a comment.