Final Project- Taxi Game

Code:

https://glitch.com/edit/#!/final-project-nyc?path=index.html%3A1%3A0

Video Presentation: 

https://drive.google.com/file/d/1J74zfVLNfqdXFSAt9HKK2z_UgSlFmQiU/view?usp=sharing


    For my project, I created a run and jump game. It is New York City-themed so I used illustrator to create a taxi and the city skyline. I watched the coding train video to learn how to code a game like this. The goal of the game is to use the space bar to jump over the potholes. In general, I think the project for me was very successful as I made many discoveries along the way and stuck to my calendar of work that I projected for myself at the initial proposal.
     In terms of discoveries, I learned how to make new sketch files that separated the classes of the taxi and hole from the javascript file which made it easier to look at and mess with. I also learned how to randomize an object, in this case, I learned how to randomize the pot hole so it was not a continuous stream which would not have been fun. I also discovered the "collideRectRect" function in the jsdeliver library which helped the code know when the user does not jump over the hole successfully. 
    In terms of failures/struggles, this project taught me how to work with transparent objects. Since the taxi and hole is actually square I had to work on making the transparency around the objects as small as possible because the taxi would never successfully jump over the hole if there was a lot of space around them. Another struggle I had, I had to constantly play with the sizes of the objects as well as the gravity of the taxi so it could float in the air with the perfect time to get over the hole. I also played with the velocity of the hole moving so the game could be tangible, yet challenging. Another struggle was finding the perfect sound balance for the game because I did not want the song to overpower the traffic noise. The thud sound also was a struggle because there was a delay so I had to cut it so it would crash when the car hit the hole. Another final struggle was the small differences that needed to be changed in the code because I made the project in p5 and had to transfer it over to glitch. In glitch initially, my sound was not loading and the conditional statements for the timer and start button to disappear were not working for some reason. 
    In the end, I learned a lot from this project and this class in general given that it was my first time ever learning any kind of coding. Although it could be very frustrating when the code is not working initially, in the end, it is very rewarding when it works. 


Comments

Popular posts from this blog

Example

OOP & Arrays Homework