C Board  

Go Back   C Board > General Programming Boards > Game Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 08-12-2005, 01:31 AM   #46
Banned
 
Join Date: Jun 2005
Posts: 594
he jsut kidding he means post your games, if your going to share
the source so we can all bask in the source light, and learn
from the experience.
ILoveVectors is offline   Reply With Quote
Old 08-26-2005, 02:47 AM   #47
Registered User
 
Join Date: May 2005
Posts: 2
A very simple tetris like game with source code!

Version : 0.1 Beta
Programming Language : C
Library used : SDL (www.libsdl.org)
License : BSD-Style

Check it at :

http://www.giannirossi.org/index.php?mod=none_Tetramini
giannirossi is offline   Reply With Quote
Old 08-28-2005, 01:07 PM   #48
Registered User
 
Join Date: Aug 2005
Posts: 38
Quote:
Originally Posted by Josh Kasten
This is a 3d verison of the old game fall down. I've only worked on it for 2 days now but its playable and its features are:
Realist pyhics
Textured ball and obstacles
Tells time it took to get to the end

Code:
Operating system: WinME
Compiler: MSVC++ 6
Graphics Library: OpenGL
Other Libraries: None
Description: Fall to the end as fast as you can

cool game, but after i exit the game ALL my icons disappared (all the IE icons, start menu icons and any other icon u can think of)
seal is offline   Reply With Quote
Old 08-30-2005, 12:45 AM   #49
Registered User
 
Join Date: Aug 2005
Posts: 91
Quote:
Originally Posted by elad
OS: W98
Language: C++
Compiler: Dev-C++ 4.9
Graphics: OpenGL 1.1
Other: None
Description: This creates a Rubiks cube you can manipulate with the keyboard and implements a solution to Rubiks cube from any random starting point and allows you to view an animated solution or view the solution move by move.
I'm running Dev-C++ 4.9.9.2 and it's not compiling for me. It's giving me tons of errors (two of which I fixed by changing <stdlib.h> to <cstdlib>, and <fstream.h> to <fstream>. The first error below's "line", and all "file"s, have been shortened a bit.

Errors I'm getting:
Code:
In the format of...
Line | File | Message

My Documents\Cprograms\C | (same as line) | gl/glut.h: No such file or directory.
(none) | My Documents\Cprograms\RCubeSol.cpp | In member function `void Cube:updateFaces(Twist)':
239 | (same as above) | `right' undeclared (first use this function)
241 | (same) | `left' undeclared (first use this function)
(none) | (same ) | In function `void DrawGLScene()':
925 | (same) | `glutSwapBuffers' undeclared (first use this function)
(none) | (same) | In function `void KeyboardEvent(unsigned char, int, int)':
1023 | (same) | `glutGetModifiers' undeclared (first use this function)
1024 | (same) | `GLUT_ACTIVE_ALT' undeclared (first use this function)
(none) | (same) | In function `void SpecialEvent(int, int, int)':
1212 | (same) | `GLUT_KEY_F1' undeclared (first use this function)
1215 | (same) | `glutFullScreen' undeclared (first use this function)
1218 | (same) | `glutPositionWindow' undeclared (first use this function)
1219 | (same) | `glutReshapeWindow' undeclared (first use this function)
(none) | (same) | In function `void solve()':
1269 | (same) | `cout' undeclared (first use this function) ((Ok, this one's scary. Cout, undeclared? Uhoh.))
1372 | (same) | `right' undeclared (first use this function)
(none) | (same) | In function `void displayGreeting()':
2019 | (same) | `cout' undeclared (first use this function)
2032 | (same) | `cin' undeclared (first use this function)

((Same errors for the next 2 functions))
(none) | (same) | In function `void displayInstructions()':
(none) | (same) | In function `void displayMenu()':

(none) | (same) | In function `void displayCube(int, char**)':
2119 | (same) | `glutInit' undeclared (first use this function)
2120 | (same) | `GLUT_DOUBLE' undeclared (first use this function)
2120 | (same) | `GLUT_RGB' undeclared (first use this function)
2120 | (same) | `GLUT_DEPTH' undeclared (first use this function)
2120 | (same) | `glutInitDisplayMode' undeclared' (first use this function)
That should be enough for the moment, if you need the whole error log, I'll edit the post.
linkofazeroth is offline   Reply With Quote
Old 08-30-2005, 12:22 PM   #50
Registered User
 
Join Date: Aug 2005
Posts: 91
Code:
Operating system: XP (but should work on anything)
Compiler: Dev-C++ 4.9.9.2
Graphics Library:
Other Libraries:
Description: Text-based rpg with a few minor bugs and a single bit of Story mode
Unfinished, but very much playable. Will be editing a lot, so if you download the game, check back regularly for updates.
Attached Files
File Type: cpp linksquest.cpp (36.3 KB, 301 views)
linkofazeroth is offline   Reply With Quote
Old 08-30-2005, 12:45 PM   #51
Frequently Quite Prolix
 
dwks's Avatar
 
Join Date: Apr 2005
Location: Canada
Posts: 7,629
Quote:
I'm running Dev-C++ 4.9.9.2 and it's not compiling for me.
You don't have OpenGL, according to this error:
Quote:
gl/glut.h: No such file or directory.
As for this . . .
Quote:
after i exit the game ALL my icons disappared
That sometimes happens to me, too, with a different program. Open a DOS prompt, and press ALT-ENTER twice (to enter and exit full screen), or thrice if it starts in full screen. That usually fixes it.

[edit]
Quote:
`cout' undeclared (first use this function)
You either need
Code:
#include <iostream.h>
or
Code:
#include <iostream>
using namespace std;
That tetris game looks like the one I wrote myself . . . nice.
[/edit]
__________________
dwk

