# #2 MOVER y DISPARAR Personajes

<img src="/files/4p75J5EuHpIYM1dCkapv" alt="Resultado final" width="134">

{% hint style="info" %}
**NIVEL DE LA ACTIVIDAD - INICIACIÓN**
{% endhint %}

## RETO

El RETO de hoy es sencillo: **Enseñar a los niños a mover** un personaje dentro del mundo utilizando instrucciones simples en Kodu. Al final, podrán explorar su mundo y enfrentar retos básicos relacionados con el movimiento.

* **Objetivo**: Familiarizarse con el entorno de Kodu y sus herramientas básicas.
* **Descripción**: Los niños crearán un mundo sencillo, donde agregarán un terreno, un cielo, y algunos objetos como árboles o casas. Aprenderán a moverse dentro del mundo y a cambiar la vista.

**1.- MATERIALES NECESARIOS PARA ESTA ACTIVIDAD**

* [ ] **Ordenador o portátil**
* [ ] **KODU GAME LAB (Mira en el escritorio el icono)**
* [ ] **¡MUCHAS GANAS DE JUGAR!**

{% hint style="success" %}
**2.- PREPARAR EL ENTORNO**
{% endhint %}

* **Abrir Kodu Game Lab**:
  * Inicia el programa y selecciona EL MUNDO QUE YA CREASTE LA SEMANA PASADA
* **Crear un Terreno Básico**:
  * Usa la **herramienta de paisaje** para pintar un terreno donde el personaje pueda moverse.
  * Asegúrate de incluir espacio suficiente (al menos un terreno de 10x10).

**2.2. Agregar un Personaje**

* Haz clic derecho en cualquier parte del terreno y selecciona **Agregar**.
* Elige un personaje, como "Kodu". Este será el protagonista del juego.

***

<figure><img src="/files/aCFuX3YUqIuCOuTChzqP" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**3.- PROGRAMAR EL MOVIMIENTO BÁSICO**
{% endhint %}

1. **Entrar al Modo de Programación**
   * Haz clic derecho sobre el personaje y selecciona **Programar**.

2. **Configurar Instrucciones para el Movimiento**

   * En la pantalla de programación, configura estas líneas:
     * **CUANDO**: El jugador presione las flechas del teclado (o un control en caso de consola).
     * **HACER**: Moverse en la dirección indicada.
   * Guarda la programación.

3. **Probar el Movimiento**
   * Sal del modo de programación y usa las flechas del teclado para mover el personaje.

<figure><img src="/files/MslHUcAUa9JLu84gBEIE" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**4.- PERSONALIZAR MOVIMIENTOS**
{% endhint %}

1. **Modificar Velocidad del Personaje**
   * Regresa al modo de programación y ajusta la velocidad en el comando de movimiento.
2. **Agregar un Estilo de Movimiento**
   * Configura que el personaje emita un sonido o deje un rastro al moverse:
     * **CUANDO**: El personaje se mueva.
     * **HACER**: Emitir un sonido o cambiar el color del terreno detrás de él.

<figure><img src="/files/B6NMA9ilQmNKPg19eTuY" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
**5.- INTRODUCIR OBSTÁCULOS Y RETOS**
{% endhint %}

1. **Crear Obstáculos**
   * Agrega objetos como rocas o árboles al terreno para que el personaje tenga que rodearlos.
   * Estos pueden colocarse estratégicamente para formar un camino o laberinto.

2. **Añadir una Meta**
   * Coloca un objeto, como una estrella, que el personaje deba alcanzar.
   * Programar el personaje para ganar un punto al tocar el objeto:

     * **CUANDO**: Toque la estrella.
     * **HACER**: Ganar un punto (o mostrar un mensaje como "¡Bien hecho!").

3. **Incluye saltos**

   * **CUANDO**: Toque la estrella.
   * **CUANDO** presiones alguna tecla...

   <figure><img src="/files/rVF01flHlWi0z7JB0nLD" alt=""><figcaption></figcaption></figure>

   <figure><img src="/files/LpnTNkDEQ2tBde3wvsHo" alt=""><figcaption></figcaption></figure>

4. **Incluye disparos**

   * **CUANDO**: Veas a un enemigo.
   * **CUANDO** presiones alguna tecla...

   <figure><img src="/files/WRFqwQm88FxjO37RUNMm" alt=""><figcaption></figcaption></figure>

5. **Incluye el daño que puede hacer**

<div><figure><img src="/files/ktmrNdtMkR6h0Hhzl1ZX" alt=""><figcaption></figcaption></figure> <figure><img src="/files/y0gI0bDWBqikBvLZVnap" alt=""><figcaption></figcaption></figure></div>

{% hint style="danger" %}
**RETOS ADICIONALES**

**Nivel Básico**:

* Crea más estrellas en el terreno para recogerlas todas antes de que acabe el tiempo.

**Nivel Avanzado**:

* Agrega un enemigo que persiga al personaje, obligándolo a esquivar mientras busca las estrellas.
  {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://educarobot.gitbook.io/kodu-gamelab/kodu/iniciacion/2-mover-y-disparar-personajes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
