El controlador del juego

1

Archivos del curso

2

隆Bienvenido a los cursos autorizados de Unity!

3

Bienvenida al curso y requisitos para utilizar el HTC Vive

4

Inicializando nuestro proyecto y configurando nuestro PlayerSettings para trabajar con VR

5

Utilizando nuestros controles de HTC Vive

Creando nuestro mundo 3D en Unity

6

Comenzando a crear nuestro escenario 3D con los Unity Standard Assets

7

Preparando el terreno de nuestro escenario

8

Texturizando el terreno de juego

9

Agregando detalles utilizando vegetaci贸n

10

Agregando cesped y viento a nuestro nivel

11

Terminando nuestro entorno 3D, agregando un skybox al proyecto

12

Utilizando la unity asset store para obtener nuestra arma y escudo

El realismo del VR: Programando a nuestro personaje

13

Asignando un control de realidad virtual a nuestras armas

14

Input Manager de nuestros controles de VR

15

Accediendo a los botones de nuestro control

16

Preparando nuestro proyectil

17

Utilizar los sensores de los Vive Controllers para lanzar proyectiles

18

Corrigiendo los bugs de nuestra arma

19

Agregando Colliders y Rigid Bodies a nuestro playerController y armas

20

Utilizando Getters y Setters para manejar nuestas barras de vida

El realismo del VR: Creaci贸n de HUD (Heads Up Display) y generando enemigos

21

HUD's en VR

22

Terminando nuestros HUDs de mana y vida

23

Creando nuestro script de da帽o

24

Asignando nuestros huds a los valores de vida y de mana de nuestro personaje

25

Agregando enemigos

26

A帽adiendo colliders a nuestros enemigos

27

A帽adiendo animaciones de muerte a nuestros dragones

28

Spawn de enemigos: Generando enemigos sistem谩ticamente

El realismo del VR: Programando la IA de nuestro juego

29

Programando una IA b谩sica: Waypoints

30

Programando a nuestro enemigo para que pueda seguir Waypoints

31

Terminando la l贸gica de waypoints

32

Puliendo la l贸gica de nuestro enemigo

33

A帽adiendo diversos puntos de 'Spawn' para enemigos y cierre del curso

You don't have access to this class

Keep learning! Join and start boosting your career

Aprovecha el precio especial y haz tu profesi贸n a prueba de IA

Antes: $249

Currency
$209
Suscr铆bete

Termina en:

0 D铆as
10 Hrs
56 Min
5 Seg
Curso de VR con Unity

Curso de VR con Unity

Juan Gabriel Gomila

Juan Gabriel Gomila

Asignando nuestros huds a los valores de vida y de mana de nuestro personaje

24/33
Resources

The target for both the life and mana HUD is the player and this is assigned from the Unity Inspector panel. To assign the correct logic to each bar, we must change the reference of the Bar Type and assign the corresponding variable, either Health or Mana.

Already in the script we will assign the initial values or limits in the Start() method and the logic that will update each slider in the Update() method.

It is important to note the difference in the use we give to the variables obtained through an object, as is the case of the HealthPoints read from the target, compared to the constant value MAGIC_COOLDOWN_TIME that we obtain directly from the Weapons class.

Finally, also depending on the barType, we will update the values during the interaction in the gameplay by placing the respective logic in the Update() method.

Challenge: generate a third bar to represent the WeaponCooldown.

Contributions 0

Questions 0

Sort by:

Want to see more contributions, questions and answers from the community?