Close

studio ponnuki is a small creative studio hidden in the beautiful mountains of the kootenays

gef_round
geoffroy

Designer / Hacker / Maker

Loves green tea, meditation and noise

melina_round
melina

Photo / Fashion / Accounting

In house yoga teacher and Thais massage, run http://yinyogi.com

naome_round
naima

Drawing / Dirt Pudding / Maker

Loves green tea, meditation and noise

Articles

Find Us

We are based in one of the most beautiful places on earth. Come visit us!

February 2, 2010

BLOOD – my first processing game (kind of)

processingSo continuing my quest to learn processing. It’s a beautiful language really simple and well structured. I think it’s a really great way to learn programming at large.

This is my first ‘game’, or an interactive program that has a goal, a score and where difficulty increase the higher the score get. Now bare with me, this is not object oriented, I don’t use any fancy codes and now that I am learning about object oriented and class and array this code doesn’t really make sense at this point.

But it’s a great learning. If you are learning processing it’s a nice example of what can be done quickly without much knowledge.

BLOOD – the goal of the game is to mouse over the first drop of blood. There is so many drops that it would be impossible so the first drop get brighter and brighter the more drops fall. It’s a really simple randomization of translucide ellipse, and every frame an if check if your mouse is over that random first drop. In order to make it easier, the mouse position check is larger (+/- 10px). Every time the mouse position align with the first drop the screen clear, the drop starts small again and the speed increase. If the size of the drop gets bigger than the screen then you ran out of blood = you are game over !

Click here to play the game!