Search found 65 matches

by cndr
Sat Dec 18, 2010 7:22 pm
Forum: Programming Discussion
Topic: Seperating Axis Theorem troubles
Replies: 2
Views: 994

Re: Seperating Axis Theorem troubles

thanks for the help, will take a look at it.
by cndr
Fri Dec 17, 2010 10:04 pm
Forum: Programming Discussion
Topic: Seperating Axis Theorem troubles
Replies: 2
Views: 994

Seperating Axis Theorem troubles

I've been following an article at http://www.gamedev.net/reference/programming/features/2dRotatedRectCollision/page2.asp . I've read through the article a bunch of times and wrote out what I understood in code, I'm not sure if I'm misinterpreting something, but my code always returns a collision. an...
by cndr
Mon Nov 01, 2010 9:06 pm
Forum: Programming Discussion
Topic: need some help with a makefile
Replies: 1
Views: 670

need some help with a makefile

I just started learning how to make makefiles, and am wondering how to move the .o files to their own folder to make everything neater. Below is my working makefile, any ideas? CC=gcc CFLAGS=-I -lSDL -lSDL_image -lSDL_mixer -lGLU -Wall DEPS = piece.h engine.h include.h OBJ = main.o piece.o engine.o ...
by cndr
Mon Sep 13, 2010 6:37 pm
Forum: Programming Discussion
Topic: Ray - Plane Intersection Detection
Replies: 2
Views: 823

Re: Ray - Plane Intersection Detection

Great site, reading the tutorial now. Thanks for the help.
by cndr
Mon Sep 13, 2010 2:19 pm
Forum: Programming Discussion
Topic: Ray - Plane Intersection Detection
Replies: 2
Views: 823

Ray - Plane Intersection Detection

I've been trying to follow the nehe tutorial on this http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=30 . I don't understand the formula they are using Xn dot X = d Xn, X are vectors and d is a floating point value. Xn is its normal. X is a point on its surface. d is a float representing the ...
by cndr
Tue Jul 27, 2010 9:57 pm
Forum: General/Off-Topic
Topic: link not working
Replies: 3
Views: 877

link not working

go to http://www.thechaosrift.com and click the elysian shadows project.
by cndr
Thu Jul 08, 2010 9:39 pm
Forum: Programming Discussion
Topic: which type of collision detection would you recommend?
Replies: 4
Views: 1075

Re: which type of collision detection would you recommend?

sorry for the delay, thanks for the help the Pythagorean theorem works great.
by cndr
Wed Jul 07, 2010 9:16 pm
Forum: Programming Discussion
Topic: which type of collision detection would you recommend?
Replies: 4
Views: 1075

which type of collision detection would you recommend?

I am using SDL and have a circle on screen which I would like to use for a button. Which method of collision detection would be best for this scenario?
by cndr
Thu Jun 24, 2010 8:12 pm
Forum: Game Development
Topic: My Chess Program
Replies: 30
Views: 5724

Re: My Chess Program

new update, everything should work now, the only thing not really working now is having the coloured squares displayed, besides that I got tired of messing around with the text on screen so you have to release all keys to enter a new letter in, its kinda annoying but it should be fixed by next update.
by cndr
Thu Jun 24, 2010 11:39 am
Forum: Programming Discussion
Topic: need help with keyboard input (sdl)
Replies: 5
Views: 1383

Re: need help with keyboard input (sdl)

I didn't realize before that I could us var.c_str() to use strings in functions like when you open a file to read out of it, I ended up switching to string. Thanks for the help. I have another question though, say I have the following code: if (event.type == SDL_KEYDOWN && keydown == false) ...
by cndr
Mon Jun 21, 2010 10:07 pm
Forum: Reviews
Topic: SDLRoads
Replies: 1
Views: 6310

SDLRoads

This is a great game, http://sourceforge.net/projects/sdlroads/ its a clone of skyroads (dos), I've just picked up this game like 10 mins ago, so this isn't really in depth, but I really enjoy it. Its available for all platforms, and they have an irc channel (how I found out about it) #sdlroads.
by cndr
Mon Jun 21, 2010 8:41 pm
Forum: Programming Discussion
Topic: need help with keyboard input (sdl)
Replies: 5
Views: 1383

Re: need help with keyboard input (sdl)

thanks for the help Live-Dimension, I didn't think about the fact that chars are not able to hold unicode.
by cndr
Mon Jun 21, 2010 6:19 pm
Forum: Programming Discussion
Topic: need help with keyboard input (sdl)
Replies: 5
Views: 1383

need help with keyboard input (sdl)

I am having a problem following lazy foos tutorial, I decided to use char instead of a string, the problem that I am encountering is that when I use event.key.keysym.unicode it does not update the array of chars, and the problem with event.key.keysym.sym is that it does not recognize capital letters...
by cndr
Sat Jun 19, 2010 8:43 am
Forum: Game Development
Topic: My Chess Program
Replies: 30
Views: 5724

Re: My Chess Program

I'm not sure how much you can learn from my code, but if enough people are interested I'll release it, but for the mean time I have a new release, I should note that some functions aren't working 100% in windows, like loading and saving, seems like windows puts cout to file, which is kinda annoying,...