SlideServe
Menu
Préférences
© SlideServe · v2026

Perl Space Command: A 2D Space Game in Perl

rich avatar
5 diapositives · 170 Views · Oct 15, 2014

Enjoy a space adventure game written in Perl, storing high scores in a MySQL database, tracking ship position, and using TK and DBI packages for game updates.

Perl Space Command: A 2D Space Game in Perl - slide 1
01 / 5Perl Space Command: A 2D Space Game in Perl
1 / 17

Télécharger la présentation

Perl Space Command: A 2D Space Game in Perl
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Perl Space command A TK based 2D space game written in Perl. By Michael sparks

  2. Packages Used: • TK • TK::Photo • DBI • Sprite package written by Clinton Pierce • Database package

  3. Objectives of the game: • Take player initials from the command line for storage of high scores • Compare scores to those stored in MySQL database to determine new high scores • Store information about ship position and contact with other things • Use information to update the game every loop

  4. Data Structure: • Hash of information • Previous location • X and Y • Information about the ship • Names • Type of ship • name • Coords • ID number • Picture • Object information • Hash of Tags

  5. Database Structure: • Table with Initials of player • Taken from ARGV • Defaults to AAA • Score of each player • Only inserted if greater than last high score • Recalled from main program and stored into an array