Posts about Code snippets
This post is about grabbing conditional compilation values and print them in the output context using a macro function. Then we can use it at runtime.
This is a post about a gameplay-element that affects how game objects can be triggered on a certain “heartbeat”. This relative simple component brings some interesting features.
Sometimes it helps to see things at very slow speed. You can use Flambe’s SpeedAdjuster to debug your game. I wrote a function that gives you control over the speed using [ and ] keys on your keyboard.
If you want a fast random seed, you could use this very simple class.
While playing with JSFL and trying to create a faster interface for my name it right.jsfl I stumbled across a very interesting function inside JSFL. There is a powerful function called fl.getDocumentDOM().xmlPanel which shows dialogs using .xml-files. Actually you could use XUL (XML User Interface Language), which kinda looks like a mix of HTML and Flex. If you need a GUI for your JSFL script, you can open a nice custom dialog using XUL.