X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0012.html-inc;h=b1abc1d15ace99fb968ddcc0866bb1101ddb8cbf;hb=e785862422f3e827a242fc244bd57b23443887ce;hp=c9a5692ed28f0d4a049f216379a6a511a35fa5d7;hpb=769d193e7a4b5eeebd1f248a084ae4f2495df071;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0012.html-inc b/pages/blog-0012.html-inc index c9a5692..b1abc1d 100644 --- a/pages/blog-0012.html-inc +++ b/pages/blog-0012.html-inc @@ -1,6 +1,23 @@

-Design of SDL::Rect +Huge World Maps in less then 100 lines

-

you say things,
I hear,
but don't listen,

you show things,
I see,
but don't understand,

you write things,
I read,
but don't know.

Lately we have been working on cleaning up the XS name spaces of SDL perl. After some bumps and falls we came up with a separated Rect module. Rect is one of the most simple C struct as shown below.



Using the awesome perlobject.map as a reference I was able to create a blessed perl object in XS. So now SDL::Rect->new(...) gave us a blessed reference ready to go. And as an icing it would destroy itself properly no matter where it was used. But once I brought it into our existing code base, garu pointed out the extending it was a little bit of a mess. So far to extend Rect we have to something like below. Any comment or advice would be much appreciated.





Have at it I am a big boy. You can grab the code like this.
Only If you don't already have a local git repo:

mkdir SDL
cd SDL
git init .

Then do this or skip to this if you already have a local git repo
git pull git://github.com/kthakore/SDL_perl.git experimental
\ No newline at end of file +

+Hello folks,
+
+Recently we have been working on making the Perl syntax sugar for SDL in the form of SDLx. So far we have got the SDLx::Surface and SDLx::Sprite (garu++) done. So the first thing we did was throw together a quick Zelda map walker. As you can see above.  The code is at http://gist.github.com/478440. The SDL code that this depends on will be SDL 2.503 soonish . We are in the process of cleaning up some more SDLx and Alien::SDL bugs. After that SDLx::App will be overhauled to make this sort of thing even easier. Finally living up to our goal of  'Simple Games Easy. Complex Games Possible.' 
+
+
+UPDATE: with some help, and newcomer jtpalmer's help we have added Link
+ 
+
+

+
+
+
+

+
+--caio yapgh
+


+

\ No newline at end of file