Coder Social home page Coder Social logo

boyquotes / godot-cheatsheet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rylydou/godot-cheatsheet

0.0 0.0 0.0 1.39 MB

A debug console your your Godot game

Home Page: https://godotengine.org/asset-library/asset/edit/7433

License: MIT License

GDScript 100.00%

godot-cheatsheet's Introduction

Cheatsheet

A debug console for your Godot game.

console

Features

  • Debug console with text based input.
  • Adding custom commands with arguments.
  • A help menu that lists all of the available commands and how to use them.
  • History!
  • An overlay to show performance stats.
  • Some kinda neat looking animations?

Things on the roadmap

  • A controller friendly command palette with inputs.
  • More QoL updates.

How to...

...add custom commands

# register a command called 'echo' that executes a callable
Console.register('echo',
	func(text: String):
		Console.println('%s... %s...' % [text, text.to_lower()]
).arg('text', TYPE_STRING)\ # add an argument to this command
	.info('echo a string of text in a creepy way...')

The \ at the end of arg allows for us to continue calling functions on a new line.

The echo command is called like so:

$ echo Testing123
$ echo '...Or if you\'re wanting to have spaces.'

Sorry for the strange sentence. I wanted to demonstrate how to escape 's.

...change the key to toggle the console

Open the cheatsheet.tscn in res://addons/cheatsheet/ and edit the toggle_shortcut property to whatever you want.

Links

Godot Asset Library Listing | Github Repo | Issue Tracker

godot-cheatsheet's People

Contributors

rylydou avatar mastermori 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.