To make our games more playable, it is sometimes interesting to add items or objects that the player can pick up to increase their skills in the game.
Para dar mayor jugabilidad a nuestros juegos, a veces es interesante añadir items u objetos que el jugador pueda recoger para incrementar sus habilidades en el juego.
Imagine having a box full of toys. Inside, you can keep different type of toys: cars, legos, dolls, etc. Each toy has its specific place inside the box.
In our games, it is sometimes essential to have resource files with data.
In this pill we are going to see how to open a file and read the data inside.
En nuestros juegos, a veces es imprescindible tener ficheros de recursos con datos.
En esta píldora vamos a ver como abrir un fichero y leer los datos que hay dentro.
Nos hemos propuesto hacer un tutorial completo para desarrollar un juego sencillo en 2D para Godot.
Si queremos ordenar un array, tenemos un metodo especial que se llama sort.
Este método ordena el array de forma ascendente.
Para crear un array en Godot tenemos que hacer lo siguiente: