Lights and shadows experiment
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...
View ArticleJSFL dialog
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...
View ArticleSimple javascript template system
If you want to use strings as simple templates in javascript, you might want to use my template script. You can do stuff like this: var template = "Hello my name is {person.name}, I’m {person.age}...
View ArticleRandom seed – actionscript
If you want a fast random seed, you could use this very simple class. This blogpost is mostly a useful copy-paste location for myself. I got this solution from http://www.calypso88.com, but the blog...
View ArticleFlambe code snippet: Control overall speed
Flambe has a nice specialized component called SpeedAdjuster. It adjusts the update speed of an entity (and its components and children), and can be used for slow – motion and fast forward effects....
View ArticleFlambe snippet: game heartbeat
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. I created a code...
View ArticleGrabbing 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. Let’s say you want to display in runtime if your...
View ArticleWait a minute with setTimeout
While working on a game, I created a function spawner. The idea was to make a function which would call a function like createEnemy() a hundred times with an interval. So I quickly created a static...
View Article