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.
Printable View
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.
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
Quote:
Originally Posted by Josh Kasten
cool game, but after i exit the game ALL my icons disappared :confused: (all the IE icons, start menu icons and any other icon u can think of)
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.Quote:
Originally Posted by elad
Errors I'm getting:
That should be enough for the moment, if you need the whole error log, I'll edit the post.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)
Unfinished, but very much playable. Will be editing a lot, so if you download the game, check back regularly for updates.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
You don't have OpenGL, according to this error:Quote:
I'm running Dev-C++ 4.9.9.2 and it's not compiling for me.
As for this . . .Quote:
gl/glut.h: No such file or directory.
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.Quote:
after i exit the game ALL my icons disappared
[edit]
You either needQuote:
`cout' undeclared (first use this function)
orCode:#include <iostream.h>
That tetris game looks like the one I wrote myself . . . nice.Code:#include <iostream>
using namespace std;
[/edit]
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:
Some details about AoTRN: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
------------
For now AoTRN will be only for Linux, but I'll port it ASAP.
- Programmed in C++
- Big
- Manly
- Free
Tell me what you think of the story etc, I'd love to know!
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.
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!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.
LinkCode:Operating system: XP SP2
Compiler: Visual C++ .NET
Graphics Library: none
Other Libraries: <windows.h>, <stdio.h>, <conio.h>
Description: Tetris (move with arrows)
CORRECT LINK
Quote:
Originally Posted by Marcos
My TicTacToe Game
My first ever game with some sort of intelligence (although it's not really AI).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.
Sorry for the terrible UI, but that wasn't what I was focusing on.
Download: http://www.om3ga.co.uk/TicTacToe.zip
-Ben
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"
Link: http://savefile.com/files/1808341Code: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
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...Code:Operating System: WinXP
Compiler (IDE in this case): Dev-C++
Graphics Libraries: None
Other Libraries: iostream, fstream, string
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: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.