Untitled Deck Flashcards

(32 cards)

1
Q

What is GDScript?

A

A high-level, dynamically typed language made specifically for Godot.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the syntax of GDScript similar to?

A

Python.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the purpose of GDScript?

A

To control nodes, write gameplay logic, and handle interactions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you attach a script to a node in Godot?

A

Right-click the Node2D scene → Attach Script → pick GDScript.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does ‘extends Node2D’ do in a GDScript?

A

It allows the script to inherit the behavior of Node2D.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the purpose of the _ready() function?

A

It runs when the node enters the scene tree.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the delta parameter represent in GDScript functions?

A

Frame time, preventing movement speed from depending on FPS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the purpose of the Input class in Godot?

A

To handle keyboard or mouse input.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a signal in Godot?

A

A way for nodes to communicate without tightly linking code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the function _on_Button_pressed() do?

A

It runs when the button is pressed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a simple player controller script’s main function?

A

_physics_process(delta).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does the move_and_slide() function do?

A

It moves the character while considering physics.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a variable in coding?

A

A ‘box’ that stores information.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the main data types in GDScript?

A
  • Integer (int)
  • Float
  • String
  • Boolean (bool)
  • Vector2
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a function in GDScript?

A

A set of instructions you can reuse.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does ‘extends’ mean in GDScript?

A

It indicates that a script inherits the abilities of another class.

17
Q

What is a loop in programming?

A

A structure that repeats something multiple times.

18
Q

What are the two main kinds of loops?

A
  • for loop
  • while loop
19
Q

What is an if statement used for?

A

To check a condition and run code if true.

20
Q

What is a signal in the context of game coding?

A

An event that occurs in the game world.

21
Q

What does the term ‘frame’ refer to in gaming?

A

One ‘picture’ of your game.

22
Q

What does delta represent in game coding?

A

The time difference since the last frame.

23
Q

What is a collision in game development?

A

When two objects bump into each other.

24
Q

What does physics refer to in game coding?

A

Rules that simulate movement, gravity, bouncing, friction.

25
What is a sprite in game development?
An image used in the game.
26
What is a scene in Godot?
A collection of nodes.
27
What is a script in Godot?
A file of code that gives behavior to a node.
28
What does input refer to in game coding?
Any action from the player.
29
What is debugging?
The process of finding and fixing mistakes in code.
30
What is an array?
A list that can hold multiple items.
31
What is a dictionary in GDScript?
A labeled list that uses keys.
32
What does Object-Oriented Programming (OOP) mean?
A coding style where everything is treated as an object with properties and behaviors.