Untitled Quiz
48 Questions
1 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

¿Qué función se llama cuando el juego está en pausa?

  • _paused() (correct)
  • _fixed_process()
  • _process()
  • _unpaused()

¿Qué método se debe usar para eliminar un nodo de manera segura cuando está bloqueado?

  • s.free()
  • s.delete()
  • s.remove()
  • Node.queue_free() (correct)

¿Qué indica que un valor ha cambiado en Godot?

  • Se marca un tick a la izquierda del nombre. (correct)
  • El valor se guarda automáticamente.
  • El nombre del nodo se vuelve negrita.
  • Se marca un tick a la derecha del nombre.

¿Cuál es el propósito de la función _fixed_process()?

<p>Se llama en cada frame de física. (C)</p> Signup and view all the answers

¿Qué es una escena en Godot?

<p>Una colección de nodos organizados como un árbol. (C)</p> Signup and view all the answers

¿Qué se necesita hacer para crear un nuevo sprite en código?

<p>var s = Sprite.new() (B)</p> Signup and view all the answers

¿Qué se puede hacer con una escena en Godot?

<p>Crear y salvar una escena a disco. (D)</p> Signup and view all the answers

¿Qué función debe usarse para añadir un nodo como hijo de otro nodo?

<p>add_child() (D)</p> Signup and view all the answers

¿Cuál de las siguientes afirmaciones es correcta acerca de la memoria en Godot?

<p>Eliminar un nodo libera todos sus nodos hijos automáticamente. (A)</p> Signup and view all the answers

¿Cuál es la función del singleton Globals mencionado en el contenido?

<p>Agregar opciones de configuración personalizadas. (D)</p> Signup and view all the answers

¿Cuál es la relación entre escenas y nodos en Godot?

<p>Una escena puede contener varios nodos organizados. (B)</p> Signup and view all the answers

¿Cómo se carga una escena desde un archivo en Godot?

<p>var scene = load('res://myscene.scn') (A)</p> Signup and view all the answers

Qué paso inicial se recomienda para aprender sobre instanciación en Godot?

<p>Descargar un proyecto de muestra llamado instancing.zip. (B)</p> Signup and view all the answers

¿Qué sucede si se usa free() en un nodo bloqueado?

<p>El juego se cuelga. (D)</p> Signup and view all the answers

¿Qué ocurre al editar un proyecto en Godot después de importarlo?

<p>Se pueden agregar nuevas escenas a la lista de proyectos. (B)</p> Signup and view all the answers

En el contexto de este tutorial, ¿cuál será el próximo tema tratado?

<p>Escenas y nodos. (A)</p> Signup and view all the answers

¿Cuál es la función principal de un viewport en Godot?

<p>Dibujar el mundo en un rectángulo (A)</p> Signup and view all the answers

¿Qué permite hacer el modo 'RenderTarget' en un viewport?

<p>Acceder a los contenidos mediante una Texture (C)</p> Signup and view all the answers

¿Qué se debe hacer para que el sonido 3D sea audible en un viewport?

<p>Activar el viewport como un listener (B)</p> Signup and view all the answers

¿Qué método de SceneTree se utiliza para manejar eventos de entrada?

<p>MainLoop.input_event() (B)</p> Signup and view all the answers

¿Cuál es la relación entre una cámara y un viewport en Godot?

<p>Las cámaras muestran en el viewport padre más cercano (C)</p> Signup and view all the answers

¿Cuál es la función principal del singleton InputMap?

<p>Reasignar o crear acciones en tiempo de ejecución (C)</p> Signup and view all the answers

¿Qué ocurre si hay más de una cámara en un viewport?

<p>Solo puede haber una cámara activa por viewport (B)</p> Signup and view all the answers

¿Qué tipo de coordenadas tiene sentido usar al escribir UIs complejas para PC?

<p>Coordenadas de hardware (D)</p> Signup and view all the answers

¿Cómo se puede hacer que una cámara sea activa en un viewport?

<p>Llamando a camera.make_current() (A)</p> Signup and view all the answers

¿Cómo se puede obtener la posición del mouse en el contexto de Godot?

<p>get_viewport().get_mouse_pos() (A)</p> Signup and view all the answers

¿Qué se debe hacer manualmente para los render targets en un viewport?

<p>Llamar a Viewport.input() (C)</p> Signup and view all the answers

¿Qué propiedad tiene un viewport que permite ajustar su tamaño en la pantalla?

<p>rect (A)</p> Signup and view all the answers

Qué propiedad del evento InputEvent indica si una acción fue presionada?

<p>ev.type (A)</p> Signup and view all the answers

¿Qué función se utiliza para habilitar el procesamiento de entradas en Godot?

<p>set_process_input(true) (D)</p> Signup and view all the answers

¿Cuál es la resolución del viewport en Godot?

<p>Es variable y puede cambiar (B)</p> Signup and view all the answers

¿Cómo se utiliza el objeto InputEvent para definir una acción?

