top of page

MUSIC KING

What is Music King?

Music King is a video game created for the AI subject in the third grade of video games degree at CITM University.

Music King is about a music shop, where you can buy different instruments, CD's, Hardware and different components.

The main objective is to earn money to make the store a better establishment, buying new instruments and new material.

Since the video game is geared towards AI functionality, the player does not have control over the characters. In this way, the player will decide on what to spend the money earned such as more workers or to get more instruments and will ensure that the workers are comfortable and happy with the work.

lateral_shop.PNG
lateral2_shop.PNG
Intoduction

Team Members

This project is leaded by Marc Rosell Hernàndez and Pol Recasens Sarrà, two students of the CITM University.

Pol Recasens Sarrà

WhatsApp Image 2019-11-27 at 19.26.25.jp

Marc Rosell Hernàndez

pp.jpg
Team Members

Behaviour Trees

In the second assignment we are using behaviour trees to design the AI behaviour and ease the process of coding it. Below is shown the behaviour trees of the different AI agents as well as it's meaning.

ATM agent

AI - ATM_BT.jpg

The main actions of the ATM begin when it is generated. The first action to be completed will be to go to the ATM. Once he / she is there, the "work" action will be executed until one of the two conditions is met. The ATM can have a break (go to smoke) or if the cash register is full of money, he / she will go to the safe room to leave the money. If there are no customers, it means that it is time to close the store since it is night and the ATM will leave.

Restocker agent

AI - RESTOCKER_BT.jpg

The first action to be completed will be going to the store. Once is there the restocker will search for missing items in the store. Once an empty slot is detected, he/she will go to the warehouse to take that item and then return to the store to replace it. Like the ATM, once there are no customers in the store, he / she will leave.

Client agent

AI - CLIENT_BT.jpg

The first action to be completed is going to the shop. Once is there the customer will search for an item. Once the item is taken, the customer will go to the queue. If the queue is full, the customer will leave the store without buying anything and steal that item. Also if nobody attends him, the client will leave. If it gets dark, the client will leave the store unless he/she is paying. Once payed, the client will leave.

About

AI ARCHETYPES

There are three diferent types of agents. Everyone performs different actions and has a different behaviour.

ATM

man_atm.PNG

RESTOCKER

man_restocker.PNG

CLIENT

customer3.PNG
customer1.PNG
customer2.PNG

The cashiers can have two different actions besides being in the ATM. These two actions are going to smoke and go to the saferoom to leave the money.

​

The restockers go around the store looking for instruments that are out of stock and restocking them.

​

The clients  will enter the store and look for an instrument. Once they have it, they will go to the queue and pay. If there are no ATMs, after a while they will leave the store angry.

Archetypes

Download & Play Now!

Installation

To install the game follow the next steps

​

1. Click in the link you will find in the bottom of the page

​

2. Download the last release

​

3. Once the .zip is downloaded, decompress it

​

4. Execute the game and enjoy it!

 

IMPORTANT: do not modify, change or add any folder or file as you might not be able to execute the game. ___

Demo

GAMEPLAY

Client payment

The cashier can go to smoke

Day/night cycle

Game menu

Hiring workers menu

Intruments menu

Gameplay
bottom of page