OpenGL simple demos

I’ve done some demos using OpenGL and the awesome toolkit GLUT.

rgbGL

A simple program, where the user can change RGB values in the bars and the background will change to the corresponding RGB value.

balls

In this game we change the balls inside the transparent box in order to make 3 in a row of the same color. This simple game have some cool features, like, the selection box rotates, the balls have specular reflections of  a rotating light in scene and the balls inside the selection box will shrink and expand in a animation loop.

If you want to mess with this programs get the source at: https://github.com/shaggy-spiral/sample-code

 

A 2D hero is born

At some stage of my life I wanted to create the Portuguese video-game hero (because we have none to date). I pictured this stereotypical middle-aged guy, grumpy, with a beard or mustache, sports team shirt, etc. Enjoy.

char0000

This though guy gets a remake afterwards…

char_stand Some scenery added…

 

 

And he starts running. 🙂