Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.
Moderator: Coders of Rage
avansc
Respected Programmer
Posts: 1708 Joined: Sun Nov 02, 2008 6:29 pm
Post
by avansc » Fri Dec 05, 2008 9:25 pm
PixelP wrote: Code: Select all
//physic.h
#pragma once
class PhysicClass {
public:
bool collision(PlayerClass* pla, ObjectClass* obj);
};
bool collision(PlayerClass* pla, ObjectClass* obj) {
if(pla->w > obj->x && pla->h > obj->y && pla->x < obj->w && pla->y < obj->h) {
return true;
}
return false;
}
looks good so far, let me just make sure that collision code works.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
PixelP
Chaos Rift Regular
Posts: 153 Joined: Tue Oct 07, 2008 12:23 pm
Programming Language of Choice: c/c++
Location: sweden
Contact:
Post
by PixelP » Fri Dec 05, 2008 9:27 pm
Are you going to make a test level or something?
avansc
Respected Programmer
Posts: 1708 Joined: Sun Nov 02, 2008 6:29 pm
Post
by avansc » Fri Dec 05, 2008 9:30 pm
PixelP wrote: Are you going to make a test level or something?
i have been working along side you, basically just mirroring everthing you are designing. so at the end of tonight. we will have something that looks like a game
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
PixelP
Chaos Rift Regular
Posts: 153 Joined: Tue Oct 07, 2008 12:23 pm
Programming Language of Choice: c/c++
Location: sweden
Contact:
Post
by PixelP » Fri Dec 05, 2008 9:32 pm
Oh, okey... what's your time right now?
avansc
Respected Programmer
Posts: 1708 Joined: Sun Nov 02, 2008 6:29 pm
Post
by avansc » Fri Dec 05, 2008 9:39 pm
PixelP wrote: Oh, okey... what's your time right now?
10:39PM, you?
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
PixelP
Chaos Rift Regular
Posts: 153 Joined: Tue Oct 07, 2008 12:23 pm
Programming Language of Choice: c/c++
Location: sweden
Contact:
Post
by PixelP » Fri Dec 05, 2008 9:45 pm
4:44 am.
avansc
Respected Programmer
Posts: 1708 Joined: Sun Nov 02, 2008 6:29 pm
Post
by avansc » Fri Dec 05, 2008 9:46 pm
PixelP wrote: 4:44 am.
ouch. london? or UK
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
avansc
Respected Programmer
Posts: 1708 Joined: Sun Nov 02, 2008 6:29 pm
Post
by avansc » Fri Dec 05, 2008 9:46 pm
we can allways finish this tomorrow.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
PixelP
Chaos Rift Regular
Posts: 153 Joined: Tue Oct 07, 2008 12:23 pm
Programming Language of Choice: c/c++
Location: sweden
Contact:
Post
by PixelP » Fri Dec 05, 2008 9:48 pm
avansc wrote:
ouch. london? or UK
Oh no, man, I'm from Sweden.
we can allways finish this tomorrow.
I'm not that tired... and I can work a lot tomorrow coz I've broke my foot.
avansc
Respected Programmer
Posts: 1708 Joined: Sun Nov 02, 2008 6:29 pm
Post
by avansc » Fri Dec 05, 2008 9:57 pm
PixelP wrote: avansc wrote:
ouch. london? or UK
Oh no, man, I'm from Sweden.
we can allways finish this tomorrow.
I'm not that tired... and I can work a lot tomorrow coz I've broke my foot.
good. well i can send you my source.
i have a workign version that you can modify. but you can fly around an physics work
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
PixelP
Chaos Rift Regular
Posts: 153 Joined: Tue Oct 07, 2008 12:23 pm
Programming Language of Choice: c/c++
Location: sweden
Contact:
Post
by PixelP » Fri Dec 05, 2008 10:04 pm
Great!
avansc
Respected Programmer
Posts: 1708 Joined: Sun Nov 02, 2008 6:29 pm
Post
by avansc » Fri Dec 05, 2008 10:05 pm
whats your email?
send it in a PM if you dont want everyone to know it.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
PixelP
Chaos Rift Regular
Posts: 153 Joined: Tue Oct 07, 2008 12:23 pm
Programming Language of Choice: c/c++
Location: sweden
Contact:
Post
by PixelP » Fri Dec 05, 2008 10:07 pm
Send it as a PM or to
pixelpenis@gmail.com , Or just post it here... it's your choise.
Last edited by
PixelP on Fri Dec 05, 2008 10:17 pm, edited 1 time in total.
avansc
Respected Programmer
Posts: 1708 Joined: Sun Nov 02, 2008 6:29 pm
Post
by avansc » Fri Dec 05, 2008 10:08 pm
PixelP wrote: Send it as a PM or to pixelpenis<at>gmail.com, Or just post it here... it's your choise.
okay, it mail it and post it here for the others to see incase they are interested. just give me like 10 min.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
PixelP
Chaos Rift Regular
Posts: 153 Joined: Tue Oct 07, 2008 12:23 pm
Programming Language of Choice: c/c++
Location: sweden
Contact:
Post
by PixelP » Fri Dec 05, 2008 10:09 pm
OK.