From: Tobias Leich Date: Fri, 13 Nov 2009 18:32:12 +0000 (+0100) Subject: blog index is 0000 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8d3f70f2a099e5c99545142b8dcb2368ab3f9b1f;hp=8ba276b2c6076af85d8b6bed232287d48ce943e4;p=sdlgit%2FSDL-Site.git blog index is 0000 --- diff --git a/pages/blog-0000.html.inc b/pages/blog-0000.html.inc new file mode 100644 index 0000000..f0a8ce6 --- /dev/null +++ b/pages/blog-0000.html.inc @@ -0,0 +1,2 @@ +
+Once in a while .... (set_event_filter)

Hello Mouse? An Example of the New Event Code

Development Update

Development Update

The Future and Beyond!

The beginnings of modular design for SDL Perl

Why and How Frozen Bubble is going to CPAN

HackFest: Results

Updates, Falling Block Game, and Hack Fest

Thanks nothingmuch, and updates

Design of SDL::Rect

Updates and Design Decisions

Why I will be sticking to CPAN

Frozen Bubble coming to CPAN

Newbie Friendly Perl Projects

Can someone please point me to good XS documentation!

More Games + Update

Updates on Plan for v2.4

Code is not the only thing

SDL Perl v2.2.2 out and Plans for v2.4

Catching memory leaks in XS

Alien::SDL 0.01 released!!!

SDL perl is coming to Strawberry!!

My milestones (itches) for gaming in Perl

SDL Perl Windows Status

diff --git a/pages/blog-0001.html-inc b/pages/blog-0001.html-inc index 9299b79..8db63a9 100644 --- a/pages/blog-0001.html-inc +++ b/pages/blog-0001.html-inc @@ -1,6 +1,6 @@

-Hello Mouse? An Example of the New Event Code +Once in a while .... (set_event_filter)

-
Any code that is not marketed is dead code
--mst


You need the new code from the redesign branch to use this .

#!/usr/bin/env perl

use SDL;
use SDL::Events;
use SDL::Event;
use SDL::Video;

SDL::init(SDL_INIT_VIDEO);

my $display = SDL::Video::set_video_mode(640,480,32, SDL_SWSURFACE );
my $event = SDL::Event->new();

while(1)
{
SDL::Events::pump_events();

if(SDL::Events::poll_event($event) && $event->type == SDL_ACTIVEEVENT)
{
print "Hello Mouse!!!\n" if ($event->active_gain && ($event->active_state == SDL_APPMOUSEFOCUS) );
print "Bye Mouse!!!\n" if (!$event->active_gain && ($event->active_state == SDL_APPMOUSEFOCUS) );
}

exit if($event->type == SDL_QUIT);
}
\ No newline at end of file +

Once in a while
Things just work!



So I have been hacking for a while on SDL::Events::set_event_filter. The code below is an example usage. The magic behind this is here

 1 #!/usr/bin/perl -w
2
use strict;
3 use warnings;
4 use SDL v2.3; #Require the redesign branch
5
use SDL::Video;
6 use SDL::Event;
7 use SDL::Events;
8
9 SDL::init(SDL_INIT_VIDEO);
10 my $display = SDL::Video::set_video_mode(640,480,32, SDL_SWSURFACE );
11 my $event = SDL::Event->new();
12
13 #This filters out all ActiveEvents
14
my $filter = sub {
15 my ($e, $type) = ($_[0], $_[0]->type);
16 if($type == SDL_ACTIVEEVENT){ return 0 }
17 elsif($type == SDL_MOUSEBUTTONDOWN && $e->button_button == 1){ return 0 }
18 else { return 1; }
19 };
20
21 SDL::Events::set_event_filter($filter);
22
23 while(1)
24 {
25
26 SDL::Events::pump_events();
27 if(SDL::Events::poll_event($event))
28 {
29
30 if( $event->type == SDL_ACTIVEEVENT)
31 {
32 print "Hello Mouse!!!\n" if ($event->active_gain && ($event->active_state == SDL_APPMOUSEFOCUS) );
33 print "Bye Mouse!!!\n" if (!$event->active_gain && ($event->active_state == SDL_APPMOUSEFOCUS) );
34 }
35 if( $event->type == SDL_MOUSEBUTTONDOWN)
36 {
37 my ($x, $y, $but ) = ($event->button_x, $event->button_y, $event->button_button);
38 warn "$but CLICK!!! at $x and $y \n";
39 }
40
41 last if($event->type == SDL_QUIT);
42 }
43 }
44 SDL::quit()
 
 
Tinker with $filter and look at perldoc lib/SDL/pods/Event.pod. 
 
Have fun,
--yapgh
\ No newline at end of file diff --git a/pages/blog-0002.html-inc b/pages/blog-0002.html-inc index 29b3a3a..9299b79 100644 --- a/pages/blog-0002.html-inc +++ b/pages/blog-0002.html-inc @@ -1,6 +1,6 @@

-Development Update +Hello Mouse? An Example of the New Event Code

-
Short and Sweet

Had an exam on the weekend so I am a bit late. Here is the progress so far.
  • SDL::Video at 97%
  • SDL::Events at 25%
  • ~1000 tests cases passing on Windows and Linux

SDL Smoke tests

The major release maybe coming quicker than we thought. FROGGS++ for helping a lot out on this. However we need more testers!! Please contact us on #sdl and we will set you up with an account on Smolder.

[Edit] Please read http://sdlperl.ath.cx/projects/SDLPerl/wiki/Testing on how to get started in test!
\ No newline at end of file +
Any code that is not marketed is dead code
--mst


You need the new code from the redesign branch to use this .

#!/usr/bin/env perl

use SDL;
use SDL::Events;
use SDL::Event;
use SDL::Video;

SDL::init(SDL_INIT_VIDEO);

my $display = SDL::Video::set_video_mode(640,480,32, SDL_SWSURFACE );
my $event = SDL::Event->new();

while(1)
{
SDL::Events::pump_events();

if(SDL::Events::poll_event($event) && $event->type == SDL_ACTIVEEVENT)
{
print "Hello Mouse!!!\n" if ($event->active_gain && ($event->active_state == SDL_APPMOUSEFOCUS) );
print "Bye Mouse!!!\n" if (!$event->active_gain && ($event->active_state == SDL_APPMOUSEFOCUS) );
}

exit if($event->type == SDL_QUIT);
}
\ No newline at end of file diff --git a/pages/blog-0003.html-inc b/pages/blog-0003.html-inc index 3b3edbf..29b3a3a 100644 --- a/pages/blog-0003.html-inc +++ b/pages/blog-0003.html-inc @@ -3,4 +3,4 @@ Development Update
-

A stoic stone will sit idle,
but will some effort,
A rolling rock will run!


In the past week the SDL Perl team has been busy! This is what we have accomplished


Commitment to Testing!

In an effort to focus on continuing our focus on testing we have setup a Smolder site for the SDL redesign process. Currently we have two platforms (linux, windows32) regularly tested on here. If there are more people following the redesign process and would like to share their test results; contact us at sdl-devel@perl.org and we will provide access to you.

SDL::Video

For the core development most of the focus has been on redesigning around the Video category of the SDL perl API. As of now we are 50% done. 19 functions out of 38 functions have been implemented and tested.


Site Redesign + Migration

On the end of the spectrum, Froggs has been hard at work on the graphical design of the site. More over with mst's help we will soon be migrating to http://sdl.perl.org.



