X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2Fblog-0018.html-inc;h=21af3c62575cc586c0963c4e159ff88dcc5aae7f;hb=d6a8ee088684c80264483be3fe6c8d5654d0328b;hp=e2a12132deda8dc7992dbbc6b6d8e85c9e71637a;hpb=6e0d970b5047980a17d230b86d5c27c49213d18c;p=sdlgit%2FSDL-Site.git diff --git a/pages/blog-0018.html-inc b/pages/blog-0018.html-inc index e2a1213..21af3c6 100644 --- a/pages/blog-0018.html-inc +++ b/pages/blog-0018.html-inc @@ -1,6 +1,38 @@

-More Games + Update +Perl+SDL 3D Rendering

-

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 +Recently we have done a lot of work on the next release of SDL Perl. But it all pays off when I see users do cool things as one of the users has done below. Talon^++! This project is a great example for people wanting to learn 3D from scratch.
+
+--yapgh
+
+
This was a project to test how well Perl+SDL performs and does not use OpenGL at all. This is all perl and SDL, with the help of libsdl_gfx for SDL::GFX::Primitives. Texture mapping doesn't use SDL::GFX::Primitives because textured_polygon just takes a surface, tiles it, and clips out the polygon, which doesn't look 3D at all.
+
+Below are some screen shots of this little toy in action. If you'd like to try it yourself, you can download the entire project here. You can rotate the objects with the mouse, or keyboard arrows. Also press shift to toggle shading and space to switch objects.
+
+NOTE: the project is compressed in the .tgz format, if you are a windows user, you may need a tool like 7zip to extract the contents.
+
+
Standard Cube:
+

+

Standard Cube with Pseudo Shading:
+
+

+

Standard Diamond:
+
+

+

Standard Diamond with Pseudo Shading:
+
+

+

Textured Cube:
+
+

+

Perspectively Correct Textured Cube:
+
+

+

Perspectively Correct Textured Cube with shading:
+
+

+
+


+

\ No newline at end of file