I started the week off by learning the fundamentals of binary, it’s been several years since I had even touched binary so it took a while to understand the subject to the level we were being taught. It was definitely something I struggled with at the start but spending extra time at home helped me understand the topic.
I also started working on my phaser project. I began by stripping down the phaser project demo and seeing what parts of the code affected what, this gave me a good understanding of how a phaser project is made / what the key parts of the project are such as the create and update function..
I also played around with spawning in static meshes such as platforms and the ground floor and saw what aspects of the class I can change such as the scale on each axis and getting an understanding of how it affects the project. I did this by creating a “ground” platform in the create function and assigning it the correct physics.
After this was done I created a player class and gave it the variables needed, such as player.health. I also gave it the ability to move left and right and to collide with static classes such as walls, ceilings and the floor.
My goals for next week are to give the player the ability to shoot their weapon and for it to collide with enemies and have a function called when the bullet collides with the enemy. But before I do this , I need to create an enemy class and give it all of the variables it needs. I don’t need the enemy to move as I just need to test if the bullet collision works or not. I’m also aiming to find useful assets in order to create a map but this is not a high priority on the gantt chart.