GhostCoder (for Java)

GhostCoder is a 2D story-based educational game in black comedy style. It teaches Java programming in the following topics: Data Types, declaration statement, assignment statement, if statement, for statement, and string functions.

Story: The game is based on a story that begins with the opening ceremony of a new arena. The new arena was built for hosting a championship competition of a popular card game called "Power King Card Game". All world-class card game players were there but suddenly there was a big fire. All people in the arena died. Rumours said that the arena was haunted and became a GhostCode World. In the GhostCode World, everything has to be controlled by GhostCode. The player's mission is to learn the skills of the GhostCode as well as to win the Power King Card Championship.


Stage 1 - Mr. Forget


Topics:

  • Data types
  • Declaration statement
  • Assignment statement
  • String functions

Learning Outcomes:

  • Recognise the uses and nature of the primitive data types of int, double, char and boolean, in solving a problem
  • Use declaration statement to define variable of different data types for storing data
  • Use assignment statement to assign values to a variable
  • Understand the nature of the string functions

Game Mission and Elements:

  • Help Mr. Forget writing GhostCode to solve the payroll problem.

Game Scenes:


Stage 2 - Ms. Uncertain


Topics:

  • Decision Structure - if statement

Learning Outcomes:

  • Apply decision structure in a solution

Game Mission and Elements:

  • Help Ms. Uncertain to fix the vending machine by writing program codes of correct decision structure to control the machine to operate according to the specification.

Game Scenes:


Stage 3 - Mr. Loop


Topics:

  • Repetition Structure - for statement

Learning Outcomes:

  • Apply repetition programming structure to solve different situations.

Game Mission and Elements:

  • Help Mr. Loop to control the claw crane to get the prize by writing program codes of appropriate repetition structure.

Game Scenes: