G1 FAST es un juego de velocidad con obstáculos donde el personaje atraviesa diferentes campos peligros con un precisión de salto y coordinación de teclado
mostrare todo el recorrido de mi juego con todos los detalles
ingrese a unity hub y crearemos un nuevo proyecto e iniciamos para crear nuestro juego
el plano nos servirá para que el player tenga un terreno donde pueda desplazarse y realizar los movimientos direccionales en X y Z
el objeto vacío será nuestro Player en el juego
seleccionamos al Player y en la ventana de Inspector seleccionamos add Component , le damos click ahí y buscamos el Character Controller y lo aplicamos
aparecerá una capsula donde podemos modificarle tamaño como la altura , radio
hacemos click en Assets y creamos un folder con el nombre de Scripts y creamos un Script llamado PlayerController
CODIGO PARA MOVERL EL PLAYER EN LOS EJES X,Z
agregamos una variable ( public float JumpForce;)
podemos poner cubos y convertirlos en terrenos o bloques también podemos crear cilindros y convertirlos en postes que giran también crear esferas para empujar etc.
las texturas nos ayudaran a mejorar los cubos o el terreno del juego
hacemos click en Assets y creamos un nuevo folder con el nombre de Materiales
ingresamos a cualquier pagina para descargar texturas descargamos copiamos y pegamos en el folder de materiales
EL CINE MACHINE NOS AYUDARA CON LA CAMARA DE NUESTRO PLAYER
EN ESTA PAGINA ENCONTRAREMOS LOS SONIDOS PARA NUESTROS JUEGOS
CLICK EN ASSETS CREAR FOLDER CON EL NOMBRE DE SONIDOS Y COPIAR O EXPORTAR LOS SONIDOS QUE UTILIZAREMOS EN EL JUEGO
EN NUESTRA CARPETA CAMVAS ADICIONAMOS UN COMPONENTE AUDIO SOURCE
JALAMOS EL AUDIO EN LA CASILLA ROJA PARA FONDO DE JUEGO
LOS MODELOS 3D PODEMOS ENCONTRARLOS EN LAS SIGUIENTES PAGINAS:
MIXAMO , ASSET STORE, STC.
LO BUENO DE DESCARGAR DE LA ASSET STORE DE UNITY ES QUE TE DA TODAS LAS ANIMACIONES DEL PERSONAJE Y LO MALO ES QUE SON MUY GRANDES LOS ARCHIVOS
EL ANIMATRO CONTROLLER SE CREARA EN EL FOLDER DE ELLEN
LOS PARAMETROS SON:
PARA QUE ESTE EN EL PISO
PARA CORRER
PARA SALTAR
PARA CAMINAR
CORRER (RUN)
Y PARARCE(IDLE) EN LAS SIGUIENTES CASILLAS