X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0014.html-inc;h=2bd84fc7f40913acd9708e68ac8f58773c028455;hb=1d5d4d44a3acf89f7820195b5016f4ebc4489250;hp=e65be37dd7211e92b433042690e9c72fb1ba4899;hpb=56d4907c407e8564b4a8a9d09e252573131fad3e;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0014.html-inc b/pages/blog-0014.html-inc index e65be37..2bd84fc 100644 --- a/pages/blog-0014.html-inc +++ b/pages/blog-0014.html-inc @@ -1,36 +1,40 @@

-Hello Mouse? An Example of the New Event Code +Getting people to use SDL Perl: Docs, API, and Distribution

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

-

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

The road so far


+Things have been busy but fruitful. Our two core modules are getting to be a bit more stable. Alien::SDL 1.405 is behaving well. This foundational stability will start to show results in SDL too I believe. Most excitingly the main developer of frozen-bubble is reviewing our Games::FrozenBubble port to CPAN. All good and well, but to keep this project going we need to improve.

-
#!/usr/bin/env perl
+

Getting people to use SDL Perl


+After a long chat with a new SDL user on #sdl today, I realize we still have some way to go. Currently it seems we are lacking in a few areas. We can definitely use some feedback and help in these areas.
+
+
  • Tutorials/Documentation
    +
  • + +
    • We have more docs now on http://sdl.perl.org but they suck
    • +
    • What type of tutorials do you think will be good for beginners?
    • + +
      • A project start to finish?
      • +
      • Individual tutorials for various topics?
      • +
      • What needs to go in SDL::CookBook?
      • +
    +
  • API sweetness
  • -use SDL; -use SDL::Events; -use SDL::Event; -use SDL::Video; +
    • SDL Perl depends on distinct C libraries
    • -SDL::init(SDL_INIT_VIDEO); +
      • This makes naming conventions, data formats different the SDL:: namespaces
      • +
      • How do people design this stuff?
      • -my $display = SDL::Video::set_video_mode(640,480,32, SDL_SWSURFACE ); -my $event = SDL::Event->new(); +
        • We are hackers and we just go do stuff but I think this needs some prior thought
        • +
        • Any takers?
        • +
    +
  • Distribution
  • -while(1) -{ - SDL::Events::pump_events(); +
    • If SDL scripts can be packaged up simply for game developers to distribute their games it will be a big plus
    • - 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 +
If anyone wants to help in these areas please talk to us on sdl-devel@perl.org. 
+


+

\ No newline at end of file