MovingBlocks

DestSol - Add a "position" command to the in-game Console

The console is meant to be a useful feature in Destination Sol, that could allow you to debug and test certain things (like currently possible in Terasology). However, we currently have no useful commands. In this task, you'll add a position command that prints the players x and y coordinates to the console. You can open the console with the "`" key in-game.

Definition of 'Done'

  • A console command that prints the player's x and y coordinates
  • Nice formatting for the output
  • A screenshot of a break-point showing the player's x and y with a console open in-game showing the same x and y

Where to Start

  • The Hero class is where information about the player is stored. It has a convenient getPosition method.
  • You'll want to take a look at the Console and ShellInputHandler classes

See Also

Task tags

  • console
  • code
  • ui
  • destsol

Students who completed this task

BSA

Task type

  • code Code
close

2018