|
Stacker - binary and commented source code |
HardTranceFan
Member #7,317
June 2006
|
This is Fruit Stacker, my PC version of the web game SkullStax and my first attempt at writing a game using Allegro. In the zip file is an executable (Windows) and the source files (C++ code and images). It's commented as best as I could for anyone wanting to learn how the thing hangs together and appears to work. The main things still missing are sound, a high score table and animation. My initial goal was to write a game that worked, something smallish that could be dissected by others to learn from. It'd be nice to get some comments on the game - improvements, what you liked, what sucked... The zip file can be found here {"name":"590153","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/b\/cba03a13779d6a019e66e49111aa1411.jpg","w":526,"h":425,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/b\/cba03a13779d6a019e66e49111aa1411"} Cheers,
{edit - Thanks Kikaru for the HTM Mockup codes...} -- |
Kikaru
Member #7,616
August 2006
|
Click the "HTML Mockup Code is enabled" text to get a list of commands. Very nice! The gameplay is a lot like the game I am currently working on, Drill Garanz. Very nice for a first! |
CGamesPlay
Member #2,559
July 2002
|
-- Ryan Patterson - <http://cgamesplay.com/> |
HardTranceFan
Member #7,317
June 2006
|
I checked the error message out, and it appears CLK_TCK is an obsolete name for CLOCKS_PER_SEC. So, I've replaced all occurrences of CLK_TCK with CLOCKS_PER_SEC, recompiled and put the new binary & source into this link. Cheers, -- |
Pavel Hilser
Member #5,788
April 2005
|
The game is fun to play. The only thing that could make it better is - giving time bonuses and showing the time as a bar. There is too much time at this time, I played it at the first time to the 8th level without problem and then the time dropped. If you do the time as I write, there will be a lot action, fighting each level. Anyway, add some sound and perhaps some graphical effect (particles?) when clicking the fruit. Good work _____________________________________ |
HardTranceFan
Member #7,317
June 2006
|
The game does give a time bonus for multiple fruits clicked (of the same type), and there is a time penalty for clicking only one fruit. These bonuses and penalties increase the higher the level goes (you can also check the source code to see how this is calculated). I agree with the sound comment. I haven't looked into sound, and want to make it the main area of work in the current game I'm working on, where I'll put in a sound track, sound fx and a basic particle system. Cheers, -- |
|