Sunday, March 5, 2023

Foundation Year Final Project: Production Week 3.

This week, I made a number of changes to the player and to the game environment. The first change was that I fixed the players shooting direction. 
How did I fix it? I was in JetBrains Rider, editing the script when I noticed that the direction function was greyed out, which meant it was not working. I right clicked on the function and Rider suggested that I change it to a Switch case. 

I had been given some feedback from a Game Development Discord server, suggesting that I use a Switch statement, so I tried it. Rider rewrote some of the code using the Switch case. 

I also decided to rewrite the shooting position code using similar code to what is shown above. 

Both those changes, in addition to script modifications, allowed me to get the desired result above. 

However, I also decided to change the art and background. So I downloaded an asset pack on the internet and imported it into Unity.

I then used it to decorate my landscape.

The last major change this week was to add a new isometric tile map to accompany the water tile that came with the new asset pack. I coded it so that the player dies if they touch the water. 

I broke the project in a branch on Git, so I had to revert back to the main branch, taking away the progress I had made with the water. However, I as able to quickly fix it. And I also added a gameObject with a GameManager script that resets the game when the player dies.


Next week, I will work on enemy movement and shooting, and world decoration. 




No comments:

Post a Comment

My personal fashion journey... so far.

Intro.  Hello! Today I'm going to be discussing my fashion journey so far! Recently I've been getting into fashion as a personal h...