top of page

Day 21: Starting anew...

What my plan was for the day?


I wanted to start another game project since my old one was rather disorganized and hard to edit for function adding.



What I accomplished?


You may be wondering what the title means. Well, I decided it was time to scrap the old game and work on another one. As much as it pained me to do so, I realized it had to be done because adding key features of a game which I wanted to implement became very difficult with how disorganized and jumbled my code was earlier. I took it as a learning, that you should always keep code organized, and blend together different parts of code together so that adding new features does not become a hassle. And so, I began all over again. But this time, I would work smarter, and implement so many basic features I never implemented in the previous game. To start off, I added player locomotion using a script. It was similar to the previous game's script, but this time, I gave the "A" and "D" keyboard buttons functionality. I also changed the player locomotion so that when going backwards, he would run backwards, rather than look forward and move backward. Once player locomotion was done, I quickly added in some idle, walking and running animations. I finished setting those up, and moved on to my camera following functions. I wanted to make the camera follow the player, but also have the mouseX and mouseY rotate the camera. I coded this into a script, which I then attached to a parent game object which had the main camera. Just doing both of these tasks took much longer than what it had taken me the first time, but I knew that this time, they would work flawlessly, and gel well with whatever functions I added on later.

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page