
2023 - Turnbased battle
This was my first project with the game art students. The project was in groups of 9, which consisted of 2 programmers and 7 artists. Our theme was the myth Narashima, for which we made a turn-based battle.
What I learned
What I learned during this project is that communication is key in a group project. This was our first project ever working together with Game Artists, I taught the artists how to use put art into our game by using Github.


During this project I worked on the item-pickup, dialogue and turn-based combat system.
What I worked on

Pickup
In this video I'm pressing on the E key to open the chest, you can also see that the chest disappears and a potion pops up. You pick the potion up and it goes straight into your inventory.


Chest and Loot Script
On the far left picture you can see the script for the chest. The chest gets destroyed and the lootbag(potion) shows up on the top left. On the picture next to it is the loot script. If there is more loot it can be given an image, lootname and dropchance like the potion.
Pickup and Lootbag script
On the picture to the furthest right is the lootbag script being shown. It can choose between all the different loot that would possibly spawn and makes it so that chosen loot spawns. In the picture next to it is the pickup. If the player collides with the loot it will be destroyed and get put in the inventory.



Dialogue
In this video you see that by pressing E the dialogue starts and by pressing the space bar you go through the dialogue, at the end you can make a choice between ja (yes) and nee (no).
Dialogueobject script
On this picture is the script for the Dialogue object. I made it a Scriptable Object and you can add dialogue and responses to it.


In this video you see a turn-based battle. Each character has a turn in which they can either attack or heal. The player can only pick Narashima, the character on the left.
Turn based battle
BattleSystem script
On the pictures to the right we are working with enum states, the opponent and player are in. There are 5 states and in each state something can happen. The player and enemy turn can choose between attack and heal. start is that the battle starts and you have win or lose.


