1 / 5

Perl Space command

Perl Space command. A TK based 2D space game written in Perl. By Michael sparks. Packages Used:. TK TK::Photo DBI Sprite package written by Clinton Pierce Database package. Objectives of the game:. Take player initials from the command line for storage of high scores

rich
Download Presentation

Perl Space command

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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

More Related