Giter Site home page Giter Site logo

debugconsole's Introduction

Debug Console

A general-purpose debug console for the Godot Engine.

Debug Console

Features

  • Debugging suite full of useful in-game commands
  • Usable in any project
  • Lightweight and easy to use
  • Persistent across all scenes

Overview

I made this debug console to be a tool used in any type of project by incorporating many useful commands. It has commands to change the resolution, window mode, enable/disable vsync, display useful debug information such as frames per second, memory, cursor position, current resolution, current screen, and more. There's a command to change the time scale, as well as reload the current scene. There's a "help" command that displays a popup with all the commands and more information about them.

This scene is autoloaded and persistent across all scenes, therefore, you don't need to instance it into every scene, it already exists within every scene by default. When the debug console is brought up it automatically pauses the game, then when it's exited it automatically unpauses the game for you.

Debug Stats

Usage

Copy the addons/Debug Console folder into your projects directory, Then autoload the console.tscn scene within the Debug Console folder. This will make it present in every scene within your game. Next you need to create a new InputEventAction by going to Project>Project Settings>Input Map and create an action called "debug" and assign it a key. Press the "debug" action to bring up the console in-game. Be sure to consult the wiki for more detailed information.

Commands

Below is a list of all available commands that the debug console will accept. It works by typing the prefix followed by a space then enter the value.

  • help
  • clear
  • quit
  • shoot
  • cr int,int
  • mw fullscreen, windowed, borderless, bordered
  • mt float
  • vsync
  • fxaa
  • msaa 2, 4, 8, off
  • fov float
  • debug name, desc, fps, stats, draw, reload

License

MIT license.

debugconsole's People

Contributors

sirquartz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.