Search found 297 matches

by xiphirx
Wed Feb 09, 2011 9:59 pm
Forum: Game Development
Topic: Mistakes in game design (whining newbie)
Replies: 85
Views: 28053

Re: Mistakes in game design

pubby, I refuse to listen to you unless you can prove some sort of credibility. I could make a report tomorrow and say that 99% of kids die when surfing the internet. I obviously have no credibility, so I'll be widely untrusted. Same applies here. Ironically, your topic advertises game design, howev...
by xiphirx
Wed Feb 09, 2011 12:55 pm
Forum: Programming Discussion
Topic: Flame Painter Dev Thread
Replies: 81
Views: 13314

Re: Flame Painter Dev Thread

Trying new rendering things :D


Image
by xiphirx
Wed Feb 09, 2011 12:33 pm
Forum: Programming Discussion
Topic: [SDL] Very Simple Bouncy Ball Simulation Tutorial
Replies: 11
Views: 2006

Re: [SDL] Very Simple Bouncy Ball Simulation Tutorial

Oh, a quick note. I'm sure it's not relevant, because I did it and it still worked, but using "SDL_FreeSurface(screen);" is supposed to be bad, and return "undefined results". I don't know though; it's never bothered me :P. It's unnecessary, SDL_Quit takes care of the screen sur...
by xiphirx
Tue Feb 08, 2011 10:47 pm
Forum: Programming Discussion
Topic: How to get the x coordinate and y coordinate of tilesheet
Replies: 12
Views: 1006

Re: How to get the x coordinate and y coordinate of tilesheet

Fixed

Code: Select all

unsigned short j = 0; //I'm unsigned short crazy lately, ignore it if you want d:
for (unsigned short i = 0; i < (tilesheet.w/32)*(tilesheet.h*32); i++)
{
if (i * 32 >= tilesheet.w)
{
j++;
}
x = i*32;
y = j*32
}
by xiphirx
Tue Feb 08, 2011 10:24 pm
Forum: Programming Discussion
Topic: How to get the x coordinate and y coordinate of tilesheet
Replies: 12
Views: 1006

Re: How to get the x coordinate and y coordinate of tilesheet

Actually

Code: Select all

unsigned short j = 0; //I'm unsigned short crazy lately, ignore it if you want d:
for (unsigned short i = 0; i < (tilesheet.w/32)*(tilesheet.h*32); i++)
{
if (i * 32 >= tilesheet.w)
{
j++;
i=0;
}
x = i*32;
y = j*32
}
by xiphirx
Tue Feb 08, 2011 9:47 pm
Forum: Programming Discussion
Topic: How to get the x coordinate and y coordinate of tilesheet
Replies: 12
Views: 1006

Re: How to get the x coordinate and y coordinate of tilesheet

I believe you're doing this in a loop? if so... (assumes tiles are 32x32 unsigned short j = 0; //I'm unsigned short crazy lately, ignore it if you want d: unsigned short i = 0; for (unsigned short i = 0; i < tilesheet.w/32; i++) { if (i * 32 >= tilesheet.w && j*32 < tilesheet.h) { j++; i=0; ...
by xiphirx
Tue Feb 08, 2011 7:38 pm
Forum: Programming Discussion
Topic: [SDL] Very Simple Bouncy Ball Simulation Tutorial
Replies: 11
Views: 2006

[SDL] Very Simple Bouncy Ball Simulation Tutorial

Bouncy Ball Physics Simulation Tutorial Getting the very basic grasps of things Hello! This is my first tutorial. It sprouted from being inspired by TheAustech's dynamic 2d lighting tutorial here (good read). The purpose of this tutorial is to take your knowledge of 2d Vectors and apply it to somet...
by xiphirx
Tue Feb 08, 2011 6:02 pm
Forum: Game Development
Topic: Should I modify SFML???
Replies: 18
Views: 2833

Re: Should I modify SFML???

God I feel realy embaressed :oops: :oops: :oops: Honestly, why in fuck's name would you be using doubles? Why would you EVER need that kind of precision? That's only for exact numbers and scientific calculations. And keep in mind that there is not a 1-to-1 relationship between an IEEE 32-bit single...
by xiphirx
Tue Feb 08, 2011 4:01 pm
Forum: Game Development
Topic: Mistakes in game design (whining newbie)
Replies: 85
Views: 28053

Re: Mistakes in game design

I think he accidentally a topic.
by xiphirx
Mon Feb 07, 2011 10:29 pm
Forum: Programming Discussion
Topic: Flame Painter Dev Thread
Replies: 81
Views: 13314

Re: Flame Painter Dev Thread

http://img687.imageshack.us/img687/913/84280261.png I'm not very happy with the rendering *yet*. If the particles rotate around the cursor too fast, then you can tell that the whole thing is made of lines... which I want to avoid. would it be viable to see if, say, the current point is greater than...
by xiphirx
Mon Feb 07, 2011 12:24 pm
Forum: Game Development
Topic: Should I modify SFML???
Replies: 18
Views: 2833

Re: Should I modify SFML???

I'm really confused.... How big are your input values? Do you know what the range of a long is?... //Calculate Magnitude.// GotoX -= Object.GetPosition().x; GotoY -= Object.GetPosition().y; long double Magnitude; Why do you need a long double? float is fine... Magn(GotoX, GotoY, Magnitude); Curious ...
by xiphirx
Mon Feb 07, 2011 12:08 pm
Forum: General Gaming
Topic: Post every time you beat a game.
Replies: 629
Views: 854837

Re: Post every time you beat a game.

Borderlands :3
by xiphirx
Sun Feb 06, 2011 4:51 pm
Forum: Programming Discussion
Topic: Flame Painter Dev Thread
Replies: 81
Views: 13314

Re: Flame Painter Dev Thread

Who said this was dead?

Image

ohai there OpenGL :3
by xiphirx
Mon Jan 31, 2011 11:40 pm
Forum: Current Events and Science/Technology
Topic: BSoD
Replies: 18
Views: 4130

Re: BSoD

I'm suspecting bad RAM.
by xiphirx
Tue Jan 25, 2011 8:06 pm
Forum: Programming Discussion
Topic: SDL first project
Replies: 9
Views: 699

Re: SDL first project

D-e-X wrote:
sk1v3r wrote:the only surface I had was the screen, I was under the impression that SDL_Quit freed the screen only. If not then oops :/
^ This is true, SDL_Quit() takes care of the buffer for you ;), so don't worry about it.
I have learned something then :)