Search found 18 matches
- April 30th, 2012, 9:37 pm
- Forum: Everything
- Topic: I SUCK!
- Replies: 14
- Views: 7869
Re: I SUCK!
Stop it from putting pixels outside the screen, it errors me
- April 29th, 2012, 5:40 am
- Forum: Everything
- Topic: Scrolling Demo (Pooface)
- Replies: 10
- Views: 15557
Re: Scrolling Demo (Pooface)
SHUT UP AND TAKE MY MONEY!, jk, thanks for these tuts
- April 29th, 2012, 2:14 am
- Forum: Everything
- Topic: Scrolling Demo (Pooface)
- Replies: 10
- Views: 15557
Re: Scrolling Demo (Pooface)
Chili, I was wondering how I can donate, I really appreciate what you're doing
- April 26th, 2012, 10:49 pm
- Forum: Everything
- Topic: Which directx
- Replies: 2
- Views: 2164
Which directx
I want to use the SDK tutorials but I don't know which folder we're using.
- April 25th, 2012, 9:17 pm
- Forum: Everything
- Topic: Framework Mk III (Sound Effects)
- Replies: 17
- Views: 28542
Re: Framework Mk III (Sound Effects)
You're amazing, thank you
- April 25th, 2012, 9:12 pm
- Forum: Everything
- Topic: Function that returns the direction between two points
- Replies: 6
- Views: 3880
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));
}
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));
}
- April 25th, 2012, 3:06 am
- Forum: Everything
- Topic: Function that returns the direction between two points
- Replies: 6
- Views: 3880
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
Example:
int point_direction(x1,y1,x2,y2);
point_direction(0,0,180,0)=90
I need it so bad
- April 24th, 2012, 9:23 pm
- Forum: Everything
- Topic: Share your creation
- Replies: 7
- Views: 5879
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
http://www.mediafire.com/?u4j94v2iddcl81y
- April 22nd, 2012, 6:03 pm
- Forum: Everything
- Topic: Framework Mk II (Mouse support)
- Replies: 3
- Views: 6790
Re: Framework Mk II (Mouse support)
Thanks chili!
Edit: I noticed it glitches when I maximize the window though.
Edit: I noticed it glitches when I maximize the window though.
- April 21st, 2012, 10:32 pm
- Forum: Everything
- Topic: screen scrolling solution and/or fail
- Replies: 5
- Views: 3497
Re: screen scrolling solution and/or fail
Would this prevent that glitch from ever happening?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 );
}