Documentation

Moreover this week we have seen an increase effort from magnet on the SDL docs. Kudos!


SWIG Experimentation

Finally Katrina has begun looking into SWIG as alternative for SDL in the future.
\ No newline at end of file +
Short and Sweet

Had an exam on the weekend so I am a bit late. Here is the progress so far.

SDL Smoke tests

The major release maybe coming quicker than we thought. FROGGS++ for helping a lot out on this. However we need more testers!! Please contact us on #sdl and we will set you up with an account on Smolder.

[Edit] Please read http://sdlperl.ath.cx/projects/SDLPerl/wiki/Testing on how to get started in test!
\ No newline at end of file diff --git a/pages/blog-0004.html-inc b/pages/blog-0004.html-inc index a69f1fc..3b3edbf 100644 --- a/pages/blog-0004.html-inc +++ b/pages/blog-0004.html-inc @@ -1,6 +1,6 @@

-The Future and Beyond! +Development Update

-
I do not think about awesomeness...
I just am awesomeness
n.n
--KatrinaTheLamia


Updates

Since the last post SDL Perl has seen an increase of interest to both use and contribute to SDL Perl. Before I dig into the updates, I would like to acknowledge them.

Core Development

Acme (Leon Brocard): Has started to work on the Redesign Effort with me. The help is much appreciated! Enjoy your vacation.

Website and Windows Testing

FROGGS (Tobias Leich): Came in as a new user to SDL Perl. And after breaking the redesigned SDL Perl in as many ways possible he has decided to help out on the new site.


Last Legacy Release


Ok! Now this weekend hopefully we will release our last legacy release, after this we move on! This release will focus on showing of SDL + Perl possibilities.

Pong + SDL::Game::Rect

garu has been working on making SDL object extensions that provide a more perly way to use and play with the SDL bindings. To demonstrate the benefits of this SDL::Tutorial::Pong is done and being polished up. SDL::Game::Rect is a peek in to the design and vision we have for SDL down the road.

Design

The design we have settled on for future release for SDL Perl can be broken in to two layers, SDL::* and SDL::Game::*. Previously the SDL Perl library tried to provide C bindings and provide Perl Idiomatic access. This was messy in regards to the single responsibility principle (do one thing and do it well).

We have decided to separate these two focuses into the two name spaces SDL::* and SDL::Game::*. SDL::* will provide straight access to SDL's C API, nothing less and nothing more. SDL::Game::* will extend and make pretty unicorns for Perl.

This design has already begin to pay of. One major benefit been in the XS readability. Moreover since structs are treated as objects, Perl manages their destruction, and deliver less memory leaks.
\ No newline at end of file +

A stoic stone will sit idle,
but will some effort,
A rolling rock will run!


In the past week the SDL Perl team has been busy! This is what we have accomplished


Commitment to Testing!

In an effort to focus on continuing our focus on testing we have setup a Smolder site for the SDL redesign process. Currently we have two platforms (linux, windows32) regularly tested on here. If there are more people following the redesign process and would like to share their test results; contact us at sdl-devel@perl.org and we will provide access to you.

SDL::Video

For the core development most of the focus has been on redesigning around the Video category of the SDL perl API. As of now we are 50% done. 19 functions out of 38 functions have been implemented and tested.


Site Redesign + Migration

On the end of the spectrum, Froggs has been hard at work on the graphical design of the site. More over with mst's help we will soon be migrating to http://sdl.perl.org.



Documentation

Moreover this week we have seen an increase effort from magnet on the SDL docs. Kudos!


SWIG Experimentation

Finally Katrina has begun looking into SWIG as alternative for SDL in the future.
\ No newline at end of file diff --git a/pages/blog-0005.html-inc b/pages/blog-0005.html-inc index 8c28eca..a69f1fc 100644 --- a/pages/blog-0005.html-inc +++ b/pages/blog-0005.html-inc @@ -1,6 +1,6 @@

-The beginnings of modular design for SDL Perl +The Future and Beyond!

-
“Do or do not... there is no try.”
--yoda

The design before


The bindings before were all in one huge XS file. This was then exported into the SDL module. This means that the XS file has to handle with macros if any component (e.x SDL_Mixer) is not compiled. Moreover having ever binding in one XS file prevents use to treat C structs as object with only one point of free and malloc. This would be BEGIN and DESTROY in Perl. Also the monolithic design introduces a lot of bugs because we have to use free and malloc all over the place. Lastly SDL monolithic design has the constructor for all structs in both Perl and in XS.

The design we are aiming for

Simple one XS per Module. This would also simplify the Build code.

First Step


We have began with SDL Rect. It is in github master branch now. We are in the progress of making it back compatible. Originally SDL::Rect took named variables as parameters for new(). Now since the constructor is in XS we have only unnamed parameters.


Before


SDL::Rect->new( -x => 0, -y => 0, -width => 0, -height => 0);

After


SDL::Rect->new(0, 0, 0, 0);

Ideally we would like both ways of constructing Rect.
\ No newline at end of file +
I do not think about awesomeness...
I just am awesomeness
n.n
--KatrinaTheLamia


Updates

Since the last post SDL Perl has seen an increase of interest to both use and contribute to SDL Perl. Before I dig into the updates, I would like to acknowledge them.

Core Development

Acme (Leon Brocard): Has started to work on the Redesign Effort with me. The help is much appreciated! Enjoy your vacation.

Website and Windows Testing

FROGGS (Tobias Leich): Came in as a new user to SDL Perl. And after breaking the redesigned SDL Perl in as many ways possible he has decided to help out on the new site.


Last Legacy Release


Ok! Now this weekend hopefully we will release our last legacy release, after this we move on! This release will focus on showing of SDL + Perl possibilities.

Pong + SDL::Game::Rect

garu has been working on making SDL object extensions that provide a more perly way to use and play with the SDL bindings. To demonstrate the benefits of this SDL::Tutorial::Pong is done and being polished up. SDL::Game::Rect is a peek in to the design and vision we have for SDL down the road.

Design

The design we have settled on for future release for SDL Perl can be broken in to two layers, SDL::* and SDL::Game::*. Previously the SDL Perl library tried to provide C bindings and provide Perl Idiomatic access. This was messy in regards to the single responsibility principle (do one thing and do it well).

We have decided to separate these two focuses into the two name spaces SDL::* and SDL::Game::*. SDL::* will provide straight access to SDL's C API, nothing less and nothing more. SDL::Game::* will extend and make pretty unicorns for Perl.

This design has already begin to pay of. One major benefit been in the XS readability. Moreover since structs are treated as objects, Perl manages their destruction, and deliver less memory leaks.
\ No newline at end of file diff --git a/pages/blog-0006.html-inc b/pages/blog-0006.html-inc index 6d16fab..8c28eca 100644 --- a/pages/blog-0006.html-inc +++ b/pages/blog-0006.html-inc @@ -1,6 +1,6 @@

-Why and How Frozen Bubble is going to CPAN +The beginnings of modular design for SDL Perl

-
A single drop,
causes the ocean to swell

So 5 weeks ago, SDL Perl was broken. It had been for several years. After the last release SDL Perl works ... somewhat. The quick releases that you have seen have been work-arounds, fixes and refactoring. This is not bad for a few weeks of work but, there is a point where code smell and technical debt is too huge to fix with out redesigning. This is that point.