<p>Usando ev.set_as_action() (B)</p> Signup and view all the answers

¿Qué ocurre con un nodo cuando entra al Scene Tree?

<p>Obtiene acceso a los recursos necesarios. (B)</p> Signup and view all the answers

¿Cuál es el orden en que se notifican los nodos en el árbol de escena?

<p>Los nodos con menor orden se notifican antes. (B)</p> Signup and view all the answers

¿Qué notificación recibe un nodo al ser agregado a la escena?

<p>enter_tree (D)</p> Signup and view all the answers

¿Qué función permite cambiar la escena actual en Godot?

<p>change_scene (C)</p> Signup and view all the answers

¿Qué sucede cuando una escena es removida del Scene Tree?

<p>Se envía 'exit_tree' en orden de abajo hacia arriba. (B)</p> Signup and view all the answers

¿Cuál es la desventaja de usar 'SceneTree.change_scene()' directamente?

<p>Detiene el juego hasta que la nueva escena está lista. (A)</p> Signup and view all the answers

¿Qué tipo de notificación se proporciona para indicar que un nodo y todos sus hijos están dentro de la escena activa?

<p>ready (D)</p> Signup and view all the answers

¿Qué se debe hacer manualmente para implementar una pantalla de carga con carga en segundo plano?

<p>Usar autoloads y carga en segundo plano. (C)</p> Signup and view all the answers

¿Qué representan WIDTH y HEIGHT en el contexto de un viewport?

<p>La resolución en píxeles del viewport. (B)</p> Signup and view all the answers

¿Cuál es el propósito de viewport.set_size_override(w,h)?

<p>Establecer un tamaño personalizado para contenido 2D. (D)</p> Signup and view all the answers

¿Qué sucede con los nodos Spatial-base en un viewport?

<p>Se asocian al World del viewport más cercano. (D)</p> Signup and view all the answers

¿Cómo se puede separar los nodos hijos de un viewport del viewport world padre?

<p>Usando la propiedad 'world' en el viewport. (C)</p> Signup and view all the answers

¿Cuál es la función principal de un World en un viewport 3D?

<p>Unir la física y la renderización. (A)</p> Signup and view all the answers

¿Qué opción permite crear viewports que muestran objetos únicos sin necesidad de un World?

<p>Activación de la opción de World propio en el viewport. (D)</p> Signup and view all the answers

¿Cómo se puede compartir el World2D entre viewports?

<p>Llamando a la API del viewport manualmente. (B)</p> Signup and view all the answers

¿Qué captura devuelve el viewport root al requerir una captura de sus contenidos?

<p>Una captura de pantalla. (C)</p> Signup and view all the answers

Flashcards

Scene Instance

A copy of a scene added to another scene. It's not the original scene, but a separate copy.

Scene

A collection of nodes (like objects, elements, etc.) structured like a tree, with a single root node.

Node

An individual element within a scene. Examples include objects or containers.

Instancing

The process of adding a scene (or part of it) as a copy (instance) into another scene.

Signup and view all the flashcards

engine.cfg

Godot Engine configuration file, storing settings to remember changes and custom options.

Signup and view all the flashcards

Globals

A Godot singleton used to access and manage global settings and data.

Signup and view all the flashcards

Project Import

Adding a pre-made project to the Godot project list.

Signup and view all the flashcards

Root Node

The main, top-level node in a scene; all other nodes are arranged under it in a tree-like structure.

Signup and view all the flashcards

Node.free()

Removes a node from the scene and releases its resources.

Signup and view all the flashcards

Node.queue_free()

Safely removes a node from the scene when it has finished its tasks.

Signup and view all the flashcards

_process(delta)

Called every frame when set_process() is enabled.

Signup and view all the flashcards

_fixed_process(delta)

Called every physics frame when set_fixed_process() is enabled.

Signup and view all the flashcards

_paused()

Called when the game is paused. The node won't receive further process callbacks after this.

Signup and view all the flashcards

_unpaused()

Called when the game resumes, enabling process callbacks again.

Signup and view all the flashcards

Sprite.new()

Creates a new Sprite object.

Signup and view all the flashcards

load("res://myscene.scn")

Loads a scene file from the specified path.

Signup and view all the flashcards

Scene Tree

The hierarchical structure in Godot Engine where nodes become active and gain access to resources like inputs and rendering.

Signup and view all the flashcards

Node Activation

Nodes become active upon entering the Scene Tree, gaining access to necessary functionalities like processing, inputs, and rendering.

Signup and view all the flashcards

enter_tree() & _exit_tree() calls

Functions called when a node enters or exits the Scene Tree. _enter_tree() is called as a node is added and _exit_tree() when it is removed.

Signup and view all the flashcards

Node Order

Nodes in the Scene Tree are processed in a specific order (based on their position), affecting notification and drawing operations.

Signup and view all the flashcards

Scene Loading

The process of adding a scene to the Scene Tree. This happens when a scene file or instance is loaded.

