In Pong from the SDL manual, I was experiencing an issue where the paddle
movement was slower in one direction than the other. The cause of this is
the way Perl and SDL handled the numbers passed. Anything between 0 and 1
was floored to 0, but anything -1 and 0 was floored to -1.
Here is the fix
I did some experimenting with blitting Surfaces. I think the main memory
leak I've been seeing is coming from the creation of a new SDLx::Rect every
time the Rect coordinates are passed as [x, y, h, w]. By comparing 5
different blits, I was able to find out that by declaring the SDLx::Rect
once a
2 AM, Kartik Thakore wrote:
> Done at
>
> http://bit.ly/i0j3mc
>
> Thanks.
>
>
> On Sun, 2011-01-02 at 21:42 -0500, Sheppy R wrote:
> > I remembered encountering an issue the first go through the manual, but
> > wasn't really aware of the community at that ti
I remembered encountering an issue the first go through the manual, but
wasn't really aware of the community at that time. I'm going back through
the most recent version and came across the following 'typo'. I don't know
why, but I"m inclined to blame garu.
pg. 33 -> Remove the 'my' in line 51.
Been working with kthakore in the IRC channel and he asked I send this to
the mailing list.
I'm working on a checkerboard program. The first version was ridiculous
with memory leaks, so I scrapped it and am rewriting. I'm currently doing
some testing with the way SDL(x) works to make sure I decr