Since the redesigning will take time and effort it will be good to have a leg up. This leg up is Frozen Bubble 2.20. Frozen Bubble employs a lot of C and Perl hacks to cover up for SDL Perl's lacking. This will help in a sense fast forward the code status to 2008. Since Frozen Bubble is helping us out, we can go one step forward and help it out!

So Alias (Adam Kennedy) and I have started work on making Frozen Bubble CPAN accessible. Frozen Bubble is a well know game and making it cross-platform will bring lots of attention and hopefully contributions to SDL Perl.

In Alias's earlier post about this he mentioned about making a splash and some other stuff. I will talk about how and where we will be accomplishing this task.

First we will be tracking Frozen Bubble on the new SDL Perl Trac website. This site will be similar to Padre's Trac site. As a bonus for people looking to help out in SDL Perl I have separated tasks by perceived difficulty. This will help to breakdown harder task too.

For example for Frozen Bubble the two major bumps we have run into so far are:

Migrating the SDL Perl workarounds: Ticket #3
Making the Build System Portable: Ticket #7

The first one will be difficult as it involves XS. So I will break it down into easier tasks with specific instruction which can then hopefully be picked up by interested contributers. The second one there is sort of a forte of Adam so I will leave it up to him. This is the process I am proposing make hard tickets, break them down.

This will generate a lot of easy tickets that will hopefully be synchronized.  If you are interested in this please give me a shout on #sdl irc.perl.org or the mailing list at sdl-devel@perl.org and I will get you registered.

--yapgh



\ No newline at end of file +
“Do or do not... there is no try.”
--yoda

The design before


The bindings before were all in one huge XS file. This was then exported into the SDL module. This means that the XS file has to handle with macros if any component (e.x SDL_Mixer) is not compiled. Moreover having ever binding in one XS file prevents use to treat C structs as object with only one point of free and malloc. This would be BEGIN and DESTROY in Perl. Also the monolithic design introduces a lot of bugs because we have to use free and malloc all over the place. Lastly SDL monolithic design has the constructor for all structs in both Perl and in XS.

The design we are aiming for

Simple one XS per Module. This would also simplify the Build code.

First Step


We have began with SDL Rect. It is in github master branch now. We are in the progress of making it back compatible. Originally SDL::Rect took named variables as parameters for new(). Now since the constructor is in XS we have only unnamed parameters.


Before


SDL::Rect->new( -x => 0, -y => 0, -width => 0, -height => 0);

After


SDL::Rect->new(0, 0, 0, 0);

Ideally we would like both ways of constructing Rect.
\ No newline at end of file diff --git a/pages/blog-0007.html-inc b/pages/blog-0007.html-inc index 3edda7c..6d16fab 100644 --- a/pages/blog-0007.html-inc +++ b/pages/blog-0007.html-inc @@ -1,6 +1,6 @@

-HackFest: Results +Why and How Frozen Bubble is going to CPAN

-
The beautiful sunset,
is no match for,
the ugly sunrise

Results

On Sunday we had a hackfest on #sdl irc.perl.org. This is what we got done.




  1. MacOSX build is working again. It's still rough but Tetris works on it now. dngor++
  2. SDL::Tutorial::Tetris is on CPAN as v0.15. nferraz++
  3. SDL Perl docs are a little better now. magnet++
  4. Finally experimental Rect and Game::Rect are behaving. There is still more work needed in Game::Rect. Moreover there are more tests on the experimental release. garu++
  5. Also POGL is working experimentally with SDL.
Hopefully I can get the first three results into the next release soon. The next release 2.2.3 will go up as a developmental release first. Also the experimental branch is going up as version 2_4.

Developers

All developers please tell me what to put you guys want to be put down as on the
in the Docs for the SDL Perl Team section.

--yapgh
\ No newline at end of file +
A single drop,
causes the ocean to swell

So 5 weeks ago, SDL Perl was broken. It had been for several years. After the last release SDL Perl works ... somewhat. The quick releases that you have seen have been work-arounds, fixes and refactoring. This is not bad for a few weeks of work but, there is a point where code smell and technical debt is too huge to fix with out redesigning. This is that point.

Since the redesigning will take time and effort it will be good to have a leg up. This leg up is Frozen Bubble 2.20. Frozen Bubble employs a lot of C and Perl hacks to cover up for SDL Perl's lacking. This will help in a sense fast forward the code status to 2008. Since Frozen Bubble is helping us out, we can go one step forward and help it out!

So Alias (Adam Kennedy) and I have started work on making Frozen Bubble CPAN accessible. Frozen Bubble is a well know game and making it cross-platform will bring lots of attention and hopefully contributions to SDL Perl.

In Alias's earlier post about this he mentioned about making a splash and some other stuff. I will talk about how and where we will be accomplishing this task.

First we will be tracking Frozen Bubble on the new SDL Perl Trac website. This site will be similar to Padre's Trac site. As a bonus for people looking to help out in SDL Perl I have separated tasks by perceived difficulty. This will help to breakdown harder task too.

For example for Frozen Bubble the two major bumps we have run into so far are:

Migrating the SDL Perl workarounds: Ticket #3
Making the Build System Portable: Ticket #7

The first one will be difficult as it involves XS. So I will break it down into easier tasks with specific instruction which can then hopefully be picked up by interested contributers. The second one there is sort of a forte of Adam so I will leave it up to him. This is the process I am proposing make hard tickets, break them down.

This will generate a lot of easy tickets that will hopefully be synchronized.  If you are interested in this please give me a shout on #sdl irc.perl.org or the mailing list at sdl-devel@perl.org and I will get you registered.

--yapgh



\ No newline at end of file diff --git a/pages/blog-0008.html-inc b/pages/blog-0008.html-inc index 3914b4b..3edda7c 100644 --- a/pages/blog-0008.html-inc +++ b/pages/blog-0008.html-inc @@ -1,6 +1,6 @@

-Updates, Falling Block Game, and Hack Fest +HackFest: Results

-
Silent but active,
Small but deadly.



Updates

Ok so my blog posts have gone down a bit due to me using my fingers for coding. We have started to get some updates to SDL docs so that good. Also some of the tutorials are shaping up. This is what I have been hacking this past week.









You can grab the code. Note you will have to install deps yourself. Read the README file. It is not a tutorial yet, because it was hacked together in ~50 hours. But it playable now. During building this I found out that MacOSX (and Snow Leopard) has died again.

Hackfest

So with dngor's help this sunday (27/09/09) we will have a hackfest to fix MacOSX support. Anyone with a MacOSX and wants to help is welcome on #sdl irc.perl.org. We will also try to fix up a lot of docs and the tutorial for a early next week release. Also if we can we will migrate to the new site.
\ No newline at end of file +
The beautiful sunset,
is no match for,
the ugly sunrise

Results

On Sunday we had a hackfest on #sdl irc.perl.org. This is what we got done.




  1. MacOSX build is working again. It's still rough but Tetris works on it now. dngor++
  2. SDL::Tutorial::Tetris is on CPAN as v0.15. nferraz++
  3. SDL Perl docs are a little better now. magnet++
  4. Finally experimental Rect and Game::Rect are behaving. There is still more work needed in Game::Rect. Moreover there are more tests on the experimental release. garu++
  5. Also POGL is working experimentally with SDL.
