COMP1400 – Programming for Designers

Class announcements for Programming for Designers

COMP1400 – Programming for Designers random header image

Ass 3 – High score list

Posted by on September 21st, 2010 · Assignments

Your final assignment is to implement a high score list for a very simple game. The game itself is just a place holder that randomly generates scores. Your job is to keep a list of high-scores and allow the player to page through them.

Requirements

  • Have a “play” button which starts the game.
  • While the game is playing, hide the GUI.
  • When the game is over, display the latest score and the high-scores in descending order, five per page.
  • Provide “Previous” and “Next” buttons to allow the player to page through the scores. Don’t page beyond the end of the list.
  • Optional Bonus: for an extra 10%, prompt the player for a name when the game is over, and show both names and scores in the list.

There is a demo app here. Feel free to make your version prettier if you want, but you must implement all the functionality of this demo.

Competencies

The aim of this assignment is to demonstrate your ability to:

  • Use arrays or lists to keep track of multiple pieces of data.
  • Use the GUI to display text and button controls.
  • Use strings to create formatted text for display.

Files

You will need to download the following script files:

  • Game.js – the ‘game’, a simple score-generator. Do not modify this script
  • ScoreKeeper.js – the scorekeeper. You must complete this script.

Teams

For this assignment you have the option of working in pairs or alone. You will need to inform your tutor of your team in the Week 10 lab.

Deliverables

There are two components you will need to submit:

  1. The completed ScoreKeeper.js script.
  2. A web version of your game.

There is no storyboard requirement for this assignment.

Marking

Your marks will be based on your design and your code, not on the scene itself. So don’t overdo the time much time you spend making it pretty. Marks will be assigned as follows:

  • Code style: 50%
  • Correctness: 50% (with possible 10% bonus)
    • Keeping a list of high scores: 20%
    • Sorting the list in descending order: 15%
    • Paging through the scores: 15%
    • Having names attached to scores: 10% bonus

This assignment is worth 10% of your final mark.

Submission

The assignment is due at the end of week 12 (Sunday Oct 17).

Submission instructions will follow.

No Comments so far ↓

There are no comments yet...Kick things off by filling out the form below.

You must log in to post a comment.