Godot

Table of Contents

Exporting

From https://docs.godotengine.org/en/stable/tutorials/rendering/multiple_resolutions.html:

  • Use stretch mode = viewport for pixel games

3D

Connections

Connecting via UI:

Adds the following to the scene file:

+[connection signal="health_changed" from="Characters/Player" to="GUI" method="_on_Player_health_changed"]

Or you can do it programmatically with something like:

# Adds a listener on the mob instance for the event "start_game", hooking into mob._on_start_game
$Hud.connect("start_game", mob, "_on_start_game")

Cameras

Prefer using an interpolated camera. To achieve a spatial offset, create an invisible spatial node and get the camera to follow that instead (https://youtu.be/j2wBsb-W3Ls?t=397). Tweak rotation on camera first, then copy rotation values onto the camera target.

Importing from Blender

Exporting from Blender

Use export as GLTF (more up to date than Collada).

  • To apply modifiers, Geometry → Apply Modifiers

Bindings

  • <C-b> to build
  • In the stage, press <Space> to pan
  • F6 to play scene
  • F5 to play project
  • <S-F1> to look up scripting documentation

Custom

  • <C-p> for project settings

References