Hopefully I can get the first three results into the next release soon. The next release 2.2.3 will go up as a developmental release first. Also the experimental branch is going up as version 2_4.

Developers

All developers please tell me what to put you guys want to be put down as on the
in the Docs for the SDL Perl Team section.

--yapgh
\ No newline at end of file diff --git a/pages/blog-0009.html-inc b/pages/blog-0009.html-inc index 7372dee..3914b4b 100644 --- a/pages/blog-0009.html-inc +++ b/pages/blog-0009.html-inc @@ -1,6 +1,6 @@

-Thanks nothingmuch, and updates +Updates, Falling Block Game, and Hack Fest

-
struggle,
live,
cease,
die

After a struggling with XS and opaque C structs in the experimental SDL::Rect for a long time. Nothingmuch comes along and solves my problem with this beautiful module XS::Object::Magic. So I will start moving my ugly XS to Magic Land.

SDL Perl Tutorials

This past week I have been working on the sorry state of SDL Perl tutorials. Currently I am working on a Tetris Clone. I am hoping to have it done by next Thrusday for TPM meeting. This tutorial is a mix of several tutorials I found online. Another Lunar Lander tutorial has been submitted by Nelson Ferraz.

If anyone has any really good tutorials for game development (regardless of language) or even request of tutorials. Send it my way I will look into them.

New SDL Perl site

Also we have begin work on a new site. It is still needs work. New Site.

--yapgh


\ No newline at end of file +
Silent but active,
Small but deadly.



Updates

Ok so my blog posts have gone down a bit due to me using my fingers for coding. We have started to get some updates to SDL docs so that good. Also some of the tutorials are shaping up. This is what I have been hacking this past week.









You can grab the code. Note you will have to install deps yourself. Read the README file. It is not a tutorial yet, because it was hacked together in ~50 hours. But it playable now. During building this I found out that MacOSX (and Snow Leopard) has died again.

Hackfest

So with dngor's help this sunday (27/09/09) we will have a hackfest to fix MacOSX support. Anyone with a MacOSX and wants to help is welcome on #sdl irc.perl.org. We will also try to fix up a lot of docs and the tutorial for a early next week release. Also if we can we will migrate to the new site.
\ No newline at end of file diff --git a/pages/blog-0010.html-inc b/pages/blog-0010.html-inc index 5d372f6..7372dee 100644 --- a/pages/blog-0010.html-inc +++ b/pages/blog-0010.html-inc @@ -1,6 +1,6 @@

-Design of SDL::Rect +Thanks nothingmuch, and updates

-

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 +
struggle,
live,
cease,
die

After a struggling with XS and opaque C structs in the experimental SDL::Rect for a long time. Nothingmuch comes along and solves my problem with this beautiful module XS::Object::Magic. So I will start moving my ugly XS to Magic Land.

SDL Perl Tutorials

This past week I have been working on the sorry state of SDL Perl tutorials. Currently I am working on a Tetris Clone. I am hoping to have it done by next Thrusday for TPM meeting. This tutorial is a mix of several tutorials I found online. Another Lunar Lander tutorial has been submitted by Nelson Ferraz.

If anyone has any really good tutorials for game development (regardless of language) or even request of tutorials. Send it my way I will look into them.

New SDL Perl site

Also we have begin work on a new site. It is still needs work. New Site.

--yapgh


\ No newline at end of file diff --git a/pages/blog-0011.html-inc b/pages/blog-0011.html-inc index 18374bc..5d372f6 100644 --- a/pages/blog-0011.html-inc +++ b/pages/blog-0011.html-inc @@ -1,6 +1,6 @@

-Updates and Design Decisions +Design of SDL::Rect

-

Storm clouds loom,
Thunder cracks,
Lightning blinds,
Farmers rejoice.

Some quick updates:
After someone bugged me to update the Ohloh site for SDL perl, I finally got around to doing it.


Some good news:
v2.2.2.11 seems to be doing a good job considering it has been started to be picked up Debian, Mandriva and other packager maintainers. The stats are currently at [PASS(11) FAIL(6) NA(1) UNKNOWN(35)].

Some OK news:
As you can see we have some fails occurring in the smoke tests. This is occurring due to the test on Mixer.pm. Mixer.pm depends on a sound card being available to the user running the test. This can be fixed by adjusting the test to check for sound cards before it runs but I am at a lost on how to do that.
In regards to the unknowns occurring it is due to the *nixes and macs not having SDL libs installed. The will be fixed when Alien::SDL downloads and compiles sources.

Some not-so-great news:
Currently the XS code simplification work requires redesign and there are several different ways of redesigning. This may break backwards compatibility, hopefully we can work around this. Soon we will present the two arguments for the designs in the mailing list.


Until next time here is  a hint of something coming soon (credits go to garu):


--yapgh
\ No newline at end of file +

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 diff --git a/pages/blog-0012.html-inc b/pages/blog-0012.html-inc index bc22120..18374bc 100644 --- a/pages/blog-0012.html-inc +++ b/pages/blog-0012.html-inc @@ -1,6 +1,6 @@

-Why I will be sticking to CPAN +Updates and Design Decisions

-
sculpted in clay,
then fired to glass.


Recently there was really long discussion on sdl-devel@perl.org about providing packages for SDL perl rather than focusing on CPAN releases. The gists of the argument was that SDL perl should be making platform specific packages for end users. I agree with this idea but I do have to face the truth.

The truth is there are very few developers currently working on SDL Perl. The truth is CPAN provides several tools that which currently drives development for SDL Perl. There are people interested in packaging SDL Perl (kmx, jean and Jerome Quelin). The truth is there are other very critical areas we can focus on.

If there are people looking to package SDL Perl for their platform please contact us at sdl-devel@perl.org.
\ No newline at end of file +

Storm clouds loom,
Thunder cracks,
Lightning blinds,
Farmers rejoice.

Some quick updates:
After someone bugged me to update the Ohloh site for SDL perl, I finally got around to doing it.


Some good news:
v2.2.2.11 seems to be doing a good job considering it has been started to be picked up Debian, Mandriva and other packager maintainers. The stats are currently at [PASS(11) FAIL(6) NA(1) UNKNOWN(35)].

Some OK news:
As you can see we have some fails occurring in the smoke tests. This is occurring due to the test on Mixer.pm. Mixer.pm depends on a sound card being available to the user running the test. This can be fixed by adjusting the test to check for sound cards before it runs but I am at a lost on how to do that.
In regards to the unknowns occurring it is due to the *nixes and macs not having SDL libs installed. The will be fixed when Alien::SDL downloads and compiles sources.

Some not-so-great news:
Currently the XS code simplification work requires redesign and there are several different ways of redesigning. This may break backwards compatibility, hopefully we can work around this. Soon we will present the two arguments for the designs in the mailing list.


Until next time here is  a hint of something coming soon (credits go to garu):


--yapgh
\ No newline at end of file diff --git a/pages/blog-0013.html-inc b/pages/blog-0013.html-inc index 9d2f12c..bc22120 100644 --- a/pages/blog-0013.html-inc +++ b/pages/blog-0013.html-inc @@ -1,6 +1,6 @@

-Frozen Bubble coming to CPAN +Why I will be sticking to CPAN

-
The frozen wind,
made me shiver,
with excitement.

