Godot
Extract some text, pictures as the note from Godot Engine documentation's Step by step.
All nodes have the following characteristics:
For example, a CharacterBody2D node, a Sprite2D node, a Camera2D node, and a CollisionShape2D node.
The node can cover another node, according to the placed order.
Organizing nodes in a tree is called as constructing a scene. The Godot editor essentially is a scene editor. The engine only requires one as your application's main scene. This is the scene Godot will first load when you or a player runs the game.
Godot aggreagates the files as the resources and stores them in the filesystem, including: the pictures, scenes, scripts.
GDScript is an object-oriented and imperative programming language built for Godot. Key features:
_init()
The func keyword defines a new function named _init
. This is a special name for our class's constructor. The engine calls _init()
on every object or node upon creating it in memory, if you define this function.
_process(delta)
Godot will call the function every frame and pass it an argument named delta, the time elapsed since the last frame.
_unhandled_input()
_unhandled_input()
is a built-in virtual function that Godot calls every time the player presses a key.The InputMap is the most flexible way to handle a variety of inputs. You use this by creating named input actions, to which you can assign any number of input events, such as keypresses or mouse clicks. To see them, and to add your own, open Project -> Project Settings and select the InputMap tab. Click Show Built-in Actions:
Other nodes can connect to the node's signal and call a function when the event occurs.
Yes! It is the Vector! Velocity is a kind of vector.