About Adok

I used to be the main editor of the Hugi diskmag (http://www.hugi.scene.org/) that used to be somewhat popular in the PC demoscene many years ago. Now I am a graduate student of computer science, about to finish studies soon. No matter whether I'll pursue an academic career afterwards or just work as a programmer in industry, with both paths I will fulfill some of my childhood dreams.


Ludum Dare 25
Ludum Dare 24

Adok's Trophies

Adok's Archive

My game is finished!

Posted by
Saturday, December 15th, 2012 10:34 am

Since I do not have so much time this weekend, as I am going to finish my Master’s thesis soon and have to implement some changes on the related code till the next meeting with my advisor, I decided to create a rather simple game. It is based on some of the comic characters I used to draw as a child: Ino, the flying dinosaur, and Rakete, the intelligent missile that relentlessly chases poor Ino. While in my comics Ino typically¬†manages to escape by means of quickness and virtue, this time it’s supposed to be the other way round, since You Are The Villain ™.

Title screen of "Ino und Rakete"

Title screen

I used the source code of my entry to Ludum Dare 24, Evolution, as base code for this game; this also includes the Game Over screen and some sound effects. Hope that’s okay (it wouldn’t have been too much work to create new ones for this game, but as I said, I am busy). The idea to the game occurred to me some minutes before 9:00 am (Central European Time). Two hours before I had got up from bed in order not to lose too much time, and found out what the theme of this compo was going to be. As my entry to Ludum Dare 24 was partially a shooter game as well (the other part was a platform game), I could reuse a lot of the code e.g. for the control of the user-controlled character. I spent the majority of the time on the behaviour of the “good” character until I found an algorithm that makes it evade the arrows most of the time, while still allowing the player to win. Then I had to fight with some nasty bugs related to the text-output routines, which I had taken from the NeHe website; they caused the game to crash. You can imagine how reliefed I was when I found out that the crashes were not caused by my own code. Since I currently do not have the time to search the ‘net for other text-output routines and test them, I decided to drop test output and just display a “hurry!” message when the player is running out of time. At about 6:00 pm, I was finished.

Here you can download the game:

Enjoy playing! May it provide you as much fun as I had developing it!

Post ortum

Posted by
Friday, August 31st, 2012 8:22 am

I don’t like the term “post mortem”. It means “after death”, but actually I perceive it more as birth than death when you finish a new game. So I write “post ortum”, for ortus being the Latin word for birth.

I went to the Internet on Saturday around 10 am and saw the theme “evolution”. First I thought I would not participate in this compo, because I had hoped for another theme (preferably “creation and destruction”), and I could not easily come up with an idea fitting the theme evolution. But then it occurred to me that a game in which you would play different types of animals, starting as a rather old life form and gradually becoming something newer from a biological point of view, would fit the theme. Since however there is a time limit of 48 hours, I abandoned the idea of covering many life forms, and instead opted to have only two stages of evolution.

I fired up MS Paint to draw some sprites and started with a dinosaur, then a fish, a kraken, a seastar, a jellyfish, a crab, and was quite pleased with my results since I am well aware that I am not a talented painter, but the images looked better than I had expected. So I copied the files onto my netbook, started MS Visual Studio 2005 and copied the base code which I had posted to the Ludum Dare blog earlier into a new directory. Using this base code I spent about 8 hours, interrupted by lunch, coding the fish stage. I do not remember having had any major difficulties, basically everything went smooth. I had some ideas on the behaviour of the individual characters and was pretty pleased when I tested the result. I decided that this would be stage 1 of the game, and you would pass it by surviving 5 minutes. First I made the player start with 3 lives, but I found out that the game is rather hard and so I increased the number of lives to 5. As a matter of fact, I have still not managed to survive 5 minutes myself. Sometimes I almost managed it, but in the last minute I was killed.

On the second day I implemented the dinosaur stage. I started with coding the random level generator, then I implemented the movements of the dinosaur (I remember having had minor problems with the jumping behaviour), then I fired up MS Paint and created sprites for the two types of enemies that appear in this stage, some kind of worm and a lion. I implemented the algorithm whether and what enemy appears, the enemy behaviour, and then I found out that in some cases it was inevitable to lose a life because of the placement of the enemy. So I changed that by adding the rule that an enemy must appear only if the platform he is located at is either above the previous one, or if several previous platforms have had the same altitude. Now this stage of the game is perfectly fair, you can complete it with zero life loss if you are a good and careful player. Work on this stage took me about 4 hours. This makes 12 hours of work on the game altogether.

In the feedback I received mostly collision detection was criticized: the rectangles around the enemies are sometimes pretty large compared to the area the sprite seems to occupy. OK, the next time I make such a game, I’ll improve on that. Apart from that the feedback was mostly positive and I am very happy about that.

My game is finished

Posted by
Sunday, August 26th, 2012 7:05 am

I’ve added sound effects to my game and now consider it finished. Enjoy playing!


The second part is finished!

Posted by
Sunday, August 26th, 2012 5:45 am

The second part of my game is finished. Now you can play the full game, starting as a fish swimming in the ocean and then evolving to a dinosaur jumping and running around on the ground. All I might add is sound effects, but apart from that the game is complete. Have fun!

Download link:

Preview of my game!

Posted by
Saturday, August 25th, 2012 8:35 am

I have finished one of two parts of the game, namely the part in which you play the fish. To be implemented tomorrow is the part in which you play the dinosaur on the ground.

Download the demo here: http://www.hugi.scene.org/adok/miscellaneous/evolution.zip

Okay, I’m in!

Posted by
Saturday, August 25th, 2012 3:07 am

I will try to make a simpler version of my idea, with fewer stages of evolution. Perhaps only two: fish and dinosaur. When you are a fish, the game will be a kind of shooter, and as a dinosaur it will be a platform game. I have drawn some sprites, of a fish and a couple of enemies, and I am quite happy with the results although I do not consider myself a talented painter. The results seem good enough to be used in a 48 hour game.

Here are some of the sprites I painted:

For the code I will use Visual C++ 2005, and OpenGL for displaying the graphics.

An idea

Posted by
Saturday, August 25th, 2012 2:17 am

I was hoping for another theme, and when I read that the theme of this compo would be evolution, I first had no idea what a game based on this theme could be like. But after some time, I came up with the following idea:

A platform game in which you start in a lake as a fish, where you have an item that transforms you into an amphibian which can both swim and walk on land. On land, you have to find an item that will transform you into some sort of animal that cannot swim, but jump higher than an amphibian. By means of your jumping skills you can enter the area where another item is hidden, which will transform you into a bird. Now you can fly and find the exit from the current level. In the next level, you will start as a fish again.

I think this is too ambitious to be implemented in two days, and my graphic skills are too weak, so I will not pursue this project now, but maybe I have given inspiration to somebody else. I think it would be quite a cool game if properly executed.

As promised: Here’s my basecode!

Posted by
Thursday, August 23rd, 2012 2:30 am

This is the basecode I use in most of my games. It is C++ for Windows using OpenGL for the graphics. Most of the code originally comes from NeHe and was adapted by me for my own purposes. The TextObject class is based on code from Charles Petzold’s book on Windows programming and has been bugfixed and extended by me. As you can see in WinMain.cpp, you will need a class Game with methods Initialize, Deinitialize, Update and Draw in which you will store your main game code if you want to use this basecode for your own projects.

Download it here!

I might be in…

Posted by
Wednesday, August 22nd, 2012 7:37 am

That would be my first Ludum Dare. I will post my basecode shortly. Basically it is code from NeHe for window handling and some routines related to graphics.

[cache: storing page]