C Board  

Go Back   C Board > General Programming Boards > Game Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 04-22-2007, 09:11 PM   #76
Registered User
 
IdioticCreation's Avatar
 
Join Date: Nov 2006
Location: Lurking about
Posts: 212
Snake clone

Hey, I realized that I should probably go back and make some 2d games, because I sorta just jumped right into 3d fsp stuff.

So, heres a nice little snake game. Arrow keys are to turn. F increases speed and S decreases.

Operating system: XP SP2
Compiler: Code::Blocks
Graphics Library: OGL
Other Libraries: Vector and Time, but I think those are standard.

http://www.opticalmusic.net/Snake.zip

Sorry, the code is probably hard to read, I had some of it commented, but then just decided to strip them all. If I get a chance I'll go back and add them all.

Let me know what you think.
__________________
If you take something apart and put it back together enough times, you will eventually have enough parts left over to build a second one.

Last edited by IdioticCreation; 04-22-2007 at 09:14 PM.
IdioticCreation is offline   Reply With Quote
Old 04-23-2007, 03:11 AM   #77
Its hard... But im here
 
swgh's Avatar
 
Join Date: Apr 2005
Location: England
Posts: 1,466
Good snake clone. I think your code format is good, and you are right, a few comments could help in certain places. But i managed to run it ok using Visual Studio and I liked it a lot. Kepp up the good work
__________________
I'm just trying to be a better person - My Name Is Earl
swgh is offline   Reply With Quote
Old 04-26-2007, 02:42 PM   #78
Registered User
 
Join Date: Apr 2007
Posts: 4
NOTE: if your screen resolution is not 1024 x 768, things might be a bit odd.... I plan to work on this

good game dude,
artoke is offline   Reply With Quote
Old 05-09-2007, 07:35 PM   #79
Registered User
 
Join Date: Dec 2006
Location: Scranton, Pa
Posts: 221
Game worked well and your code is alot neater than my own. Oh, and do I suck at this game!
Oldman47 is offline   Reply With Quote
Old 05-22-2007, 05:11 PM   #80
Registered User
 
Join Date: May 2007
Posts: 21
I finally finished my first game. It isn't perfect, but it runs and I think it is cool.
You can see the instructions after opening the game.
If you can tell me how to get a .zip or .exe file on this forums please tell me!


guessgame.cpp
shadowsora15 is offline   Reply With Quote
Old 05-22-2007, 07:51 PM   #81
Registered User
 
IdioticCreation's Avatar
 
Join Date: Nov 2006
Location: Lurking about
Posts: 212
Looks good and runs good. Your code is well organized, but you didn't indent some places. Like after your "do" statement you didn't indent.

It's easier to read when you use proper indention.
__________________
If you take something apart and put it back together enough times, you will eventually have enough parts left over to build a second one.
IdioticCreation is offline   Reply With Quote
Old 05-27-2007, 06:09 AM   #82
Registered User
 
Join Date: May 2007
Posts: 5
I tried my hand on a simply little dice today and this is the result:

A small game for 1-2 players with the goal to reach a user set score first without getting a 1.

Compiled on Windows XP with DevC++ 4.9.9.2
Attached Files
File Type: cpp OLMain.cpp (16.2 KB, 167 views)

Last edited by Venicia; 05-27-2007 at 12:48 PM. Reason: Reworked the code
Venicia is offline   Reply With Quote
Old 06-04-2007, 08:36 PM   #83
Registered User
 
Tonto's Avatar
 
Join Date: Jun 2005
Location: New York
Posts: 1,465
Work in progress - fly around in a colorful world and ponder about pixel rasterization for awhile http://en.wikipedia.org/wiki/Rasterisation

http://zxcvbn.googlecode.com/svn/trunk/wtltrip/

Graphics library: opengl
Other libraries: wtl
Compiler: visual studio orcas
Attached Images
 
__________________

╔╗╔╦══╦╗╔╦══╦╗
║╚╝║╔╗║╚╝║╔╗║║
║╔╗║╠╣║╔╗║╠╣╠╣
╚╝╚╩╝╚╩╝╚╩╝╚╩╝

codez http://code.google.com/p/zxcvbn/
Tonto is offline   Reply With Quote
Old 07-15-2007, 09:33 AM   #84
Chinese pâté
 
foxman's Avatar
 
Join Date: Jul 2007
Location: Canada
Posts: 406
This is a simple game where you have to deliver pizzas without running out of gas, crashing into other cars or going out of the road.

The original idea of the game is not mine, it was a game i played when i was younger on the macintosh of one of my friend heh.

It's the first game i made. And it's written in C (i know i should have choose an object-oriented language but C is the only thing i know really well).

Operating system: Windows XP (but i guess it would works on older version)
Compiler: MVSC++ 6.0
Graphic library: SDL (if we can call this a graphic library heh)
Other library: SDL_TTF

Here's the link to the game and source code:
http://thepiratebay.org/tor/3742892/...ush_-_Beta.zip

And here's a screenshot
Name:  pizzaRush.gif
Views: 1048
Size:  12.7 KB

