Just starting up
Moderator: Coders of Rage
- Don Pwnious
- Chaos Rift Devotee
- Posts: 833
- Joined: Tue Jun 15, 2004 5:32 pm
- Location: on the streets wit my j23
- Contact:
- Don Pwnious
- Chaos Rift Devotee
- Posts: 833
- Joined: Tue Jun 15, 2004 5:32 pm
- Location: on the streets wit my j23
- Contact:
- Falco Girgis
- Elysian Shadows Team
- Posts: 10294
- Joined: Thu May 20, 2004 2:04 pm
- Current Project: Elysian Shadows
- Favorite Gaming Platforms: Dreamcast, SNES, NES
- Programming Language of Choice: C/++
- Location: Studio Vorbis, AL
- Contact:
lol, yes, and no.
That right there, is one of the reasons Dreamcast programming is ideal. It just takes knowledge of C/C++ (mainly C) and good knowledge of the Dreamcast hardware (PVR).
I have two books on SDL I bought. SDL, from what little I've attempted to learn so far, is pretty damn easy (hard as hell though, compared to blitz).
I don't know of any good websites, but I recommend a book called "Focus on SDL" by the same publisher that made your blitz book...
Learn SDL, don't become a DirectX whore...
DirectX would be your other choice, it only runs on windows though, so everybody using macs, and linux/unix isn't going to be able to play. SDL OWNZ DirectX.
Another option, Marauder knows much more is like orthroprojectile OpenGL or something. Since SDL and OpenGL can tie in together and are both platform independent, that would be a good choice.
JUST KEEP IN MIND!
SDL & OpenGL > DirectX & Direct3D
That right there, is one of the reasons Dreamcast programming is ideal. It just takes knowledge of C/C++ (mainly C) and good knowledge of the Dreamcast hardware (PVR).
I have two books on SDL I bought. SDL, from what little I've attempted to learn so far, is pretty damn easy (hard as hell though, compared to blitz).
I don't know of any good websites, but I recommend a book called "Focus on SDL" by the same publisher that made your blitz book...
Learn SDL, don't become a DirectX whore...
DirectX would be your other choice, it only runs on windows though, so everybody using macs, and linux/unix isn't going to be able to play. SDL OWNZ DirectX.
Another option, Marauder knows much more is like orthroprojectile OpenGL or something. Since SDL and OpenGL can tie in together and are both platform independent, that would be a good choice.
JUST KEEP IN MIND!
SDL & OpenGL > DirectX & Direct3D
- Don Pwnious
- Chaos Rift Devotee
- Posts: 833
- Joined: Tue Jun 15, 2004 5:32 pm
- Location: on the streets wit my j23
- Contact:
- Falco Girgis
- Elysian Shadows Team
- Posts: 10294
- Joined: Thu May 20, 2004 2:04 pm
- Current Project: Elysian Shadows
- Favorite Gaming Platforms: Dreamcast, SNES, NES
- Programming Language of Choice: C/++
- Location: Studio Vorbis, AL
- Contact:
- Don Pwnious
- Chaos Rift Devotee
- Posts: 833
- Joined: Tue Jun 15, 2004 5:32 pm
- Location: on the streets wit my j23
- Contact:
- JS Lemming
- Game Developer
- Posts: 2383
- Joined: Fri May 21, 2004 4:09 pm
- Location: C:\CON\CON
How did I miss this conversation... o well.
MAN I hated pointers!!!! I just didn't get it back when I was first learning them. But now I think they're holy, there is just so many possibilities opened with them.I quit actually reading through my C++ book around pointers.
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
- Don Pwnious
- Chaos Rift Devotee
- Posts: 833
- Joined: Tue Jun 15, 2004 5:32 pm
- Location: on the streets wit my j23
- Contact:
My first little, easy C++ program
uhhh i gather all the information of all 4 lessons to make this:
Its not much, but i wanted to try something
Code: Select all
#include <iostream>
#include <string>
using namespace std;
int main()
{
string name;
int ID;
cout << "Enter your name ";
cin >> name;
cout << "Enter your ID number ";
cin >> ID;
cout << "Hello " << name << " or should I say " << ID << endl;
return 0;
}
Its not much, but i wanted to try something
1/8th time- 14secs
1/8th speed - 110mph
1/8th speed - 110mph
- Don Pwnious
- Chaos Rift Devotee
- Posts: 833
- Joined: Tue Jun 15, 2004 5:32 pm
- Location: on the streets wit my j23
- Contact:
- Falco Girgis
- Elysian Shadows Team
- Posts: 10294
- Joined: Thu May 20, 2004 2:04 pm
- Current Project: Elysian Shadows
- Favorite Gaming Platforms: Dreamcast, SNES, NES
- Programming Language of Choice: C/++
- Location: Studio Vorbis, AL
- Contact:
- JS Lemming
- Game Developer
- Posts: 2383
- Joined: Fri May 21, 2004 4:09 pm
- Location: C:\CON\CON
Ah yes the guessing game. First you need to include the "time.h" header, which allows you to access the current computer time in millisecs.
Well, just take a look at this.
That was just a simple example, I'm sure you can manipulate it to fit your needs.
EDIT -
Sorry Super Sonic, I guess I posted at the same Time as you.
Well, just take a look at this.
Code: Select all
//Include this...
#include <time.h>
//Then do something like this...
//Seed the random generator
srand( (unsigned)time( NULL ) );
//Set a var equal to a number between 0 and 100
randominterger = rand() % 100;
EDIT -
Sorry Super Sonic, I guess I posted at the same Time as you.
Last edited by JS Lemming on Fri Sep 03, 2004 9:21 pm, edited 1 time in total.
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
- Falco Girgis
- Elysian Shadows Team
- Posts: 10294
- Joined: Thu May 20, 2004 2:04 pm
- Current Project: Elysian Shadows
- Favorite Gaming Platforms: Dreamcast, SNES, NES
- Programming Language of Choice: C/++
- Location: Studio Vorbis, AL
- Contact:
Allright, JS Lemming took care of that. I'd just like to add to what he said. Particulary this line:JS Lemming wrote:Ah yes the guessing game. First you need to include the "time.h" header, which allows you to access the current computer time in millisecs.
Well, just take a look at this.
That was just a simple example, I'm sure you can manipulate it to fit your needs.Code: Select all
//Include this... #include <time.h> //Then do something like this... //Seed the random generator srand( (unsigned)time( NULL ) ); //Set a var equal to a number between 0 and 100 randominterger = rand() % 100;
Code: Select all
randominterger = rand() % 100;
Code: Select all
randominterger = rand() % 100+100;
- Don Pwnious
- Chaos Rift Devotee
- Posts: 833
- Joined: Tue Jun 15, 2004 5:32 pm
- Location: on the streets wit my j23
- Contact:
- JS Lemming
- Game Developer
- Posts: 2383
- Joined: Fri May 21, 2004 4:09 pm
- Location: C:\CON\CON
It might be a good idea to put parenthesies around that last one.
Just to make life easier on the pilgrimer.
Code: Select all
randominterger = (rand() % 100)+100;
Last edited by JS Lemming on Fri Sep 03, 2004 9:35 pm, edited 1 time in total.
Small girl at the harbor wrote:Look Brandon, that crab's got ham!
- Don Pwnious
- Chaos Rift Devotee
- Posts: 833
- Joined: Tue Jun 15, 2004 5:32 pm
- Location: on the streets wit my j23
- Contact: