Amenti – 1

The first week of the project mostly contained a lot of planning and documentation which can be tedious but deep down we know that it is a essential part to make the project go much smoother.

Besides planning and documentation I have worked on the prototype of the tutorial room where the player is introduced to the core mechanics of the game. The majority of the mechanics are based on interacting with objects and picking up stuff, like fire, life or water. And it is my job as the lead programmer of the group to come up with a solution to make these mechanics work.

What I came up with was a  simple inventory system that stores items when the player press E on certain objects. The inventory it self is very simple since it is only a String Array which we add to when the player picks something up. A String Array is a list which only takes data as texts, so when the player picks up fire for example we add “Fire” to the list. This makes it very easy to add new items to the inventory. This was not very difficult to implement. After that I had to create a script for items which allows the player to pick them up and add them to the inventory. I gave the items a triggerbox property which sets a boolean variable to true when entered and sets it to false when the player exits it. This makes it so that the player has to be within a certain reach to pick the item up. I also created a String variable where you can set the Item name which gets added to the inventory when picked up. InteractionAmenti

When the player is within reach the green text appears in the upper left corner which you can see in the image above. Which tells you what button to press and the item name. This particular item is a torch and when picked up the fire particlesystem on the torch is turned off. I also added functionality so that the player can press F to light the torches while having fire in the inventory, which can be picked up from firepits or other torches.

TutorialTorches.png

The last thing I added this week was the functionality of the door. When both torches are lit the door is raised upwards. The door is a object itself and adds the torches in the tutorial room to a list. Thereafter it checks if both torches are lit and if so it starts opening, and that is about it!

This is everything I have accomplished during the first week which I am very satisfied with. It feels great to have the inventory and item system done since it will be very useful later on for our other rooms and puzzles. Besides this programming focused work I have also been prototyping the tutorial room “design wise” where I followed a drawn concept of the room that our Lead Designer Gustav made. Here is the design concept!tutorial room

About Niclas Nordberg

2015 Programming