well, i got bored one night last week so i decided to write a low quality nibbles hack. I dont plan on doing anything more with the project so feel free to hack on the source if you want (just give credit to "Perspective from the cboard" or something like that in your src/readme).
Known Crappyness:
- Parts of Nibbles.cpp should be refactored into a Board class
- Colours should be associated with GraphicObject's, not hard-coded
- Game-play code is border line non-existant, this game runs and follows the general nibbles ideology, but it isnt fun.
- Theres no commenting (hey, one evening of bordom coding, what do you expect?)
- the graphics are about as basic as the possibly can get.
- no pause functionality
- key commands should be queued in a game like this, if they are entered faster than an update can execute, only the last one has any effect.
- I used an STL vector to hold the items :eek: This should be a list structure like the snake itself.
How to Do Stuff:
-press Q to quit, R to restart, and arrow keys to steer your snake.
-on linux boxes, extract source and type make to build.
-on windows, create a project with whatever it is you use, add #include <windows.h> to any file that includes GLUT and you should be set. (though i havent tried this on windows)
bon apetite! :p