Signup and view all the flashcards

Scene Change (SceneTree.change_scene())

Switches to a different scene rapidly but may involve a pause in game play.

Signup and view all the flashcards

ready() call

Called when a node and all its children are inside the active scene.

Signup and view all the flashcards

Scene Tree Structure

The hierarchical tree-like structure that organize and manages nodes in a game scene.

Signup and view all the flashcards

Viewports

Rectangular areas within a Godot scene where the 3D or 2D world is drawn.

Signup and view all the flashcards

Viewport uses

Viewports have three main uses: Scene Root, Sub-Viewports, and Render Targets.

Signup and view all the flashcards

Scene Root Viewport

The active scene's main viewport. Shows user-created scenes.

Signup and view all the flashcards

Sub-Viewports

Viewports within another viewport, often child of a Control.

Signup and view all the flashcards

Render Targets

Viewports that don't display directly; content accessed as a texture.

Signup and view all the flashcards

Viewport Input

Viewports handle input events (e.g., mouse clicks). Render targets require manual handling.

Signup and view all the flashcards

Viewport Listener

Enables 3D sound in a viewport for 2D or 3D sounds.

Signup and view all the flashcards

Viewport Camera

Cameras in a viewport display image in their parent viewport. Only one camera can be active per viewport.

Signup and view all the flashcards

Viewport Size

WIDTH and HEIGHT attributes define the viewport's size in pixels. Sub-viewports inherit from parent sizes; render targets adjust their resolution.

Signup and view all the flashcards

Viewport Size Override

Customizes the viewport's apparent size, allowing 2D content scaling and stretching.

Signup and view all the flashcards

Viewport World

The 3D universe handling physics and rendering for a viewport. Sub-viewports inherit from parent World; viewport root doesn't have a default one.

Signup and view all the flashcards

World Separation

Allows a viewport to use a dedicated World, separating its contained nodes from the parent World, useful for independent objects.

Signup and view all the flashcards

2D Viewport World

Each 2D viewport always has its own World2D.

Signup and view all the flashcards

Viewport Capture

Allows grabbing a screen capture of the viewport's content. In the root viewport, it's essentially a screenshot.

Signup and view all the flashcards

Viewport Root

Primary viewport, often used as the main display area or for default rendering.

Signup and view all the flashcards

Viewport Stretch

Option to stretch content to fit the custom viewport size.

Signup and view all the flashcards

SceneTree input_event()

A method in the SceneTree (derived from MainLoop) used to handle input events.

Signup and view all the flashcards

InputEvent

A Godot class representing input events, like mouse clicks or keyboard presses.

Signup and view all the flashcards

InputMap

A Godot singleton for customizing and remapping input actions.

Signup and view all the flashcards

Viewport Coordinates

Coordinates used for representing input positions within a viewport's space, which adjusts scaling.

Signup and view all the flashcards

Hardware Coordinates

Coordinates referencing the computer's physical screen. Used primarily for UI elements.

Signup and view all the flashcards

get_viewport_rect().size

A function that retrieves the size of the viewport.

Signup and view all the flashcards

get_viewport().get_mouse_pos()

A function to get the mouse position relative to the viewport

Signup and view all the flashcards

Project Organization

A method for structuring project files to improve workflow.

Signup and view all the flashcards

Study Notes

Godot Engine Documentation

  • Godot Engine Documentation is a project of the Godot community, including Juan Linietsky, Ariel Manzur, and others.
  • The latest version of the documentation was published on November 15, 2017.

Tutoriales

  • The documentation is organized into several sections:

    • Tutorials (page numbers 3,7,8,9,10, 11,12,13,14,15, and16-1)
    • Reference
    • Community
  • The document contains different tutorials about the Godot Engine, covering various topics from the basics such as learning steps and scenes to plugins of asset management and more advanced examples.

    • Learning step by step (page 3)
    • Engine (page 3)
    • 2D tutorials (page 4)
    • 3D tutorials (page 4)
    • Networks (page 5)
    • Other topics (page 5)
    • Cheat sheets (page 10)
    • Advanced topics (page 13)
    • Creating new project (page 9)
    • The Editor (page 10)
  • The tutorials provide details on using the Godot engine for creating 2D games with step by step instructions.

    • Scenes and nodes (page 7)
    • Nodes (page 8)
    • Scenes (page 9)
    • Creating a new project with the "Hello World" example (page 9 and 10)
    • Instancing (page 15)

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Untitled Quiz
6 questions

Untitled Quiz

AdoredHealing avatar
AdoredHealing
Untitled Quiz
37 questions

Untitled Quiz

WellReceivedSquirrel7948 avatar
WellReceivedSquirrel7948
Untitled Quiz
55 questions

Untitled Quiz

StatuesquePrimrose avatar
StatuesquePrimrose
Untitled Quiz
50 questions

Untitled Quiz

JoyousSulfur avatar
JoyousSulfur
Use Quizgecko on...
Browser
Browser