Entries tagged [object-oriented]
Snake ! 0.2-alpha-0.1
by Jerome Kehrli
Posted on Tuesday Feb 23, 2010 at 11:40PM in OpenGL
Snake is a little C++/OpenGL project which shows a snake eating apples on a two dimensional board. It really is very much like the famous Nokia phone game except the snake finds its way on its own.
No nice textures, no sweet drawings yet. The world elements are mostly simple spheres. Trivial OpenGL features such as fog, lightning and shadows are implemented though.
Oh, and the snake it quite stupid at the moment. I wrote the path finding algorithm in an hour or so and I really need to come up with something smarter.
Tags: c c++ object-oriented opengl snake