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
Heroclass is where information about the player is stored. It has a convenientgetPositionmethod. - You'll want to take a look at the
ConsoleandShellInputHandlerclasses
See Also
- See our IRC/Discord wiki page to join us in chat: https://github.com/MovingBlocks/Terasology/wiki/Using-IRC
Task tags
Students who completed this task
BSA