Search found 535 matches

by short
Sun May 31, 2009 4:15 am
Forum: Programming Discussion
Topic: [Solved] Frame rate cap and calculation of
Replies: 6
Views: 2241

[Solved] Frame rate cap and calculation of

Hey guys, I'm having difficulty following two of lazyfoo's tutorial's together. Independently I can either cap the fps on my pong game or I can view the fps, but doing both at the same time is presenting difficulties. Here is my relevant code: (I removed some irrelevant code as to make it easier to ...
by short
Wed May 13, 2009 11:21 pm
Forum: Programming Discussion
Topic: [solved]sdl, windows 7 weirdness?
Replies: 7
Views: 618

Re: sdl, windows 7 weirdness?

If the working directory for both of us is blank (msdn says the default is the directory the executable is in), and if it works on mine, would it not be the same for him?
by short
Wed May 13, 2009 11:40 am
Forum: Programming Discussion
Topic: [solved]sdl, windows 7 weirdness?
Replies: 7
Views: 618

Re: sdl, windows 7 weirdness?

We are both using MVC++, it wouldn't be changing the folder locations unfortunately. Were using the svn so it should all be the exact same thing.

I'll have him triple check though.
by short
Wed May 13, 2009 1:42 am
Forum: Programming Discussion
Topic: [solved]sdl, windows 7 weirdness?
Replies: 7
Views: 618

[solved]sdl, windows 7 weirdness?

Solution: make sure friend copies all .dll files in the sdl_image zip file and not just the required ones to make it compile. =) My friend and I are working on a project together. A simple pong game. We wanted to figure out how to work with networking, and get a pong-over-the-internet-clone working....
by short
Mon May 11, 2009 2:28 am
Forum: Art, Music, and Design
Topic: Woot My Very First Sprite From Scratch
Replies: 22
Views: 3755

Re: Woot My Very First Sprite From Scratch

very nice!
by short
Sun May 03, 2009 9:20 pm
Forum: Programming Discussion
Topic: [solved] getting the directory of my executable on win XP
Replies: 7
Views: 748

Re: [solved] getting the directory of my executable on win XP

// DEFINES #define IMAGE_BACKGROUND ".\\content\\images\\background.png" #define IMAGE_BLUEBLOCK ".\\content\\images\\blueblock.png" #define FONT_MAIN ".\\content\\fonts\\sai.ttf" Worked. Thanks, I can get rid of those functions now. I had no idea the . represented the...
by short
Sun May 03, 2009 3:39 am
Forum: Programming Discussion
Topic: [solved] getting the directory of my executable on win XP
Replies: 7
Views: 748

Re: another question, images in folders relative to executable

I actually got it to work, I'll post the code for anyone interested =) // DEFINES #define IMAGE_BACKGROUND "\\content\\images\\background.bmp" #define FONT_MAIN "\\content\\fonts\\sai.ttf" #define EXECUTABLE_NAME_STRING_LENGTH 13 // how many characters are in the executable name ...
by short
Sun May 03, 2009 12:42 am
Forum: Programming Discussion
Topic: [solved] getting the directory of my executable on win XP
Replies: 7
Views: 748

Re: another question, images in folders relative to executable

unfortunately, it doesn't work. I tried loading the image with my constant, but the only way it works is by hard coding the entire directory. Which, is obviously not what I want. I am just trying to find the directory the executable is in, and then go off to my sub folders, like I "think" ...
by short
Sat May 02, 2009 9:13 pm
Forum: Programming Discussion
Topic: [solved] getting the directory of my executable on win XP
Replies: 7
Views: 748

[solved] getting the directory of my executable on win XP

Basically, I was hoping to sort of keep my files sorted instead of having them all in the same folder as my executable, but referencing files in sub folders relative to my executable has proven difficult. // DEFINES #define IMAGE_BACKGROUND "\\content\\images\\background.bmp" #define FONT_...
by short
Sat May 02, 2009 1:58 am
Forum: Programming Discussion
Topic: Verify my understanding && Introduce myself
Replies: 4
Views: 452

Verify my understanding && Introduce myself

Hello everyone, I basically fell in love with the "Adventures in Game Development" Youtube series, so naturally I found this website and forum. After watching the whole series in... basically one sitting I got inspired to actually create a game. The reason I found the series is I was looki...