GAMEJOLT EJEMPLOS Y COMPLEMENTOS



Mas imagenes y texto sobre el juego
JUEGO COMPLETO



 Juego de transporte completo.
Tienes que conducir el camión asta la meta, un deposito contenedor.
Tienes que evitar te caiga la carga porque puedes perder el juego si pierdes mucha de ella.
Cuando llegues al contenedor vuelca el contenido del camión en el interior y ganaras el juego.
Para conducir w,a,s,d,.
Para volcar la carga r, t,.





C# SCRIPTS FUNDAMENTALES DEL JUEGO.....
--------------------------------------------------------------------------------------------------------------------------
PARA CONDUCIR.
------------------------------------------------------------------------------------------
using System.Collections;
using System.Collections.Generic;
using UnityEngine;



public class ejemplom : MonoBehaviour {
    public float speed = 10.0F; //Velocidad de movimiento
    public float rotationSpeed = 100.0F; //Velocidad de rotación

    void Update() {
        transform.Translate(0, 0, Input.GetAxis("Vertical") * speed * Time.deltaTime);
        transform.Rotate(0, Input.GetAxis("Horizontal") * rotationSpeed * Time.deltaTime , 0);
    }
}









C# SCRIPTS FUNDAMENTALES DEL JUEGO.....
--------------------------------------------------------------------------------------------------------------------------
PARA VOLCAR LA CARGA DEL CAMION.
------------------------------------------------------------------------------------------
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class variosmovimientos : MonoBehaviour {
   
        public int m_velocidad;///














        /// ///7777   LETRASSSSSSSSSSS.....K......I....O.......L....
        ///


    public int m_velocidad1;
    public int m_velocidad2;
    public int m_velocidad3;



        // Use this for initialization
//    void Start () {//////////nueboooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

        //UnityEngine.Transform.Translate (0f, 10.1f, 0);
        //}

        // Update is called once per frame
        void Update () {
            //if (Input.GetKeyDown (KeyCode.K))////MIO ABANZA A TOQUES
            if (Input.GetKey (KeyCode.K))///ABANZA MANTENIENDO PULSADO
            //UnityEngine.Transform.Translate (0f, 10.1f, 0f);

            transform.Translate (0, Time.deltaTime*m_velocidad, 0);
        if (Input.GetKey (KeyCode.I))///ABANZA MANTENIENDO PULSADO
            //UnityEngine.Transform.Translate (0f, 10.1f, 0f);

            transform.Translate (Time.deltaTime*m_velocidad1, 0, 0);
        //transform.Translate (Time.deltaTime*m_velocidad1, 0, 0);


        if (Input.GetKey (KeyCode.O))///ABANZA MANTENIENDO PULSADO
            //UnityEngine.Transform.Translate (0f, 10.1f, 0f);

            transform.Translate (0, 0, Time.deltaTime*m_velocidad2);
        //transform.Translate (Time.deltaTime*m_velocidad1, 0, 0);




        if (Input.GetKey (KeyCode.L))///ABANZA MANTENIENDO PULSADO
            //UnityEngine.Transform.Translate (0f, 10.1f, 0f);

            transform.Rotate (0, 0, Time.deltaTime*m_velocidad3);
        //transform.Translate (Time.deltaTime*m_velocidad1, 0, 0);


}
}














C# SCRIPTS FUNDAMENTALES DEL JUEGO.....
--------------------------------------------------------------------------------------------------------------------------
PARA SONIDO DEL  CAMION.
------------------------------------------------------------------------------------------
using System.Collections.Generic;
using UnityEngine;

public class suenacamion : MonoBehaviour {


    public AudioSource tickSource;






    //public float Destroy = 0.2f;
    // Use this for initialization
    void Start () {






        tickSource = GetComponent ();









    }

    void Update () {
    }






    void OnTriggerEnter(Collider other) {
        if (other.gameObject.CompareTag ("Terrain")){





            tickSource.Play ();





            //Destroy (gameObject, 0.2f);


       




        }}

}



















C# SCRIPTS FUNDAMENTALES DEL JUEGO.....
--------------------------------------------------------------------------------------------------------------------------
C# IMPRESCINDIBLE PARA CAMBIAR GRAFICOS Y OBJETOS ActivateTrigger
------------------------------------------------------------------------------------------

using System;
using UnityEngine;
using Object = UnityEngine.Object;

namespace UnityStandardAssets.Utility
{
    public class ActivateTrigger : MonoBehaviour
    {
        // A multi-purpose script which causes an action to occur when
        // a trigger collider is entered.
        public enum Mode
        {
            Trigger = 0,    // Just broadcast the action on to the target
            Replace = 1,    // replace target with source
            Activate = 2,   // Activate the target GameObject
            Enable = 3,     // Enable a component
            Animate = 4,    // Start animation on target
            Deactivate = 5  // Decativate target GameObject
        }

        public Mode action = Mode.Activate;         // The action to accomplish
        public Object target;                       // The game object to affect. If none, the trigger work on this game object
        public GameObject source;
        public int triggerCount = 1;
        public bool repeatTrigger = false;


