Week 5 – Midterm Progress

The concept I was going for was a potions game. The idea was, that the user enters the witches room and will have to make a potion according to what ingredients they are assigned. They will be given a list of ingredients but the catches that they only see it for a few seconds and then it disappears. The game is, they have to see if they memorise the ingredients and created the correct potion in order to pass the game. If they collected the correct ingredients, then they made the potion correctly, however, if they accidentally use the wrong ingredient or put it in the wrong order, then the potion explodes and they have to start all over again. So the user interaction is basically creating the potion and memorizing the ingredients. I made a vision board in order to see how the aesthetics will look like together.

The most frightening part of my project was initially the sound. The reason is because every time I try to add it, it usually goes through an errors first. That is why I wanted to test it and get it over with from the beginning. At first I did struggle, every time I wanted to add the audio it just wouldn’t work.

I was using the wrong approach. I tried doing async and await first but then remembered that we used loadSound in class. It then later worked out but I still struggle to make the bgm a loop. Whenever I try to apply the code, it just cuts out the music, so that’s one thing I’ll focus on this week.

I was also panicking over how I’ll let the cards disappear after a certain amount of time, but I quickly reduced that risk by learning about millis(). It “Returns the number of milliseconds since a sketch started running.” and I got that from the reference p5 page.

Things to add: this is all just a rough draft and me experimenting so I haven’t finished the final project yet. I want to make the witches room using the shapes that we are used to, but also add images as the ingredients inside of the jars. For the ingredients cards, I will be using the skills that we learned last week about displaying texts and having them put into a words csv.

I will also continue to use classes for the ingredients, as well as OOP. I also will add more sound effects for the pouring and the boom if they got it wrong. I want to make some push effect when we click the start button too.

Leave a Reply