Seek and ye shall find. quaere et invenies.

"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell


Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net

My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, etc.

New project: nort

Last edited by dwks; 08-30-2005 at 12:53 PM.
dwks is offline   Reply With Quote
Old 09-02-2005, 11:44 AM   #52
Supermassive black hole
 
ahluka's Avatar
 
Join Date: Jul 2005
Location: South Wales, UK
Posts: 1,709
AoTRN - The Readme File

This is going to be huge. It'll take me a fortnight or so to be able to post anything material, but here's the readme file (so far) for your pleasure:

Quote:
Adventures of The Rusty Nail
Designed & Programmed by Lee Thomas
-----------------------------------

It's free, it's corny, it's a pointless adventure to nowhere, it's
for Linux users only, it AoTRN.


The Story
---------

I admit the game isn't pretty. It's all bash, but MuD gamers will
probably not think twice about the looks, and focus on the game.

You start AoTRN in your local boozer, with the rest of your gang.
You guessed, The Rusty Nail is the pub, and you're a maniac of a
biker gang member whose sole occupation for the last 4 years has
been to protect TRN and woo Sally the barmaid.

The goals of AoTRN, you ask? Simple. Protect TRN and get into bed
with Sally the barmaid. This task will be long and tedious, but
by reading all below, it'll be made a lot easier for you.

Throughout the game you will of course have to leave TRN and
explore the city around you. The city is dangerous; drunks and
gang members are out to get you, and the cops may just take a break
from their donuts and tight pants to aid in this.

You will be able to arm yourself with all manner of weaponry, from
glass shards wrapped in selotape and snowballs with stones in them,
to glocks and heavy machineguns.


The Guilty Parties
------------------

<YOU> The player. Ruthless biker gang member making a b-line for
Sally the barmaid. You are central to the gameplay; don't
ever loose yourself.

<THE BOSS> Your boss. Mean, old, leather-bound and left-wing,
your boss (known only as 'The Boss') will have
you galavanting all over this god-forsaken hell-hole
of a city.

<THE GIRLY> Sally the barmaid. Your secondary objective in AoTRN.
Busty, blonde and young. Get in there my son!


The Controls
------------
Some details about AoTRN:

  • Programmed in C++
  • Big
  • Manly
  • Free
For now AoTRN will be only for Linux, but I'll port it ASAP.
Tell me what you think of the story etc, I'd love to know!
__________________
Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

- Mike McShaffry
ahluka is offline   Reply With Quote
Old 09-03-2005, 03:57 AM   #53
Supermassive black hole
 
ahluka's Avatar
 
Join Date: Jul 2005
Location: South Wales, UK
Posts: 1,709
Not sure if I can post this here, sure I'll find out

I'm going to be .tar.gz'ing nightly snapshots of the AoTRN development directory and make them available here:

http://leesblog.thejefffiles.com/AoT...RN.X.XX.tar.gz

Where X.XX is the version number.

Here's a link to the folder:

http://leesblog.thejefffiles.com/AoTRN/

I'm hoping this will be good learning material, and maybe some of you could help me fix any bugs I encounter.

Of course anyone who helps will be credited (Salem and prog-bman are already in there for their help recently ).

So expect the first snapshot tonight, around 21:00 GMT +1.
__________________
Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

- Mike McShaffry

Last edited by ahluka; 09-03-2005 at 07:00 AM.
ahluka is offline   Reply With Quote
Old 09-09-2005, 05:55 PM   #54
Registered User
 
