Skip to content

game::terminal

Paweł Waligóra edited this page Jun 17, 2024 · 3 revisions

Description

In game terminal for cheats, tests and easier debugging.

Usage

Key map

  • f3 - toggle debug mode on and off
  • / in debug mode to toggle terminal on and off
  • when terminal is on you can type a command
  • enter - run command
  • backspace - works as usual backspace
  • ctrl + backspace - erase whole line

Commands

  • print <what to print> - prints <what to print> on terminal console
  • load <scene name> - load scene - see: scene_loader::load_scene()
  • unload <scene name> - unloads scene - see: scene_loader::un_load_scene()
  • reset - moves player to coordinates: <0, 3, 0>
  • clear - clears terminal console
  • heal <name of an entity> - heals an game::entity of name: <name of an entity> to it's full hp

Custom commands

Modify game::debugger::commands located in: debugger.cpp. Don't forget to update this page with command documentation.

Home

Git Workflow

Issues

Coding Rules

Skrypty-Tutorial

Useful resources

Game Structure

Code Structure

Clone this wiki locally