There has been some interest in making Frozen Bubble cross platform so I have forked Frozen Bubble v2.0 to my github repo. Any contributors are welcome! I will eventually be removing hacks that were needed to make Frozen Bubble work with the old SDL perl. The plan is to make Frozen Bubble cross platform by removing platform specific hacks and dependencies. One of the major switch will be from BSD sockets to SDL_net through SDL perl or XS. The main goal would be to be able to do 
cpan install FrozenBubble
To do this the Makefile.PL will need to be rewritten a little bit. Moreover we will need to make test using code from Frozen Bubble so that it can be smoke tested on CPAN.  If contributors need more information please contact me.
\ No newline at end of file +
sculpted in clay,
then fired to glass.


Recently there was really long discussion on sdl-devel@perl.org about providing packages for SDL perl rather than focusing on CPAN releases. The gists of the argument was that SDL perl should be making platform specific packages for end users. I agree with this idea but I do have to face the truth.

The truth is there are very few developers currently working on SDL Perl. The truth is CPAN provides several tools that which currently drives development for SDL Perl. There are people interested in packaging SDL Perl (kmx, jean and Jerome Quelin). The truth is there are other very critical areas we can focus on.

If there are people looking to package SDL Perl for their platform please contact us at sdl-devel@perl.org.
\ No newline at end of file diff --git a/pages/blog-0014.html-inc b/pages/blog-0014.html-inc index 2fd0e2b..9d2f12c 100644 --- a/pages/blog-0014.html-inc +++ b/pages/blog-0014.html-inc @@ -1,6 +1,6 @@

-Newbie Friendly Perl Projects +Frozen Bubble coming to CPAN

-
A seed needs soft soil and water to grow
This is a reply to szabgab's post on how to get newbies interested in Perl modules. Being a newbie in Perl myself I thought I should take a shot.

I was thinking you can make projects more accessible to newbies by having a step by step plan included with where they need to look. For example for docs of SDL_perl:
  1. Look at SDL docs [link]
  2. See where SDL_perl is using the same functions [link] and the docs to this file [link]
  3. Use the pod format to add it to the source [link to using pod]
  4. {BONUS} Come up with tutorial or cookbook [link to example]
  5. Submit code to github [link] or email them to me [link]

Basically assume nothing is known. I know this may seem demeaning but I am a newbie to Perl and sometimes I hate looking for crust (docs). I call it crust because a crust is useful for me to eat a pizza slice, but it has no flavor .

--yapgh
\ No newline at end of file +
The frozen wind,
made me shiver,
with excitement.

There has been some interest in making Frozen Bubble cross platform so I have forked Frozen Bubble v2.0 to my github repo. Any contributors are welcome! I will eventually be removing hacks that were needed to make Frozen Bubble work with the old SDL perl. The plan is to make Frozen Bubble cross platform by removing platform specific hacks and dependencies. One of the major switch will be from BSD sockets to SDL_net through SDL perl or XS. The main goal would be to be able to do 
cpan install FrozenBubble
To do this the Makefile.PL will need to be rewritten a little bit. Moreover we will need to make test using code from Frozen Bubble so that it can be smoke tested on CPAN.  If contributors need more information please contact me.
\ No newline at end of file diff --git a/pages/blog-0015.html-inc b/pages/blog-0015.html-inc index bdbb62b..2fd0e2b 100644 --- a/pages/blog-0015.html-inc +++ b/pages/blog-0015.html-inc @@ -1,6 +1,6 @@

-Can someone please point me to good XS documentation! +Newbie Friendly Perl Projects

-A poor man begs,
A troubled man prays,
who shall answer?




This is the first time perldoc has disappointed me. The example on perlxs is wrong and fails. I do not wish to flame writers of perlxs but please check that your examples work! Ironically I know that broken tutorials is a problem with SDL perl too.

If anyone can point me to the simplest working exaple of XS with a c struct, it would be greatly appreciated.

\ No newline at end of file +
A seed needs soft soil and water to grow
This is a reply to szabgab's post on how to get newbies interested in Perl modules. Being a newbie in Perl myself I thought I should take a shot.

I was thinking you can make projects more accessible to newbies by having a step by step plan included with where they need to look. For example for docs of SDL_perl:
  1. Look at SDL docs [link]
  2. See where SDL_perl is using the same functions [link] and the docs to this file [link]
  3. Use the pod format to add it to the source [link to using pod]
  4. {BONUS} Come up with tutorial or cookbook [link to example]
  5. Submit code to github [link] or email them to me [link]

Basically assume nothing is known. I know this may seem demeaning but I am a newbie to Perl and sometimes I hate looking for crust (docs). I call it crust because a crust is useful for me to eat a pizza slice, but it has no flavor .

--yapgh
\ No newline at end of file diff --git a/pages/blog-0016.html-inc b/pages/blog-0016.html-inc index e2a1213..bdbb62b 100644 --- a/pages/blog-0016.html-inc +++ b/pages/blog-0016.html-inc @@ -1,6 +1,6 @@

-More Games + Update +Can someone please point me to good XS documentation!

-

idle digits,
play,
away,
idle digits.

