Wednesday, July 30, 2014

Tuesday, July 15, 2014

Lines of code...

With my current PC (from 2005) it takes 3 minutes and 30 seconds to rebuild everything:
- 190 files
- 26852 lines of code

That would be 3500 lines more than two months ago, and this doesn't include all the GUI layouts written in XML. Coding editors is really time consuming...

Friday, July 11, 2014

In-game event listeners and actions

Adding some event-action magic to my engine and map editor.

This is how it looks in the editor. I am not sure if all this makes sense and how it's usually done. In this setup when players bullet hits the orange button the attached event listener starts one action which activates a particle emitter, and an action that activates motors of attached Box2D revolute joints. The yellow lines are clickable, so the connections can be deleted.

And this is in game:

Of course this is just the beginning. I need to add a lot more different event listeners and actions that can modify different types of entities in the map.