I've been coding on many different things for the game these last days, and while I'm testing different stuff I sometimes forget that things get "messy" and that memory leaks appear because of forgetting to free up allocated memory that no longer is in use. Anyway, to get to bottom of things I had to do some code cleanup, and then found the nasty little buggers that was crawling around the system every frame, allocating more memory.
I took me about an hour to get things sorted out and up and running without leaking memory.
I'm now working on adding "Unit/Entity Sound" for the world builder, so that my sound/musician, Josef Falkensköld, easily can add sounds to enemies/objects and other stuff in the game.
Adding sounds to units/entities will be very easy. First he selects which unit/entity to add sound to, then click the "SoundFX" button to bring up the interface for adding sounds. On the top there will be a row with buttons with sound descriptions on them: "Attack, die, jump, move" etc. He then clicks on one of them and a directory listing will come up where he can browse for the sound he wants to use, click on it, and "wham", that sound is rigged. The sound effect he rigged, will play when that action triggers in the game.
When clicking on one of the sound buttons in the editor, for example attack, the assigned sound for attack will be played. The name of the selected sound will also be displayed on screen.
Tech Demo 2:
It takes time to write your own game editor / engine and get all things working as you want. The engine & editor has come a long way, and I'm now thinking about releasing "Tech Demo 2" in the near future. I'm not going to put up any date of when it will be released, but by following the blog, you can tell when it draws near.
The following will be included in Tech Demo 2:
- 2 Player CO-OP, using the new working networkcode
- Main character graphics
- New main menu look
- Enemy graphics (Crawler, Stomper, Floater, Creep)
- Beautiful parallax scrolling background of the surface area
- 15+ rooms to explore.
- The first boss
- The first "Surface Music" track by Falkensköld
- Sound effects for the main character, enemies and other elements in the tech demo - by Falkensköld
Until next blogpost!