This week. I got a chance to experiment with the Phaser game engine and an app called “Tiled”. I had never knew they could be used in game development because I had never heard of them prior to the day when I got the weekly email.
I was excited to experiment with game making, the last time I made a classic “game” was during my A-levels, where I used pygame, however I also made a small test game on unity as I followed along with this tutorial over the holiday break:
I really enjoyed this session! It was a nice breath of fresh air, and I was glad to see that it is all programmable in Javascript. For starters, I adored how compatible tiled was and how the collisions would work so easily with the player, and these collisions would update when the tiled map was updated.
the logic of it wasn’t hard, however there was many functions to learn. I really love the novelty of tiled, since I’ve used so much p5.js, i’ve enjoyed coding with it as it feels more new to me.
Research Report
I did some more work on my report proposal this week. After defining the rough outline structure, I used some of the writing from my proposal as a starting point, and I placed them under each heading. This helped me have something to ‘build’ on to begin with. I then wrote some points based on some quotes and sources I had found, to try and structure my argument.
I’ve been mostly working on my first chapter, which explains what traditional third places are, and their use cases.
Weekly Reading
When I first saw one of the weekly reading topics, I thought, “I already know how to create javascript classes reasonably well”, however I had never heard or used of setter or getter functions, I always assumed the only function in a function would use the method keyword. Being able to differentiate methods using these keywords seems useful.
P5.js masterclass
while this masterclass was over, I fixed my triangle class! It now stays permanently on the screen after it is “killed”, the original issue occurred since I had the wrong order of parameters for my triangle class . I also realised I could use the relative x and y position to calculate a triangle shape internally in my triangle class. This meant I could have the same amount of parameters for each shape, despite a p5.js circle, square and triangle having 3, 3 and 6 parameters respectively.
I made my shape changed when pressing a specific button (eg: press a button labelled square, you get square shapes drawn on the mouse position). I created a label array with labels for each button, so that the text would be overlaid.
I also sort of made a filter. I originally used p5.js, filter(INVERT) function however this filter kept being overwritten as the shapes needed to be drawn on top of it, due to where it was placed within my code.
I then realised I could invert the RGB colours themselves, I found a p5.js sketch that did this and I used it in my code:
I then used some console logs since I noticed no difference, this is where I realised the colour was being overwritten so I needed to update xxx in my xxx class.
I