So while I am hacking away on v2.4 and breaking a lot of things. Here is a link to some more games for SDL Perl. These only work in windows now but I will look into bringing them to CPAN (with Garry's permission).

--yapgh

These where reported by Garry Taylor. Here is the rest of the email:

Hi all,
I hadn't checked this newsgroup in a while and was happy to see
that it still alive and well. I saw that some people had been sharing
some SDL Perl games online, and I had a few to share as well. At
"http://home.comcast.net/~g.f.taylor/GarrysGames.html" you can find four
games I have written as well as a simple flip book program to let a
child play at making animation on the computer. The games are "Toad" (a
Frogger wanna be), "RabbitHat" (like Centipede), "BunnyHunt" (sort of
like Pac-Man) and "Bonk The Buggies". All (with the exception of Toad
which in its very first incarnation was a game I wrote in TRS-80 Basic
back in 1981) were written originally to run on my Windows 3.11 PC for
my little girl so that she could play games which were not quite so
violent as games were starting to become at the time.


A few years ago I got the idea of trying to get them to run again
by rewriting them in Perl. The downloads are Windows XP/Vista installs
which include a bare bones Perl environment for running the games (the
installs put the code into its own separate place, and shouldn't
interfere with your existing Perl setups). I did this so that I could
share the games with friends and family who either don't have SDL
installed, don't have Perl installed, or don't do any programming and
just needed something that will run. The code as it currently stands
was not written for general publication, so there are probably places
where the Perl code itself is not always the best looking it could be,
but the games themselves work pretty well. Also, it is worth noting
that I wound up being lazy and made a few additions to the Perl SDL code
that I was using to add an additional function or two for printing text
onto the screen that was centered or right aligned.


While I have not made any Unix installs for the code, I have
actually run the games on a few Linux machines that I have access to,
where I also had installed SDL. I have not updated my SDL installs in
several years now, so there may be complications that arise if running
it with a new version of SDL.


I hope you enjoy the games (or at least aren't too mean about it
if you don't).
Garry Taylor
\ No newline at end of file +A poor man begs,
A troubled man prays,
who shall answer?




This is the first time perldoc has disappointed me. The example on perlxs is wrong and fails. I do not wish to flame writers of perlxs but please check that your examples work! Ironically I know that broken tutorials is a problem with SDL perl too.

If anyone can point me to the simplest working exaple of XS with a c struct, it would be greatly appreciated.

\ No newline at end of file diff --git a/pages/blog-0017.html-inc b/pages/blog-0017.html-inc index e2aa177..e2a1213 100644 --- a/pages/blog-0017.html-inc +++ b/pages/blog-0017.html-inc @@ -1,6 +1,6 @@

-Updates on Plan for v2.4 +More Games + Update

-
A fierce storm came,
With a crash,
Old oaks went lame.

After some hunting for memory leaks, it became obvious that some rewrite of XS will be necessary. Since this will be a big undertaking I asked for some help from chromatic and garu. We came up with the following plan for v2.4.


Currently all XS is mapped to the SDL_perl module. This does not reflect the modular nature of the sdl libs. So the plan is to gradually move SDL structs and their respective functions to their correct namespaces. We will start with SDL::Rect as garu has added many tests for it. This way the build system will be a lot easier to hack since Module::Build was made for one XS per module. Moreover we will move the Build utilities to Alien::SDL, making it even simpler. The main idea is to adhere to single responsibility principle and encapsulation.


Obviously this will take some time and effort, but it will pay off in the long run. Any help will be greatly appreciated.

--yapgh
\ No newline at end of file +

idle digits,
play,
away,
idle digits.

So while I am hacking away on v2.4 and breaking a lot of things. Here is a link to some more games for SDL Perl. These only work in windows now but I will look into bringing them to CPAN (with Garry's permission).

--yapgh

These where reported by Garry Taylor. Here is the rest of the email:

Hi all,
I hadn't checked this newsgroup in a while and was happy to see
that it still alive and well. I saw that some people had been sharing
some SDL Perl games online, and I had a few to share as well. At
"http://home.comcast.net/~g.f.taylor/GarrysGames.html" you can find four
games I have written as well as a simple flip book program to let a
child play at making animation on the computer. The games are "Toad" (a
Frogger wanna be), "RabbitHat" (like Centipede), "BunnyHunt" (sort of
like Pac-Man) and "Bonk The Buggies". All (with the exception of Toad
which in its very first incarnation was a game I wrote in TRS-80 Basic
back in 1981) were written originally to run on my Windows 3.11 PC for
my little girl so that she could play games which were not quite so
violent as games were starting to become at the time.


A few years ago I got the idea of trying to get them to run again
by rewriting them in Perl. The downloads are Windows XP/Vista installs
which include a bare bones Perl environment for running the games (the
installs put the code into its own separate place, and shouldn't
interfere with your existing Perl setups). I did this so that I could
share the games with friends and family who either don't have SDL
installed, don't have Perl installed, or don't do any programming and
just needed something that will run. The code as it currently stands
was not written for general publication, so there are probably places
where the Perl code itself is not always the best looking it could be,
but the games themselves work pretty well. Also, it is worth noting
that I wound up being lazy and made a few additions to the Perl SDL code
that I was using to add an additional function or two for printing text
onto the screen that was centered or right aligned.


While I have not made any Unix installs for the code, I have
actually run the games on a few Linux machines that I have access to,
where I also had installed SDL. I have not updated my SDL installs in
several years now, so there may be complications that arise if running
it with a new version of SDL.


I hope you enjoy the games (or at least aren't too mean about it
if you don't).
Garry Taylor
\ No newline at end of file diff --git a/pages/blog-0018.html-inc b/pages/blog-0018.html-inc index 298a7b6..e2aa177 100644 --- a/pages/blog-0018.html-inc +++ b/pages/blog-0018.html-inc @@ -1,6 +1,6 @@

-Code is not the only thing +Updates on Plan for v2.4

-

I did,
no one cared,
I spoke,
no one heard,
I wrote,
someone read.


After only several weeks of maintaining SDL perl, Today I have come to noticed how important it is to update README's, docs and so on. I will redouble my effort to do this.


However I am not sure where to start updating docs. Has anyone re-documented old modules before? Any advice? If anyone is interested in helping me to sort out documentation please contact me on sdl-devel@perl.org. For people wanting to learn the SDL base there is no better way.

\ No newline at end of file +
A fierce storm came,
With a crash,
Old oaks went lame.

After some hunting for memory leaks, it became obvious that some rewrite of XS will be necessary. Since this will be a big undertaking I asked for some help from chromatic and garu. We came up with the following plan for v2.4.


Currently all XS is mapped to the SDL_perl module. This does not reflect the modular nature of the sdl libs. So the plan is to gradually move SDL structs and their respective functions to their correct namespaces. We will start with SDL::Rect as garu has added many tests for it. This way the build system will be a lot easier to hack since Module::Build was made for one XS per module. Moreover we will move the Build utilities to Alien::SDL, making it even simpler. The main idea is to adhere to single responsibility principle and encapsulation.


Obviously this will take some time and effort, but it will pay off in the long run. Any help will be greatly appreciated.

--yapgh
\ No newline at end of file diff --git a/pages/blog-0019.html-inc b/pages/blog-0019.html-inc index 720d4f0..298a7b6 100644 --- a/pages/blog-0019.html-inc +++ b/pages/blog-0019.html-inc @@ -1,6 +1,6 @@

-SDL Perl v2.2.2 out and Plans for v2.4 +Code is not the only thing

-
The early bird may get the worm,
and the second mouse may get the cheese,
but I want neither the worm nor the cheese,
'cause I am not a mouse or a bird.



       I have release v2.2.2 which includes several bug fixes:

  • Made App loop() faster RT 
  • Patched support for add support for gluquadric* sub RT 
  • Made App init slimer RT 
  • Added faster SDL::Color alternative RT 
  • Added better error reporting for TTFont errors
  • Added experimental win32 support RT [Update: v2.2.2.5 is better for windows support]
You can grab this release off CPAN.

This is still a stopover to the major release v2.4. Which will hope fully solve the memory leaks problems.


--yapgh
\ No newline at end of file +

I did,
no one cared,
I spoke,
no one heard,
I wrote,
someone read.


After only several weeks of maintaining SDL perl, Today I have come to noticed how important it is to update README's, docs and so on. I will redouble my effort to do this.


However I am not sure where to start updating docs. Has anyone re-documented old modules before? Any advice? If anyone is interested in helping me to sort out documentation please contact me on sdl-devel@perl.org. For people wanting to learn the SDL base there is no better way.

\ No newline at end of file diff --git a/pages/blog-0020.html-inc b/pages/blog-0020.html-inc index da0846f..720d4f0 100644 --- a/pages/blog-0020.html-inc +++ b/pages/blog-0020.html-inc @@ -1,6 +1,6 @@

-Catching memory leaks in XS +SDL Perl v2.2.2 out and Plans for v2.4

-
 I slay dragons, yonder

So I am trying to find and plug memory leaks in SDL perl. Most of the memory leaks occur because in XS a reference is still held. One very expensive mem leak was caught by TELS really early on here. The problem occurs where in XS there is

RETVAL = (cast *) safemalloc( ... );
 and safefree(...) is never called.
Here is a in code example lines 1082 on.

My question is how I can mitigate these memory leaks? One idea I had was to store all malloc'd pointers to an array that is safefree'd on DESTROY or hooked into perl GC somehow .


Any guidance is helpful.

--yapgh
\ No newline at end of file +
The early bird may get the worm,
and the second mouse may get the cheese,
but I want neither the worm nor the cheese,
'cause I am not a mouse or a bird.



       I have release v2.2.2 which includes several bug fixes:

You can grab this release off CPAN.

This is still a stopover to the major release v2.4. Which will hope fully solve the memory leaks problems.


--yapgh
\ No newline at end of file diff --git a/pages/blog-0021.html-inc b/pages/blog-0021.html-inc index c789e70..da0846f 100644 --- a/pages/blog-0021.html-inc +++ b/pages/blog-0021.html-inc @@ -1,6 +1,6 @@

-Alien::SDL 0.01 released!!! +Catching memory leaks in XS

-
I just code
don't know where it leads
or
how I will get there
I just code


With yesterday's frantic coding to get windows compatibility setup we were left with a very crude way of installing. After some late night hacking I finally came up with Alias's suggestion to have Alien::SDL. All thanks to Alias's  generous access to his windows farm, I was able to make a easier module to install SDL deps on windows. Future plans are in place to get sources and compile them for other platform.Hopefully a SDL perl release will be out soon to use Alien::SDL now.


The above script is in test/testsprite.pl.

Until then you can do:

in cpan
cpan> install File::Fetch
cpan> install Archive::Extract
cpan> install Alien::SDL

and in cmd
pip http://cloud.github.com/downloads/kthakore/SDL_perl/SDL_Perl-v2.2.2.tar.gz


Please post any feedback here.

Enjoy,
yapgh
\ No newline at end of file +
 I slay dragons, yonder

So I am trying to find and plug memory leaks in SDL perl. Most of the memory leaks occur because in XS a reference is still held. One very expensive mem leak was caught by TELS really early on here. The problem occurs where in XS there is

RETVAL = (cast *) safemalloc( ... );
 and safefree(...) is never called.
Here is a in code example lines 1082 on.

My question is how I can mitigate these memory leaks? One idea I had was to store all malloc'd pointers to an array that is safefree'd on DESTROY or hooked into perl GC somehow .


Any guidance is helpful.

--yapgh
\ No newline at end of file diff --git a/pages/blog-0022.html-inc b/pages/blog-0022.html-inc index 3ac3dc1..c789e70 100644 --- a/pages/blog-0022.html-inc +++ b/pages/blog-0022.html-inc @@ -1,6 +1,6 @@

-SDL perl is coming to Strawberry!! +Alien::SDL 0.01 released!!!

-
I am a part of all that I have met. --Alfred Tennyson
 
I hope I am not jumping the gun but it looks good.  This is all thanks to kmx!!

Here is an obligatory pic since my last post on this matter. (That is one of the test script you can run for test/ in the distrobution).



You can follow the history here.

It has been tested on winXP 32/64 bit strawberry so far. Here is how you can get it.

  1. Go here to get the code 
  2. Click download, choose .tar.gz
  3. Save the resultant kthakore....tar.gz somewhere
  4. Get this and extract it on C:/strawberry/
  5. Last do pip kthakore......tar.gz (I find this so amazing!!)
  6. Play with C:/strawberry/cpan/build/SDL/test/*.pl 
Enjoy
--yapgh
\ No newline at end of file +
I just code
don't know where it leads
or
how I will get there
I just code


With yesterday's frantic coding to get windows compatibility setup we were left with a very crude way of installing. After some late night hacking I finally came up with Alias's suggestion to have Alien::SDL. All thanks to Alias's  generous access to his windows farm, I was able to make a easier module to install SDL deps on windows. Future plans are in place to get sources and compile them for other platform.Hopefully a SDL perl release will be out soon to use Alien::SDL now.


The above script is in test/testsprite.pl.

Until then you can do:

in cpan
cpan> install File::Fetch
cpan> install Archive::Extract
cpan> install Alien::SDL

and in cmd
pip http://cloud.github.com/downloads/kthakore/SDL_perl/SDL_Perl-v2.2.2.tar.gz


Please post any feedback here.

Enjoy,
yapgh
\ No newline at end of file diff --git a/pages/blog-0023.html-inc b/pages/blog-0023.html-inc index de898c4..3ac3dc1 100644 --- a/pages/blog-0023.html-inc +++ b/pages/blog-0023.html-inc @@ -1,6 +1,6 @@

-My milestones (itches) for gaming in Perl +SDL perl is coming to Strawberry!!

-

As a young sprout in spring,
the soil is moist,
and the sun bright.


But as fall comes,
with fading leaves,
my roots keep me standing. 



As a new Perl developer I am able to contribute with great enthusiasm due to the great community and the fancies of the language. However I know that these things will fade and I will need something else to take the place. Usually what has worked for me in the past was to set milestones. These will act as roots, keeping me interested in being involved. After all in words better than mines.
We all “scratch our own itches”. It’s why I started Linux, it’s why I started git, and it’s why I am still involved. --Linus

So here are my evolving milestones for Gaming in Perl:
  • Make Tetris,Pong, so on [soon-ish]
    • Hack it until its Perly (shows the power Perl can provide for games)
  • Do game-a-thon [Starting January 2010]
    • Simply
      • Get two random words (Warp + hole = portal)
      • Make a small game
      • Every week for 52 weeks
  • Use the results from this to make some Perl specific tools [Parallel to game-a-thon]
    • SDL::Game 
--signed YAPGH
\ No newline at end of file +
I am a part of all that I have met. --Alfred Tennyson
 
I hope I am not jumping the gun but it looks good.  This is all thanks to kmx!!

Here is an obligatory pic since my last post on this matter. (That is one of the test script you can run for test/ in the distrobution).



You can follow the history here.

It has been tested on winXP 32/64 bit strawberry so far. Here is how you can get it.

  1. Go here to get the code 
  2. Click download, choose .tar.gz
  3. Save the resultant kthakore....tar.gz somewhere
  4. Get this and extract it on C:/strawberry/
  5. Last do pip kthakore......tar.gz (I find this so amazing!!)
  6. Play with C:/strawberry/cpan/build/SDL/test/*.pl 
Enjoy
--yapgh
\ No newline at end of file diff --git a/pages/blog-0024.html-inc b/pages/blog-0024.html-inc index eedb7a0..de898c4 100644 --- a/pages/blog-0024.html-inc +++ b/pages/blog-0024.html-inc @@ -1,6 +1,6 @@

-SDL Perl Windows Status +My milestones (itches) for gaming in Perl

-Hello windows users,

Here is a simple picture explaining the status of SDL Perl on windows. I am hoping this changes. I know that Alias is interested in this too.

Here are steps needed to solve this:
  1. Find out exactly what gcc flags are needed to make this work with strawberry's toolchain
  2. Get the deps here. Put the deps in C:/strawberry/c.
  3. Try to make a Module::Build script work for win32 and win64 (There are differences apparently)
  4. Try and emulate this in our current build system ( make/lib/Build.pm, and make/lib/Build/Win32.pm )
  5. Give me a shout on RT or sdl-devel@perl.org ( even if you just make it to 3.)
  6. Enjoy SDL and lots of ++ from Alias, CSJewell and SDL_perl devs.
There easy as pie
\ No newline at end of file +

As a young sprout in spring,
the soil is moist,
and the sun bright.


But as fall comes,
with fading leaves,
my roots keep me standing. 



As a new Perl developer I am able to contribute with great enthusiasm due to the great community and the fancies of the language. However I know that these things will fade and I will need something else to take the place. Usually what has worked for me in the past was to set milestones. These will act as roots, keeping me interested in being involved. After all in words better than mines.
We all “scratch our own itches”. It’s why I started Linux, it’s why I started git, and it’s why I am still involved. --Linus

So here are my evolving milestones for Gaming in Perl:
--signed YAPGH
\ No newline at end of file diff --git a/pages/blog-0025.html-inc b/pages/blog-0025.html-inc new file mode 100644 index 0000000..eedb7a0 --- /dev/null +++ b/pages/blog-0025.html-inc @@ -0,0 +1,6 @@ +
+

+SDL Perl Windows Status +

+
+Hello windows users,

Here is a simple picture explaining the status of SDL Perl on windows. I am hoping this changes. I know that Alias is interested in this too.

Here are steps needed to solve this:
  1. Find out exactly what gcc flags are needed to make this work with strawberry's toolchain
  2. Get the deps here. Put the deps in C:/strawberry/c.
  3. Try to make a Module::Build script work for win32 and win64 (There are differences apparently)
  4. Try and emulate this in our current build system ( make/lib/Build.pm, and make/lib/Build/Win32.pm )
  5. Give me a shout on RT or sdl-devel@perl.org ( even if you just make it to 3.)
  6. Enjoy SDL and lots of ++ from Alias, CSJewell and SDL_perl devs.
There easy as pie
\ No newline at end of file diff --git a/pages/blog-index.html.inc b/pages/blog-index.html.inc index 2a45517..6e733d2 100644 --- a/pages/blog-index.html.inc +++ b/pages/blog-index.html.inc @@ -1,2 +1 @@ -
-Once in a while .... (set_event_filter)

Hello Mouse? An Example of the New Event Code

Development Update

Development Update

The Future and Beyond!

The beginnings of modular design for SDL Perl

Why and How Frozen Bubble is going to CPAN

HackFest: Results

Updates, Falling Block Game, and Hack Fest

Thanks nothingmuch, and updates

Design of SDL::Rect

Updates and Design Decisions

Why I will be sticking to CPAN

Frozen Bubble coming to CPAN

Newbie Friendly Perl Projects

Can someone please point me to good XS documentation!

More Games + Update

Updates on Plan for v2.4

Code is not the only thing

SDL Perl v2.2.2 out and Plans for v2.4

Catching memory leaks in XS

Alien::SDL 0.01 released!!!

SDL perl is coming to Strawberry!!

My milestones (itches) for gaming in Perl

SDL Perl Windows Status

+SDL Perl Windows Status

\ No newline at end of file diff --git a/pages/tags-index b/pages/tags-index index 14c4149..32c4c52 100644 --- a/pages/tags-index +++ b/pages/tags-index @@ -1,17 +1,17 @@ -Alien: blog-0021.html-inc -CPAN: blog-0012.html-inc,blog-0013.html-inc,blog-0014.html-inc -Design: blog-0004.html-inc,blog-0005.html-inc,blog-0009.html-inc,blog-0010.html-inc,blog-0011.html-inc -Docs: blog-0008.html-inc -Frozen Bubble: blog-0006.html-inc,blog-0013.html-inc -HackFest: blog-0007.html-inc -Perl: blog-0000.html-inc,blog-0001.html-inc,blog-0002.html-inc,blog-0003.html-inc,blog-0006.html-inc,blog-0007.html-inc,blog-0008.html-inc,blog-0009.html-inc,blog-0010.html-inc,blog-0011.html-inc,blog-0012.html-inc,blog-0013.html-inc,blog-0014.html-inc,blog-0015.html-inc,blog-0016.html-inc,blog-0017.html-inc,blog-0018.html-inc,blog-0019.html-inc,blog-0020.html-inc,blog-0021.html-inc,blog-0022.html-inc,blog-0023.html-inc,blog-0024.html-inc -Questions: blog-0018.html-inc -Releases: blog-0021.html-inc,blog-0022.html-inc -SDL: blog-0000.html-inc,blog-0001.html-inc,blog-0002.html-inc,blog-0003.html-inc,blog-0004.html-inc,blog-0005.html-inc,blog-0006.html-inc,blog-0007.html-inc,blog-0008.html-inc,blog-0009.html-inc,blog-0010.html-inc,blog-0011.html-inc,blog-0012.html-inc,blog-0013.html-inc,blog-0014.html-inc,blog-0016.html-inc,blog-0017.html-inc,blog-0018.html-inc,blog-0019.html-inc,blog-0020.html-inc,blog-0021.html-inc,blog-0022.html-inc,blog-0023.html-inc,blog-0024.html-inc -Sneak Preview: blog-0001.html-inc -Strawberry: blog-0024.html-inc -Tutorial: blog-0009.html-inc,blog-0015.html-inc -Updates: blog-0002.html-inc,blog-0003.html-inc,blog-0004.html-inc,blog-0005.html-inc,blog-0011.html-inc,blog-0017.html-inc -XS: blog-0000.html-inc,blog-0015.html-inc -games: blog-0004.html-inc,blog-0016.html-inc -personal: blog-0014.html-inc,blog-0023.html-inc +Alien: blog-0022.html-inc +CPAN: blog-0013.html-inc,blog-0014.html-inc,blog-0015.html-inc +Design: blog-0005.html-inc,blog-0006.html-inc,blog-0010.html-inc,blog-0011.html-inc,blog-0012.html-inc +Docs: blog-0009.html-inc +Frozen Bubble: blog-0007.html-inc,blog-0014.html-inc +HackFest: blog-0008.html-inc +Perl: blog-0001.html-inc,blog-0002.html-inc,blog-0003.html-inc,blog-0004.html-inc,blog-0007.html-inc,blog-0008.html-inc,blog-0009.html-inc,blog-0010.html-inc,blog-0011.html-inc,blog-0012.html-inc,blog-0013.html-inc,blog-0014.html-inc,blog-0015.html-inc,blog-0016.html-inc,blog-0017.html-inc,blog-0018.html-inc,blog-0019.html-inc,blog-0020.html-inc,blog-0021.html-inc,blog-0022.html-inc,blog-0023.html-inc,blog-0024.html-inc,blog-0025.html-inc +Questions: blog-0019.html-inc +Releases: blog-0022.html-inc,blog-0023.html-inc +SDL: blog-0001.html-inc,blog-0002.html-inc,blog-0003.html-inc,blog-0004.html-inc,blog-0005.html-inc,blog-0006.html-inc,blog-0007.html-inc,blog-0008.html-inc,blog-0009.html-inc,blog-0010.html-inc,blog-0011.html-inc,blog-0012.html-inc,blog-0013.html-inc,blog-0014.html-inc,blog-0015.html-inc,blog-0017.html-inc,blog-0018.html-inc,blog-0019.html-inc,blog-0020.html-inc,blog-0021.html-inc,blog-0022.html-inc,blog-0023.html-inc,blog-0024.html-inc,blog-0025.html-inc +Sneak Preview: blog-0002.html-inc +Strawberry: blog-0025.html-inc +Tutorial: blog-0010.html-inc,blog-0016.html-inc +Updates: blog-0003.html-inc,blog-0004.html-inc,blog-0005.html-inc,blog-0006.html-inc,blog-0012.html-inc,blog-0018.html-inc +XS: blog-0001.html-inc,blog-0016.html-inc +games: blog-0005.html-inc,blog-0017.html-inc +personal: blog-0015.html-inc,blog-0024.html-inc