Search found 18 matches

by KPence
April 30th, 2012, 9:37 pm
Forum: Everything
Topic: I SUCK!
Replies: 14
Views: 7843

Re: I SUCK!

Stop it from putting pixels outside the screen, it errors me
by KPence
April 29th, 2012, 5:40 am
Forum: Everything
Topic: Scrolling Demo (Pooface)
Replies: 10
Views: 15530

Re: Scrolling Demo (Pooface)

SHUT UP AND TAKE MY MONEY!, jk, thanks for these tuts
by KPence
April 29th, 2012, 2:14 am
Forum: Everything
Topic: Scrolling Demo (Pooface)
Replies: 10
Views: 15530

Re: Scrolling Demo (Pooface)

Chili, I was wondering how I can donate, I really appreciate what you're doing
by KPence
April 26th, 2012, 10:49 pm
Forum: Everything
Topic: Which directx
Replies: 2
Views: 2154

Which directx

I want to use the SDK tutorials but I don't know which folder we're using.
Image
Image
by KPence
April 25th, 2012, 9:17 pm
Forum: Everything
Topic: Framework Mk III (Sound Effects)
Replies: 17
Views: 28468

Re: Framework Mk III (Sound Effects)

You're amazing, thank you
by KPence
April 25th, 2012, 9:12 pm
Forum: Everything
Topic: Function that returns the direction between two points
Replies: 6
Views: 3860

Re: Function that returns the direction between two points

Sorry, it was late and I was tired.

I found it btw

int Game::point_direction(int x1, int y1, int x2, int y2)
{
return((int)(atan2((float)y2-(float)y1,(float)x2-(float)x1)*180 / PI));
}
by KPence
April 25th, 2012, 3:06 am
Forum: Everything
Topic: Function that returns the direction between two points
Replies: 6
Views: 3860

Function that returns the direction between two points

I can't figure out how to code a function that returns the direction (in degrees 0=right 90=up 180=right 270=down) between two points.

Example:

int point_direction(x1,y1,x2,y2);

point_direction(0,0,180,0)=90

I need it so bad
by KPence
April 24th, 2012, 9:23 pm
Forum: Everything
Topic: Share your creation
Replies: 7
Views: 5854

Re: Share your creation

Ok -my codes a little messy, though. (The attachment's too big so mediafire will do)

http://www.mediafire.com/?u4j94v2iddcl81y
by KPence
April 22nd, 2012, 6:03 pm
Forum: Everything
Topic: Framework Mk II (Mouse support)
Replies: 3
Views: 6786

Re: Framework Mk II (Mouse support)

Thanks chili!

Edit: I noticed it glitches when I maximize the window though.
by KPence
April 21st, 2012, 10:32 pm
Forum: Everything
Topic: screen scrolling solution and/or fail
Replies: 5
Views: 3479

Re: screen scrolling solution and/or fail

void D3DGraphics::PutPixel( int x,int y,int r,int g,int b )
{
x=min(799,max(1,x));y=min(599,max(1,y));
((D3DCOLOR*)backRect.pBits)[ x + (backRect.Pitch >> 2) * y ] = D3DCOLOR_XRGB( r,g,b );
}
Would this prevent that glitch from ever happening?