        private void DoActivateTrigger()
        {
            triggerCount--;

            if (triggerCount == 0 || repeatTrigger)
            {
                Object currentTarget = target ?? gameObject;
                Behaviour targetBehaviour = currentTarget as Behaviour;
                GameObject targetGameObject = currentTarget as GameObject;
                if (targetBehaviour != null)
                {
                    targetGameObject = targetBehaviour.gameObject;
                }

                switch (action)
                {
                    case Mode.Trigger:
                        if (targetGameObject != null)
                        {
                            targetGameObject.BroadcastMessage("DoActivateTrigger");
                        }
                        break;
                    case Mode.Replace:
                        if (source != null)
                        {
                            if (targetGameObject != null)
                            {
                                Instantiate(source, targetGameObject.transform.position,
                                            targetGameObject.transform.rotation);
                                DestroyObject(targetGameObject);
                            }
                        }
                        break;
                    case Mode.Activate:
                        if (targetGameObject != null)
                        {
                            targetGameObject.SetActive(true);
                        }
                        break;
                    case Mode.Enable:
                        if (targetBehaviour != null)
                        {
                            targetBehaviour.enabled = true;
                        }
                        break;
                    case Mode.Animate:
                        if (targetGameObject != null)
                        {
                            targetGameObject.GetComponent().Play();
                        }
                        break;
                    case Mode.Deactivate:
                        if (targetGameObject != null)
                        {
                            targetGameObject.SetActive(false);
                        }
                        break;
                }
            }
        }


        private void OnTriggerEnter(Collider other)
        {
            DoActivateTrigger();
        }
    }
}







Tutorial sobre animacion en unity ejemplos



TROYA INVASION

https://gamejolt.com/games/TROYA_INVASION/452960
https://paco415.gamejolt.io
JUEGO COMPLETO.
TECLAS PC W-A-S-D MOVERSE, RATON DISPARAR
TECLA -S- EMPIEZA EL JUEGO Y DIFICULTAD (NORMAL)
TECLA -M- DIFICULTAD (FACIL).
TERMINA CON TODOS LOS SOLDADOS QUE SALEN DEL CABALLO,
EVITA QUE LLEGEN A LA PUERTA PRINCIPAL, SI LLEGAN LA ABRIRAN Y ENTRARAN TODOS LOS ENEMIGOS RESTANTES, DESTRUIRAN LA CIUDAD Y PERDERAS EL JUEGO.

https://paco415.gamejolt.io
FULL GAME.
PC KEYS W-A-S-D MOVERSE, MOUSE SHOOT
KEY -S- START THE GAME AND DIFFICULTY (NORMAL)
KEY -M- DIFFICULTY (EASY).
END WITH ALL THE SOLDIERS THAT COME OUT OF THE HORSE,
AVOID THEY COME TO THE MAIN DOOR, IF THEY ARRIVE THEY WILL OPEN IT AND ENTER ALL THE REMAINING ENEMIES, THEY WILL DESTROY THE CITY AND LOSE THE GAME. #action #arcade #strategy #shooter #adventure








ACTUALIZADO 30-11-2019





 
West jail intro


Nuevo videojuego que estoy desarrollando, tema del wenster americano,
en un principio me quería inspirar en la película “Solo ante el peligro”, en la película el protagonista es el “cherif”, el bueno en la película.

En mi juego el protagonista es el “malo” el delincuente el ladrón.
No voy a desvelar el argumento de mi juego.....nada espectacular, solo espero poder hacer un juego completo y entretenido que no sea monótono ni aburrido ni repetitivo.


De momento pongo el enlace de lo que estoy desarrollando para que la gente lo vea y lo pruebe.
Estoy intentando ser profesional, ampliando las versiones que voy haciendo poco a poco con la típicas numeraciones de las versiones....0.1.0,,,,,,0.1.1,,,,,,0.1.2,,,,,0.1.3.....etc , etc y así sucesivamente.



Y con lo que he practicado y aprendido en tema animaciones, y sus funcionamientos con C# ,

https://youtu.be/dIMgY1WogQ0

a la hora de asignarla con las teclas del pc,.... pues estoy muy satisfecho, jamas creí que fuera capaz de conseguir movimientos tan reales, poderlos aplicar a mis juegos me vengo a referir.

También probare de animar caballos, mas realismo para un wenster.

He mejorado en tema de disparos, efectos de humo al disparar el arma y poner el arma en la mano del “player”.



Y yo tengo vastante sentido del humor, conforme mas sepa desarrollar juegos lo reflejare en ellos, en este juego procuro algo gracioso, disparo ala cabeza de los “buenos” , al sombrero y salen volando los sombreros y los “buenos” escapan corriendo....seguire comentando, conforme valla abanzando.--12-3-2020

Ampliando mi videojuego con la versión 0.1.8, contador de vidas, y sangrado al ser herido , también le puesto 10 corazones, cuando recibo un disparo se me quita 1 vida se me borra 1 corazón y se ve un sangrado conforme me han disparado.
Tambien e echo una prueba de pantalla final cuando pierdo todas las vidas y sale el “GAME OVER”










 https://gamejolt.com/games/FOREST_FIREFIGHTERS/483607


 FOREST FIREFIGHTERS.
BOMBEROS DE MONTE.
JUEGO COMPLETO DE BOMBEROS Y RESCATES EN LA MONTAÑA.
SALVA A 53.
MOVIMIENTO,-W-S-A-D.
MOVIMIENTO MANGERA Y DISPARO DE AGUA RATON Y BOTON DEL RATON.
PONER DE PIE CAMION DE BOMBEROS -L-.
SALIR DEL JUEGO -ESC-.
VERSION PARA WEB DEMO.

Truco para rescatar a 53, cuando subas por el puente, no uses la manguera, y acercate a los que arden de uno en uno, echándote hacia atrás rápidamente.

VERSION PARA PC COMPLETA.
TODO GRATIS.











¡¡¡APOYA AL DESARROLLADOR SI TE GUSTA EL JUEGO PARA SEGUIR TRABAJANDO EN EL!!!

No hay comentarios:

Publicar un comentario