Me and few others have recently posted some “Dismount Moments” photos to Facebook, as seen here for an example. These images originate from the all-new Stair Dismount, created for iPhone and iPod touch. It is of course a direct successor to the original Stair Dismount released in 2002. The game has been submitted for Apple’s approval to the App Store, so it should be available for purchasing quite soon (just a few weeks). Here’s a short introduction of what the new game is all about…
Read the rest of this entry »
Stair Dismount iPhone/iPod touch
Code: Tokenizer
Here’s a little C++ utility class for splitting C strings into tokens by given separators. It’s inspired by “tokenwad” taken from Sol’s CFL3, which I have used quite a few times. This version has low memory overhead as it performs only 1-2 allocations (depending if the tokenization is done in-place or a separate copy is needed).
Twittering
So, my Twitter account is jlauha. I configured the blog posts to be automatically updated there, so that’s one way to follow my stuff if you’re into that. We’ll see if I start occasionally posting something else as well.
Tool: Binary data to embeddable char array
Sometimes there’s a need to embed some little bit of binary data in the executable. The reasons may vary – perhaps it is for a resource you want to exist even if data files are missing, or it could be even something you want to “hide” from some curious wannabe-hackers.
In the past years my typical use case was as follows. I used to make “64 KB intros” (such as this one), and for those I needed to embed a few data files to the executable as object data, so that I could exploit compression of the executable packer without writing a proper compression tool myself (such as UPX).