Introducción
Bienvenida y presentación del proyecto
Instalación de los SDKs
Empezando Nuestro Proyecto
Inicializar el proyecto
Control de versiones
Importando nuestros assets
Teoría de Gameplay
Como resolver problemas de gameplay
Match 3 simplificado
Mecánica Principal
Creando la cuadrícula
Ajustando la cámara
Sistema de coordenadas para instanciar las piezas
Instanciando las piezas en la cuadrícula
Moviendo las piezas
Intercambiando las piezas de lugar
Permitiendo solo ciertos tipos de movimientos
Creando las funciones del match 3
Usando el match 3 en nuestro juego
Eliminando los matches por defecto
Colapsando las piezas
Match 3 combo
Rellenando las piezas
Mejorando la animación de las piezas
Publicacion
Momento del primer build para Android
Momento del primer build para iOS
Diseño del juego
Hablemos de diseño
Agregando un sistema de puntos
Sistema de tiempo
Interfaz para el sistema de tiempo
Creando sistema de UI
Pantalla de game over
Agregando funcionalidad a la pantalla de game over
Reiniciando el juego
Agregando audio
Terminando el juego
Conclusiones
Conclusiones del curso
You don't have access to this class
Keep learning! Join and start boosting your career
Creating a video game can seem like a monumental task, but with tools like Unity, the process becomes much more accessible. In this guide, we will explore how to end the 'gameplay loop' of a game, incorporating a splash screen and managing game states effectively. Let's learn together how to do it!
To start the development of a splash screen in Unity, we can take advantage of the already created Game Over splash screen interface. Here is the step-by-step to achieve it:
Duplicate the Game Over screen: Within Unity, select the Game Over interface and duplicate it with Ctrl-D
or Cmd-D
.
Modify the duplicated interface:
UI Start Screen
.Customize the visual elements:
btnStartGame
and modify its text to "Start".Adjust components:
Start Screen UI
.Game Over
to Idle
.Interactivity is essential, and for the "Start" button to work properly, it is crucial to create a new script. Here's how to do it:
Create a new script in Unity:
scripts
folder, generate a new script called UI Start Screen
.Implement the start button function:
start btnClicket
, which will be executed when "Start" is clicked.Game Manager
instance and execute StartGame
.Add the StartGame
function to the Game Manager:
public void StartGame
in the Game Manager
script.GameState.inGame
.currentTimeToMatch
is set to zero.RestartGame
, but keep them separate for clarity and future flexibility.After making all the necessary configurations and settings, it is time to test the game to make sure it works as expected.
Configure click events:
UI Start Screen
, add the UI StartScreen
component.StartGame
button click event to call UI StartScreen
and its StartButton click it
function.Test the game flow:
Congratulations! You have now learned how to implement a start screen from scratch and close the game flow. Although video game development can be complex, each step is a significant advancement. Keep exploring and improving your skills, constant practice will take you far in this fascinating world of game development.
Contributions 3
Questions 0
Want to see more contributions, questions and answers from the community?