# Mini games

## **"Dancing" Mini-game Overview** <a href="#dancing-mini-game-overview" id="dancing-mini-game-overview"></a>

“Dancing” is a short mini-game in the **Events Room** (metahut). Users can approach the **dance pole** and initiate the mini-game by pressing & holding **the “G” key** on the keyboard.

* Only 4 users can play at a time. Each player occupies one of 4 slots on the dancing pole.

<details>

<summary>AIM of the Feature</summary>

* More interactions & retention.
* Add dynamic activities in metahuts.
* New sources of AP income.
* Just fun ![:smile:](https://pf-emoji-service--cdn.us-east-1.prod.public.atl-paas.net/standard/caa27a19-fc09-4452-b2b4-a301552fd69c/32x32/1f604.png)

</details>

### **Gameplay** <a href="#gameplay" id="gameplay"></a>

When the game starts, the player starts dancing (animation), the camera is locked in a fixed position. Players must **press the key (some Quick Time Event)** shown on the screen **in time** (challenge = timing mechanic) to continue dancing. Each \[successfully] pressed key changes the dancing animation of the player.

* **REWARD:** Each correct move gives the player **+10** **ES\*(combo count)** (engagement score) reward (can be changed). Max. The reward per session is 200 ES.
* **RISK (COST):** 10 Energy\* _(Energy is not integrated yet)._
* **SCORING:** Consequent successful key presses (animation transitions) are recorded as a **combo score.**
  * User score is recorded & visible to all players as a leaderboard. **Each metahut keeps its leaderboard (local).**
  * The combo score is displayed on the screen (right-down corner).

{% hint style="success" %}
**Notes**

* All users within the metahut can see playing users on the dance pole (the camera angle is locked only for playing users).
* When users initiate the game, a text notification is shown in text chat (_“@user started “Dance” mini-game in Event Room!”_ ).
* In future updates, players can enter dance duels against other users (competition).
{% endhint %}

### **Conditions** <a href="#conditions" id="conditions"></a>

A player must **press the required key in time** (when the **colored circle** is in the white circle) in order to perform successful “transitions” of the dance moves.

**The game does not end until the player stops it manually.**

* **The goal** is to get as high a reward as possible (max. move count is 20).
* **Fail condition:** when a player fails, the speed of the circle and the player’s combo score resets.

<figure><img src="https://4127905672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ923xIuaQdi3K4FJJGJm%2Fuploads%2FJK1rZm9Dx8BVNxh1F1Ue%2Fimage-20230106-133913.png?alt=media&#x26;token=d0e09e1f-021a-4ede-b728-4457bb153ecd" alt=""><figcaption><p>Game Loop Diagram</p></figcaption></figure>

{% hint style="success" %}
* Pressing **any key** outside the circle **is not** a **fail condition.**
* Pressing **the wrong key** while within the white circle **is** a **fail condition.**
* Not pressing **the correct key** within the white circle **is** a **fail condition.**
{% endhint %}

### **Progression** <a href="#progression" id="progression"></a>

**Time for a key press (QTE) decreases as the player plays longer, making succeeding harder.**

With default speed, at the start, the colored circle reaches the center in 2.5 sec. The speed of the circle increases by 5% with each successful move (starting from 3rd successful move). **Max. The speed gain** is +100% (200% in total).

### **Controls** <a href="#controls" id="controls"></a>

* **Start game:** press & hold **“G”** key on dance pole when “party mode” is active (Events Room).
* **Dance moves:** press **the “W, A, S, D”** keys.
* **Exit game:** press & hold the “**Esc**” key.

### **Mini-game UI** <a href="#mini-game-ui" id="mini-game-ui"></a>

* Circles change colors based on success & failure.

<figure><img src="https://4127905672-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ923xIuaQdi3K4FJJGJm%2Fuploads%2FbgOweqvmjoJ91smjbF2i%2Fimage-20230106-100636.png?alt=media&#x26;token=ee267204-1ec2-4f44-af75-58afd1f20f8c" alt=""><figcaption></figcaption></figure>

* After each successful key pressing, a motivating animated text is displayed:
  * **2nd press - “Combo”,**
  * **4th press- “Cool”,**
  * **7th press - “Great”,**
  * **10th press - “Super!”,**
  * **15th press - “Awesome!”**

{% hint style="info" %}
The same text continues to appear **until the combo is broken** or the **next text appears.**
{% endhint %}

### **Visual Effects** <a href="#visual-effects" id="visual-effects"></a>

* Visual “burst” effect on every successful animation change.
* _Glowing of avatar (tbd)._

