Unidad 2: Jugabilidad básica

CourseBeginner6h 20m

unity_wnnqkDlOvh5RSg

Descripción general del curso

En esta unidad, programarás un juego de vista aérea con el objetivo de lanzar comida a los animales hambrientos (que vienen en estampida hacia ti) antes de que te esquiven. Para ello, te familiarizarás con algunos de los conceptos más importantes de la programación y de Unity, como las declaraciones condicionales, la generación de valores aleatorios, los arreglos, la detección de colisiones, los Prefabs y las posiciones de una instancia. Al completar esta unidad, aprenderás a programar un juego básico que permita lanzar proyectiles y mover al jugador para mantener el juego vivo.

Languages available:

XP ADICIONALES OBTENIDOS AL COMPLETAR EL CURSO
+600
TOTAL DE XP POSIBLES
720 XP

Recursos para instructores

By the end of this unit, you will be able to:

  • Create an if-then statement in order to implement basic logic in your project, including the use of greater than (>) and less than (<) operators
  • Transform a gameobject into a prefab that can be instantiated into the scene
  • Work with prefabs to add efficiencies in your workflows
  • Get user input with GetKey and KeyCode to test for specific keyboard presses
  • Use arrays to create an accessible list of objects or values and randomly select an object from that array
  • Randomly generate values to randomize spawn positions
  • Change the camera’s perspective to better suit your game
  • Repeat functions on a timer with InvokeRepeating
  • Write custom methods to make your code more readable
  • Detect collisions and destroy objects that collide with each other
  • Display messages in the console with Debug Log