Rants And Ramblings About Mobile Technology

Anders Borg writing about the fun and crazy world of mobile and Internet service technologies.
You can also read the blog via Twitter or your phone via wap.abiro.com. See the left menu for more news.
Comments on blog entries are moderated, but I'm rather liberal as long as it's not blatant advertising.
For general comments, advertising and contribution queries, please use the feedback form.
Wednesday, July 19, 2006
On Zelda and memory management
Richard Meurling has done what most would have considered impossible: Ported the original Zelda game to Java ME for use on mobile phones.He mentions how he was able to juggle all the sprites and other resources without running out of memory on memory-starved phones: All resources in the game are managed by class which keeps track of what is loaded and what is safe to release. If, for example, a monster needs a sprite which is currently not in memory, the class loads it and feeds it to the monster class. If it gets an out-of-memory exception doing so, it tries to release all unused sprites and load the monster sprite again, if that fails that monster is skipped.
This is actually also efficient for phones with lots of memory.
I admired the graphics. They look really nice. Also, the levels are planned exactly the same way as in the original game.
IGN: Zelda Mobile?
You can download it for free here: Zelda 1 remake for java-phones
It's still in development.

