Skip to content

Instantly share code, notes, and snippets.

@luisquerol7e8
Last active September 26, 2025 11:27
Show Gist options
  • Select an option

  • Save luisquerol7e8/33af1a534e536f9363b2b5cb1b71af42 to your computer and use it in GitHub Desktop.

Select an option

Save luisquerol7e8/33af1a534e536f9363b2b5cb1b71af42 to your computer and use it in GitHub Desktop.

Mi viaje a Japón

No carga la foto :(

El trayecto

Los vuelos

El trayecto para llegar al país nipon, se hizo bastante largo, pues se mezclaron las ganas de llegar con las infernales escalas de los diferentes vuelos que tuve que tomar.

Trayecto Tiempo aproximado vuelo Tiempo en aeropuerto aprox
Barcelona-Frankfurt 2h y 30 mins 1h y media
Frankfurt-Beijing 11h-12h 24h
Beijing-Tokyo 3-4h 1h

La llegada

La peor parte fue definitivamente estar en el aeropuerto de China un dia entero, encima sin salir de ahí dentro y sin ningun tipo de conexión a internet. Además cuando llegamos al aeropuerto de Tokyo tuvimos un problema con una maleta que nos tuvieron qu enviar al hotel el dia siguiente, ya que la maleta se habia quedado retenida en China.

En Japón

Pues ya en el país del sol naciente fui a los siguientes lugares

  1. Tokyo
  2. Kanazawa
  3. Kioto
  4. Nara
  5. Tokyo (otra vez)

No carga tt

Las palabras de un genio

"Japón está muy guapo, todo el mundo tendria que ir y quiero volver ya." Luis Querol Valdés

Turismo en Japón

Página oficial turismo Japón

Mira que guapo así se mueve un personaje 2D (porque quiero y porque puedo crack)

public float movePlayerX;
   public Rigidbody2D rbplayer;
   public float speedPlayer = 3.0f;
   public float jumpPlayerForce = 280.0f;
   public bool isGrounded = true;
   public float distanceRaycastPlayer = 0.55f;
   public Animator animatorPlayer;


   // Start is called before the first frame update
   void Start()
   {
       rbplayer = GetComponent<Rigidbody2D>();
       animatorPlayer = GetComponent<Animator>();
   }


   // Update is called once per frame
   void Update()
   {
       movePlayerX = Input.GetAxis("Horizontal");
       Debug.Log(movePlayerX);


      if (movePlayerX < 0)
      {


       transform.localScale = new Vector3 (-2.862619f, 2.862619f, 2.862619f );
      }
      else if (movePlayerX > 0)
      {
       transform.localScale = new Vector3 (2.862619f, 2.862619f, 2.862619f );
      }
      if (Input.GetKeyDown(KeyCode.UpArrow) && isGrounded)
      {
       Jump();
      }
      if(Physics2D.Raycast(transform.position,Vector3.down,distanceRaycastPlayer))
      {
       isGrounded = true;
      }
      else
      {
       isGrounded = false;
      }
      Debug.DrawRay(transform.position, Vector3.down * distanceRaycastPlayer, Color.green);
           //pone true en el bool isRunning del animator
    
      if (movePlayerX !=0)
      {
       animatorPlayer.SetBool("isRunning", true);
      }
      else if (movePlayerX== 0)
      {
       animatorPlayer.SetBool("isRunning", false);
      }
//prueba salto
      if (!isGrounded)
      {
       animatorPlayer.SetBool("isJumping", true);
      }
      else if (isGrounded)
      {
       animatorPlayer.SetBool("isJumping", false);
      }
   }
    /// <summary>
   /// This function is called every fixed framerate frame, if the MonoBehaviour is enabled.
   /// </summary>
   void FixedUpdate()
   {
       rbplayer.velocity = new Vector2(movePlayerX*speedPlayer, rbplayer.velocity.y);
   }
   void Jump()
   {
       rbplayer.AddForce(Vector2.up * jumpPlayerForce);
   }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment