"A FPS Game" Online Game
Moderator: PC Supremacists
- M_D_K
- Chaos Rift Demigod
- Posts: 1087
- Joined: Tue Oct 28, 2008 10:33 am
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C/++
- Location: UK
Re: "A FPS Game" Online Game
<= is less than or equal...duh
x_delta, etc is just the difference. you kinda need to know it.
Also your update position code must be fucked if setting velocity to 0 doesn't work. I'll look at it later.
x_delta, etc is just the difference. you kinda need to know it.
Also your update position code must be fucked if setting velocity to 0 doesn't work. I'll look at it later.
Gyro Sheen wrote:you pour their inventory onto my life
IRC wrote: <sparda> The routine had a stack overflow, sorry.
<sparda> Apparently the stack was full of shit.
- MarauderIIC
- Respected Programmer
- Posts: 3406
- Joined: Sat Jul 10, 2004 3:05 pm
- Location: Maryland, USA
Re: "A FPS Game" Online Game
"delta" is the greek letter for change. So "delta x" is change in x, "delta r" is change in radius, so on and so forth.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
Re: "A FPS Game" Online Game
lol why'd you ask what <= was lol
Hyde from That 70's Show wrote:Woman are like muffins... Once you have a muffin you will do anything to have another muffin... And they know that.
- LeonBlade
- Chaos Rift Demigod
- Posts: 1314
- Joined: Thu Jan 22, 2009 12:22 am
- Current Project: Trying to make my first engine in C++ using OGL
- Favorite Gaming Platforms: PS3
- Programming Language of Choice: C++
- Location: Blossvale, NY
Re: "A FPS Game" Online Game
I didn't see an if statement or anything...
How do you return an operator?
How do you return an operator?
There's no place like ~/
- M_D_K
- Chaos Rift Demigod
- Posts: 1087
- Joined: Tue Oct 28, 2008 10:33 am
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C/++
- Location: UK
Re: "A FPS Game" Online Game
Your not. r_delta<=(radiusA + radiusB) is the same as:
your returning a boolean.
Code: Select all
bool ret = (bool)(r_delta<=(radiusA + radiusB));
return ret;
Gyro Sheen wrote:you pour their inventory onto my life
IRC wrote: <sparda> The routine had a stack overflow, sorry.
<sparda> Apparently the stack was full of shit.
- Ginto8
- ES Beta Backer
- Posts: 1064
- Joined: Tue Jan 06, 2009 4:12 pm
- Programming Language of Choice: C/C++, Java
Re: "A FPS Game" Online Game
All the comparison operators return a boolean value.LeonBlade wrote:I didn't see an if statement or anything...
How do you return an operator?
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
- LeonBlade
- Chaos Rift Demigod
- Posts: 1314
- Joined: Thu Jan 22, 2009 12:22 am
- Current Project: Trying to make my first engine in C++ using OGL
- Favorite Gaming Platforms: PS3
- Programming Language of Choice: C++
- Location: Blossvale, NY
Re: "A FPS Game" Online Game
Oh... I didn't know that LOL
Thanks guys
I'll be getting my computer soon
Thanks guys
I'll be getting my computer soon
There's no place like ~/
- MarauderIIC
- Respected Programmer
- Posts: 3406
- Joined: Sat Jul 10, 2004 3:05 pm
- Location: Maryland, USA
Re: "A FPS Game" Online Game
Operators are essentially functions that are called in a certain way (so that they're easier to read and make sense). Overload an operator sometime.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
- LeonBlade
- Chaos Rift Demigod
- Posts: 1314
- Joined: Thu Jan 22, 2009 12:22 am
- Current Project: Trying to make my first engine in C++ using OGL
- Favorite Gaming Platforms: PS3
- Programming Language of Choice: C++
- Location: Blossvale, NY
Re: "A FPS Game" Online Game
LOL @ My quote in your sig (I've seen it for a while)
I'm supposed to get my computer on Saturday
I'm supposed to get my computer on Saturday
There's no place like ~/
Re: "A FPS Game" Online Game
Haha you made a Marauder quote. Thats bad.
Which computer are you typing from?
Which computer are you typing from?
Hyde from That 70's Show wrote:Woman are like muffins... Once you have a muffin you will do anything to have another muffin... And they know that.
- M_D_K
- Chaos Rift Demigod
- Posts: 1087
- Joined: Tue Oct 28, 2008 10:33 am
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C/++
- Location: UK
Re: "A FPS Game" Online Game
Hes using his PS3
Gyro Sheen wrote:you pour their inventory onto my life
IRC wrote: <sparda> The routine had a stack overflow, sorry.
<sparda> Apparently the stack was full of shit.
- LeonBlade
- Chaos Rift Demigod
- Posts: 1314
- Joined: Thu Jan 22, 2009 12:22 am
- Current Project: Trying to make my first engine in C++ using OGL
- Favorite Gaming Platforms: PS3
- Programming Language of Choice: C++
- Location: Blossvale, NY
Re: "A FPS Game" Online Game
Alright... this is starting to get annoying...
The collision isn't working, and it seems that nobody has any tutorials on collision for 3D, only for 2D...
I tried what M_D_K said (after a lot of debuging lol) and it still doesn't work...
The collision isn't working, and it seems that nobody has any tutorials on collision for 3D, only for 2D...
I tried what M_D_K said (after a lot of debuging lol) and it still doesn't work...
There's no place like ~/