Search found 89 matches

by Bullet Pulse
Sat Jun 12, 2010 10:49 pm
Forum: Programming Discussion
Topic: Pythagoras theorem for colission detection between squares
Replies: 7
Views: 1007

Re: Pythagoras theorem for colission detection between squares

I think you would be better off using a normal square collision algorithm, or if you need pixel perfect, then use that.
If you're using trig, then there is usually a simpler way to do it. ;)

Search around the forum for the topics on collision and you'll find more help.
by Bullet Pulse
Fri May 28, 2010 4:17 pm
Forum: Game Development
Topic: IRC?
Replies: 4
Views: 760

IRC?

So let's forget what I posted here earlier ;)
-What is our IRC group name?
by Bullet Pulse
Thu May 27, 2010 5:42 pm
Forum: Programming Discussion
Topic: What to use instead of glaux
Replies: 0
Views: 1904

What to use instead of glaux

I'm trying to get lesson 7 on the Nehe tutorial website to work without glaux, but I can't figure out how to do it. Specifically the code having to do with AUX_RGBImageRect objects. I'm sure someone else has figured this out before. So how do you do it? EDIT: I actually just figured it out. Here is ...
by Bullet Pulse
Thu May 27, 2010 10:45 am
Forum: Programming Discussion
Topic: Can you copy Project Settings to different projects? (VC++)
Replies: 2
Views: 438

Re: Can you copy Project Settings to different projects? (VC++)

I'm trying to copy the project settings from one project in a solution to the rest of the projects in that solution. Is there a way to do that? im sure, but if all else fails just make a template. How do you do that? EDIT: If you highlight multiple projects and then go to properties and change sett...
by Bullet Pulse
Thu May 27, 2010 10:17 am
Forum: Programming Discussion
Topic: Can you copy Project Settings to different projects? (VC++)
Replies: 2
Views: 438

Can you copy Project Settings to different projects? (VC++)

I'm trying to copy the project settings from one project in a solution to the rest of the projects in that solution.
Is there a way to do that?
by Bullet Pulse
Thu May 27, 2010 8:14 am
Forum: Programming Discussion
Topic: What does f mean?
Replies: 20
Views: 2449

What does f mean?

I just started learning OpenGL and I want to know what f means in the example below.

Code: Select all

glVertex3f(1.0f, 0.0f, 0.0f);
by Bullet Pulse
Wed May 26, 2010 3:00 pm
Forum: Game Development
Topic: My version of Pickin Sticks
Replies: 15
Views: 2415

Re: My version of Pickin Sticks

Moosader wrote:I added the game to the Pickin' Sticks directory, and also uploaded the game download to my host as well > http://pickinsticks.moosader.com/.
Do you have a website I can link to?
Oh cool :D.
Nope I don't have a personal website, you can link it to this profile if you want.
by Bullet Pulse
Mon May 24, 2010 6:57 pm
Forum: Programming Discussion
Topic: Array of pointers [SOLVED]
Replies: 4
Views: 548

Re: Array of pointers

Don't you mean i should start at 0? What your doing wrong is simple. You have your array as 10 elements, but your putting new ints at [1] instead of [0]. So the for loop works perfectly, but when you try to access [0] it throws an error. Use this instead. for (int i = 0; i < 10; i++) *facepalm*. I ...
by Bullet Pulse
Mon May 24, 2010 6:21 pm
Forum: Programming Discussion
Topic: Array of pointers [SOLVED]
Replies: 4
Views: 548

Array of pointers [SOLVED]

This seems like a pretty basic thing to me, but I can't figure it out for the life of me :roll: int* testArray[10]; for (int i = 1; i <= 10; i++) { testArray[i] = new int(); *testArray[i] = i; //Why does this work if the below doesn't? } *testArray[0] = 5; //Produces an error cout << *testArray[0]; ...
by Bullet Pulse
Sun May 23, 2010 1:11 pm
Forum: Game Development
Topic: My map editor and game.
Replies: 6
Views: 1092

Re: My map editor and game.

eatcomics wrote:Dude that's sweet, keep us updated :D I was expecting like a turn based battle system lol but that was pretty cool :D
Thanks, lol it's a possibility; I've always liked real-time combat so that's just how I made it.
by Bullet Pulse
Sun May 23, 2010 12:31 pm
Forum: Game Development
Topic: My map editor and game.
Replies: 6
Views: 1092

Re: My map editor and game.

Update 5-23-2010 Changelog: -Enemy system added -Combat system added -Bullets added -Inventory capacity raised -Item dropping fixed [youtube]<object width="1280" height="745"><param name="movie" value="http://www.youtube.com/v/wNcbN0f4NLk&hl=en_US&fs=1&...
by Bullet Pulse
Sun May 23, 2010 12:25 pm
Forum: Game Development
Topic: My breakout clone
Replies: 4
Views: 950

Re: My breakout clone

That is really awesome. The physics are great and the particles are cool too True, true.. also you gotta love those power-ups/downs. Are there any power-ups? or only that one power-down :P. Anyway there seems to be a small glitch with the physics. The ball got stuck on the left side of the screen a...
by Bullet Pulse
Sat May 22, 2010 5:27 pm
Forum: Programming Discussion
Topic: Arrays instead of vectors
Replies: 12
Views: 1072

Re: Arrays instead of vectors

XianForce wrote:That looks fine, but here are a few suggestions:
Ooops, actually I meant to do:

Code: Select all

battleships[emptyIndex] = new Battleship();
Just a safety thing in case FindEmptyIndex() returns something different.
I know that's what you meant ;)
by Bullet Pulse
Sat May 22, 2010 5:13 pm
Forum: Programming Discussion
Topic: Platformer Collision
Replies: 11
Views: 882

Re: Platformer Collision

Please post the updated code if you can find it 8-)
by Bullet Pulse
Sat May 22, 2010 5:11 pm
Forum: Programming Discussion
Topic: Arrays instead of vectors
Replies: 12
Views: 1072

Re: Arrays instead of vectors

XianForce wrote:That looks fine, but here are a few suggestions:
...
So I think that should probably work.
Thanks! :)

EDIT: Shouldn't it be:

Code: Select all

if (emptyIndex >= 0)
{
      battleships[FindEmptyIndex()] = new Battleship;
}