Grabbing conditional compilation values using macro functions
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 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.
— Code snippets, Games, Haxe
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.
If you want to use strings as simple templates in javascript, you might want to use my template script. Read more to find out.
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.
Recently I found an interesting question on FlashFocus.nl, about creating light and shadows in a 2D environment. I started experimenting with this to see how far I could take it. I love to share the results and some insides about this fun project.