fachtnaroe.net
— because if it was easy, everyone would do it

  • Credits : John Sheehan and John Cottle

Coding is one of the highest art forms achieved by mankind; an idea - just an electrical impulse - is made real in an alternate electronic universe; the created idea however, does not have physical form, and yet can change the physical world; it cannot be touched, and yet may touch all mankind.

Games Studies

The module is designed to provide the learner with the knowledge and skills to analyse and critique computer based games and create their own computer based games.

perl SDL samples to get started

  1. Basic SDL game + event loop
  2. Same as above, but with an image drawn in the foreground also
  3. Same as #1 above, but with mouse location displayed as text
  4. Same as #2 above, but the foreground item is redrawn at mouse
  5. The foreground item is resized to fit a rectangle; uses arrow keys
  6. Re-drawing only a portion of the screen (using a cover rectangle)
  7. Lunar Lander - 'official' demo program
  8. SDLx::App user constructed ('manual') game loop with two characters
  9. SDLx::App controller ('automatic') game loop with callbacks
  10. Simple audio starter
  11. Simple(-istic?) collision detection
  12. Game loop timing
  13. Pixel-color detection
  14. Pixel-color based navigation/collision detection
  15. Simple callback based projectiles
  16. Modified cursor
  17. Multiple bad-guys, multiple projectiles sample
  18. xbox sample code for the above

Simple DirectMedia Layer (SDL)

  1. Install SDL for perl
  2. SDL perl
  3. Games programming: Perl and SDL
  4. OpenGL (Graphics) Programming
  5. 3D Graphics Programming In Perl
  6. Building a 3D Engine in Perl
  7. A complete tutorial for SDL (PDF) (original)

Sample data structures

  1. 2D array for 'battleships'

GIMP ideas

  1. Image showing how to get a game grid in gimp
    and some info on how to use that

CPAN

  1. SDL modules (there's quite a few; scan the list to find what you want to do)
  2. SDLx modules (these make SDL even easier)
  3. SDLx::App - you'll probably start with this
  4. SDL::Event - the events that occur in-game
  5. SDL::Events - to access the game events

Perl Books (All from O'Reilly Books):

  1. Learning Perl
  2. Perl in a Nutshell (the 'official' book)
  3. Programming Perl
  4. Advanced Perl Programming
  5. Perl Cookbook
  6. Learning Perl on Win32
  7. Perl for System Administration"

Media

  1. Sound Bible.com
  2. .WAV files (audio)
  3. Royalty-Free Music
  4. freeplaymusic.com
  5. Make your own music

Worth looking at

Enabling a games-console controller.

Wii remote

yum install cwiid cwiid-utils libwiimote wiiuse
is a good start. Once that's installed the command wmgui will be available.

If you can't connect the wii immediately, try using the reset button in the wii battery compartment. Also make sure that the wiimote is not already paired with your computer.

At the very least, the wiimote can be mapped to behave like the arrow keys on the keyboard. Press some buttons and see...

xbox controller

yum install xboxdrv
is the starting point here. Biggest problem seems to be the need to run the xboxdrv command as root.

man xboxdrv will give a lot of information about the program. This:
sudo xboxdrv --type xbox --ui-axismap x1=KEY_LEFT:KEY_RIGHT,y2=KEY_UP:KEY_DOWN --ui-buttonmap guide=KEY_X --detach-kernel-driver ./spaceChase
is one sample command that has worked for me to run the spaceChase sample game.

Current Year

Assessment 2014/2015

  • Deadly Dolphin
  • Edible Elephant
  • Exploding Kitten
  • Fanatic Flying Fox
  • Flying Fuzzy Merkel
  • Funky Hippo
  • Gravity Goose
  • Laser-guided Love-Puppy
  • Manic Mole
  • Megalomaniac-al Marsupial
  • Meter Fairy
  • Slippery Elephant

Previous Years

Click here.

Related

Last updated: 20150430-11:01