By the way, the source code and the game are in french, but you need only really basic knowledge to understand (or you can use google language tool). And i also wrote a readme in english.
And also, the game isn't in a final version, and i bet it won't ever reach this stage, because i lost somehow the interest in the project. It's still very functional, but i could have make the gameplay better, make better drawings and add sounds, etc...

Last edited by foxman; 07-15-2007 at 09:35 AM.
foxman is offline   Reply With Quote
Old 08-07-2007, 02:34 PM   #85
Registered User
 
Join Date: Jun 2007
Location: Usa, Pa
Posts: 39
Quote:
Originally Posted by MAGAHOO View Post
this is my fist attempt to create something.
a text based rpg with little story and anticlimatic finish.
not too sure what the minimum requirements are but here is what i used.

Operating system: windows me
Compiler: Microsoft Visual C++ v6.0 Professional Edition
Graphics Library:
Other Libraries:
Description: Low-Tech

please send all tips, comments, questions, bug reports to MAGAHOO@hotmail.com
There's a lot of errors when compiling.
TylerMoyer is offline   Reply With Quote
Old 08-07-2007, 04:18 PM   #86
Registered User
 
Join Date: Jun 2007
Location: Usa, Pa
Posts: 39
Quote:
Originally Posted by algi View Post
Operating system: Windows Me
Compiler: Dev C++ 4.9
Graphics None
Language: C++

This is a game I made, when I decided to make something different from Tic Tac Toe, so I created a dog simulator which simulates a dog.


Lol, I like this game, it made me laugh.. What dog loves wood.. Lol.. You'd think wood would cut his mouth and his Happiness would go down..


Good simulation, I'll suggest this to my friends so they can get a crack out of it as well.
TylerMoyer is offline   Reply With Quote
Old 10-10-2007, 07:57 AM   #87
Registered User
 
Tonto's Avatar
 
Join Date: Jun 2005
Location: New York
Posts: 1,465
The phenomenon exhibited by my application is called Moire Fringes.

Learned this from my calculus 3 book

College Mathematics Journal - More Fringes and Conic Sections

http://www.jstor.org/view/07468342/di020744/02p0043o/0

You can expect an app demonstrating stuf about them in due time
__________________

╔╗╔╦══╦╗╔╦══╦╗
║╚╝║╔╗║╚╝║╔╗║║
║╔╗║╠╣║╔╗║╠╣╠╣
╚╝╚╩╝╚╩╝╚╩╝╚╩╝

codez http://code.google.com/p/zxcvbn/

Last edited by Tonto; 10-10-2007 at 08:31 AM.
Tonto is offline   Reply With Quote
Old 12-01-2007, 03:46 PM   #88
The larch
 
Join Date: May 2006
Posts: 3,082
Here's a Tetris clone that runs in the console window. Should be fully playable with 5 difficulty levels, but misses sounds and highscores.

Since zip files cannot be uploaded, all the source is in a single cpp file.

Operating system: Windows only
Compiler: MingW
Graphics Library: none
Other Libraries: windows.h
Description: ordinary Tetris
Attached Files
File Type: cpp tetris.cpp (37.8 KB, 187 views)
__________________
I might be wrong.

Quote:
Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
Quoted more than 1000 times (I hope).
anon is offline   Reply With Quote
Old 12-01-2007, 05:38 PM   #89
Registered User
 
Join Date: Nov 2007
Location: Free Country, USA
Posts: 104
OS: Windows XP SP2
Compiler: Dev-C++
No graphics
Libraries: all normal libs
Language: C++

Battle Test v 1.0 - A text-based battle game.

Acctually, it's a test for the battle system for my real games, but may develop into a full-fledged game.
Attached Files
File Type: cpp battletest.cpp (28.7 KB, 161 views)

Last edited by DarkAlex; 12-01-2007 at 05:45 PM.
DarkAlex is offline   Reply With Quote
Old 12-07-2007, 04:13 PM   #90
Enthusiastic Beginner
 
balazsbotond's Avatar
 
Join Date: Mar 2007
Location: Érd, Hungary
Posts: 20
Operating system: 32-bit Windows
Compiler: Dev-C++ & mingw
Graphics Library: none
Other Libraries:
Description: Hangman

I have made a simple hangman game - my first program, not counting exercises in various tutorials. I would very much like to hear your opinion about it - I know there is a lot to be improved. And please no 'classes' stuff, because I haven't yet started to study the object-oriented part of C++.

Note: please rename data.dat.txt to data.dat

Thx
Attached Files
File Type: cpp hangman.cpp (10.3 KB, 166 views)
File Type: txt data.dat.txt (95 Bytes, 139 views)

Last edited by balazsbotond; 12-08-2007 at 10:48 AM. Reason: additional info added
balazsbotond is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resources for professional games EVOEx Game Programming 8 06-17-2009 02:42 PM
need help with HTTP POST Anddos Networking/Device Communication 5 03-22-2009 08:41 AM
Unknown memory leak with linked lists... RaDeuX C Programming 6 12-07-2008 04:09 AM
Auto POST vasanth A Brief History of Cprogramming.com 10 06-07-2003 10:42 AM


All times are GMT -6. The time now is 04:11 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22