viernes, 30 de mayo de 2025

jueves, 29 de mayo de 2025

viernes, 23 de mayo de 2025

Enlace FlappyBird

https://mega.nz/folder/4fJ0VYLJ#h869LwEpSYmRBNxUBha8Cg


using UnityEngine;

public class FlappyBird : MonoBehaviour
{
    // Start is called once before the first execution of Update after the MonoBehaviour is created

    public float velocity =2;
    public Rigidbody2D rd2D;

    public float rotationSpeed = 25;
    void Start()
    {
       
    }

    // Update is called once per frame
    void Update()
    {
if (Input.GetMouseButtonDown(0))
    {

        rd2D.linearVelocity = Vector2.up * velocity;
    }

transform.rotation = Quaternion.Euler(0,0,rd2D.linearVelocity.y * rotationSpeed * Time.deltaTime * 100);
    }
}

Share:

martes, 6 de mayo de 2025

GameMenu

 using UnityEngine;

using UnityEngine.SceneManagement;

 

public class MainMenu : MonoBehaviour

{

 

    public void Play()

    {

        SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex+1);

 

    }

    public void Quit()

    {

Application.Quit();

 

    }

 

 

 

}

Share:

viernes, 2 de mayo de 2025

Vistas a la página totales

Buscar este blog

Con tecnología de Blogger.

Translate

Semaforo Pulsador

 int led1=2; int led2=4; int led3=7; int pulsador=3; int i; void setup() {   pinMode(led1, OUTPUT);   pinMode(led2, OUTPUT);   pinMode(led3,...

Formulario de contacto

Nombre

Correo electrónico *

Mensaje *

Formulario de contacto

Nombre

Correo electrónico *

Mensaje *