Search found 363 matches

by PutPixel255
February 13th, 2014, 6:46 am
Forum: Everything
Topic: Got gaps in the radar line drawing func
Replies: 7
Views: 2752

Got gaps in the radar line drawing func

So, I'll still got gaps in my line that's supposed to rotate around a point. Am I supposed to use the abs() for dx> dy as well?
by PutPixel255
February 9th, 2014, 12:14 am
Forum: Everything
Topic: Breaks, speeding into the up direction.
Replies: 9
Views: 3202

Re: Breaks, speeding into the up direction.

:mrgreen: Thanks Lux your the man. And now I am free to teleport across the cosmos which is 800x600. Yea, I wrote that from memory so I got it backwards and thought about why it didn't and did work. and now I am tired cause thinking is hard. Winky face.
by PutPixel255
February 8th, 2014, 12:47 am
Forum: Everything
Topic: Breaks, speeding into the up direction.
Replies: 9
Views: 3202

Re: Breaks, speeding into the up direction.

well this seems to wrap upwards correctly when I stuck a 12 in there. The debugger showed a neg 2 for y so perhaps that explains 12 working, but what about the other 5 positions plus the height of the reticle. // 12 is the magic number if(y<12) :idea: { y=594; } if(x>794) { x=5; } if(y>594) { y=12; ...
by PutPixel255
February 7th, 2014, 11:22 pm
Forum: Everything
Topic: Breaks, speeding into the up direction.
Replies: 9
Views: 3202

Re: Breaks, speeding into the up direction.

((D3DCOLOR*)rect.pBits)[ x + (rect.Pitch >> 2) * y ] = D3DCOLOR_XRGB( r,g,b );

Not sure why this is pushing the reticle north of the border into the forbidden zone. :P


is this >> dividing by 4. i'm just guessing.
by PutPixel255
February 7th, 2014, 6:22 pm
Forum: Everything
Topic: Breaks, speeding into the up direction.
Replies: 9
Views: 3202

Re: Breaks, speeding into the up direction.

I guess I'll rewrite the clamping code or use the up dated framework anyway moving on. If its not a problem with the logic.
by PutPixel255
February 7th, 2014, 5:21 pm
Forum: Everything
Topic: Breaks, speeding into the up direction.
Replies: 9
Views: 3202

Breaks, speeding into the up direction.

Hi I'm just wondering why the code breaks when I push the space button while traveling in the up direction. Only happens when space is pushed.
by PutPixel255
February 2nd, 2014, 3:05 am
Forum: Everything
Topic: Stuck in an infinite loop...
Replies: 3
Views: 1635

Stuck in an infinite loop...

infinite loop.jpg
infinite loop.jpg (230.99 KiB) Viewed 1635 times
by PutPixel255
January 27th, 2014, 6:05 am
Forum: Everything
Topic: acceleration?
Replies: 1
Views: 1185

acceleration?

does chilli go into basic 2d physics in his later videos? I got somebody chasing me and I need to make my getaway :P
by PutPixel255
January 27th, 2014, 5:29 am
Forum: Everything
Topic: more than x++
Replies: 4
Views: 1870

Re: more than x++

So it would be x+=10 instead of x+10. Ok Thanks for that little forgotten detail.

Of course x=x+10 is more readable.
by PutPixel255
January 27th, 2014, 5:10 am
Forum: Everything
Topic: more than x++
Replies: 4
Views: 1870

more than x++

if(kbd.RightIsPressed())
{
x+10;
}

I can do x++. But why can't I write x+2 or x+10. Well obviously I can do x=x+10. But why can't the incremental operator do more than one. Just wonderin'. I guess the compiler getes confuse and just ignore the statement.