Join Date: Aug 2005
Posts: 91
Code:
Operating system: XP (but should work on anything)
Compiler: Dev-C++ 4.9.9.2
Graphics Library:
Other Libraries:
Description: Text-based rpg with no known bugs, but is unfinished. Playable.
Sorry, but for some reason I can't edit my last post to update the game. Here's the updated version nonetheless. A bit boring, and the story mode isn't complete (not to mention the monster database and the level-up function), but it's playable. Lemme know if you see any bugs!
Attached Files
File Type: cpp linksquest.cpp (39.2 KB, 266 views)
__________________
It's Link, not linkofazeroth. The latter's just my username. The former's my online identity. Thank you.
linkofazeroth is offline   Reply With Quote
Old 09-25-2005, 11:33 AM   #55
Registered User
 
Join Date: Jan 2003
Posts: 118
Code:
Operating system: XP SP2
Compiler: Visual C++ .NET
Graphics Library: none
Other Libraries: <windows.h>, <stdio.h>, <conio.h>
Description: Tetris (move with arrows)
Link
__________________
Why drink and drive when you can smoke and fly?
Marcos is offline   Reply With Quote
Old 10-15-2005, 08:16 PM   #56
Registered User
 
Join Date: Jan 2003
Posts: 118
CORRECT LINK

Quote:
Originally Posted by Marcos
Code:
Operating system: XP SP2
Compiler: Visual C++ .NET
Graphics Library: none
Other Libraries: <windows.h>, <stdio.h>, <conio.h>
Description: Tetris (move with arrows)
Link
__________________
Why drink and drive when you can smoke and fly?
Marcos is offline   Reply With Quote
Old 11-20-2005, 01:38 PM   #57
Registered User
 
Join Date: Oct 2005
Posts: 18
My TicTacToe Game
Code:
Operating system: Compiled on XP SP2. Works on Win95 and up
Compiler: Dev-C++ 5 beta
Graphics Library: none
Other Libraries: <windows.h>, <iostream>
Description: TicTacToe, against a pretty good computer, only one way to beat it that I have found.
My first ever game with some sort of intelligence (although it's not really AI).

Sorry for the terrible UI, but that wasn't what I was focusing on.

Download: http://www.om3ga.co.uk/TicTacToe.zip

-Ben
__________________
Check out my blog!
http://www.om3ga.co.uk
om3ga is offline   Reply With Quote
Old 11-25-2005, 06:17 PM   #58
The Reel Thing
 
Join Date: Jun 2005
Posts: 44
My Final Project

This is basically an endless hi-tech corridor, with obstruction billboards blocking the way. It's time based, and you can control how fast the camera moves through the world. Use the mouse to manouver, and press W or the up arrow to go "light-speed"

Code:
OS: XP, haven't tried it on 9x, but it should work
Compiler: MingW with Code::Blocks 1.0rc2
Graphics Libraries: OpenGL with Irrlicht 3D engine
Other Libraries: Audiere (sound), iostream
Link: http://savefile.com/files/1808341
__________________
Bagpipes – putting the fun back in funeral.

Last edited by Highland Laddie; 11-25-2005 at 06:35 PM.
Highland Laddie is offline   Reply With Quote
Old 12-12-2005, 01:33 AM   #59
Registered User
 
Join Date: Aug 2005
Posts: 91
Code:
Operating System: WinXP
Compiler (IDE in this case): Dev-C++
Graphics Libraries: None
Other Libraries: iostream, fstream, string
Again, I can't edit my old post... This one isn't much of an update except for some changes in how the code runs, and I've been trying to switch the save/load system from text files to binary files, without too much success...
Attached Files
File Type: cpp linksquest.cpp (37.1 KB, 272 views)
__________________
It's Link, not linkofazeroth. The latter's just my username. The former's my online identity. Thank you.
linkofazeroth is offline   Reply With Quote
Old 01-08-2006, 03:50 AM   #60
60% Braindead
 
Join Date: Dec 2005
Posts: 379
Code:
Operating System: Windows XP.
Compiler: Borland C++ Free Command Line Compiler.
Graphic Libraries: None
Other Libraries: windows.h, iostream, time.h, stdlib.h, conio.h.
Heres my crappy little game, you're a * avoiding the evil green @ signs. Its turnedbased, with a crappy random-based AI. Very compact code, just thought it was worth posting:
Attached Files
File Type: cpp ThatOneGame.cpp (6.3 KB, 324 views)
__________________
Code:
Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)
Blackroot 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 05:30 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