Search found 198 matches

by RandomDever
Mon Oct 12, 2009 9:14 pm
Forum: Programming Discussion
Topic: My library
Replies: 12
Views: 1040

Re: My library

MarauderIIC wrote:Nothing jumps out as a problem. How are you telling how many frames happen per second? Maybe that's where the problem is.
i'm just using SDL_Delay()
It's all handled in the first snippet i posted
pretty much
by RandomDever
Mon Oct 12, 2009 4:34 pm
Forum: Programming Discussion
Topic: My library
Replies: 12
Views: 1040

Re: My library

#include "MSDL_image.h" #include "MSDL_render.h" #include "MSDL_ttf.h" #include "MSDL_key.h" #include "MSDL_timer.h" #include "player.h" SDL_Event event; int count = 0; Uint32 frame = 0; bool quit = false; Uint8 *keystates; Uint32 time = 1...
by RandomDever
Sat Oct 10, 2009 10:54 pm
Forum: Programming Discussion
Topic: My library
Replies: 12
Views: 1040

My library

Code: Select all

if ((time/frame) < (1000/FPS))
		{
			SDL_Delay((1000/FPS) - (time/frame));
		}
What's wrong with this code?
It compiles and runs but it runs at 2 FPS even though I have the const int FPS = 1;
by RandomDever
Tue Sep 01, 2009 12:48 pm
Forum: Programming Discussion
Topic: SDL_Mixer Problem
Replies: 9
Views: 803

Re: SDL_Mixer Problem

BTW is there a length limitation?
by RandomDever
Fri Aug 14, 2009 10:24 pm
Forum: *(NULL) - Posts You Shouldn't Make
Topic: Am I the only one?
Replies: 16
Views: 11007

Re: Am I the only one?

dandymcgee wrote:What a useless post. Why don't you ask for help instead of aimlessly complaining about a problem you don't even attempt to describe? :|
http://thechaosrift.com/viewtopic.php?f ... d3842fd6f2
by RandomDever
Sun Aug 09, 2009 3:25 pm
Forum: *(NULL) - Posts You Shouldn't Make
Topic: Am I the only one?
Replies: 16
Views: 11007

Am I the only one?

I just wonder has anyone had the same kind of problems as I have. :| :roll:
by RandomDever
Thu Aug 06, 2009 10:30 pm
Forum: Programming Discussion
Topic: SDL_Mixer Problem
Replies: 9
Views: 803

Re: SDL_Mixer Problem

ummmmmmm...... Noesz!!!!!! :shock2: :shock2: :shock2: :shock2:
by RandomDever
Wed Aug 05, 2009 9:13 am
Forum: Programming Discussion
Topic: SDL_Mixer Problem
Replies: 9
Views: 803

Re: SDL_Mixer Problem

Nope
Nope

Fixed

FUCK!!!!!! :evil: :evil: :evil: :evil:
by RandomDever
Tue Aug 04, 2009 4:34 pm
Forum: Programming Discussion
Topic: SDL_Mixer Problem
Replies: 9
Views: 803

Re: SDL_Mixer Problem

It compiles no errors of warnings
It links same
The error is at runtime is says "DuckHunt.exe Has stopped working" :nono:
by RandomDever
Tue Aug 04, 2009 3:13 pm
Forum: Programming Discussion
Topic: SDL_Mixer Problem
Replies: 9
Views: 803

Re: SDL_Mixer Problem

You were right but now it just isn't working.
by RandomDever
Tue Aug 04, 2009 2:00 pm
Forum: Programming Discussion
Topic: SDL_Mixer Problem
Replies: 9
Views: 803

SDL_Mixer Problem

#include "SDL.h" #include "SDL_mixer.h" #include "SDL_ttf.h" #include "SDL_image.h" #include <string> //Screen attributes const int SCREEN_WIDTH = 640; const int SCREEN_HEIGHT = 480; const int SCREEN_BPP = 32; //Score int score = 0; //Round int round = 1; //S...
by RandomDever
Sat Aug 01, 2009 11:23 am
Forum: Game Development
Topic: What projects are you currently working on?
Replies: 500
Views: 164200

Re: What projects are you currently working on?

Done! :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen:
My very first game is complete :shock:
O and BTW http://www.youtube.com/user/Randomdever
by RandomDever
Sat Aug 01, 2009 10:21 am
Forum: Game Development
Topic: What projects are you currently working on?
Replies: 500
Views: 164200

Re: What projects are you currently working on?

Tic Tac Toe wih SDL.
Nothing special just tic tac toe.
Almost done. :) :mrgreen:
by RandomDever
Fri Jul 31, 2009 7:44 am
Forum: Programming Discussion
Topic: SDL_Color Problem :)
Replies: 8
Views: 1167

Re: SDL_Color Problem :)

All I want to do is render some text like this:
message = TTF_RenderText_Solid(georgia, "message XD", textColor);
SDL_Flip....
Etc.
by RandomDever
Fri Jul 31, 2009 4:48 am
Forum: Programming Discussion
Topic: SDL_Color Problem :)
Replies: 8
Views: 1167

Re: SDL_Color Problem :)

Panama wrote:I believe it should be

Code: Select all

SDL_Color textColor (255, 255, 255);
That's what I thought at first but it gives me a too many initizlizations error so i guess not :roll: