1/8 - 1/12
- Nathan Matarazzo
- Jan 11, 2024
- 1 min read
Updated: Jan 12, 2024
This week, I did more work on my video game project. Firstly, I improved the function that controls dribbling the basketball. using f(x) = | sin (x*3.14*1.66) |, I was able to make each dribble last 0.6 seconds. This is because if you just multiply the absolute of sin(x) by pi, it is exactly 1 second. Multiplying this by 1.67, each dribble would then take exactly 0.6 seconds, with the peak at 0.3 seconds. Furthermore, multiplying this function by a variable could control the height of each dribble, so that taller characters dribble the ball higher, but they all take 0.6 seconds no matter what. I did this because it would be easier to time up the dribbling animation with the player actually dribbling the basketball. Next, I got more work done on making the shot function work. I had to incorporate the height and jumping power of each character in the shot function. On Wednesday, I couldn't get any work done because the shop flooded. On Thursday, I finished the assets and animations of the second character that I have made, as seen in the video below, complete with a walking cycle. I plan on making each character with a different art style. I have started making the assets for the third character out of the 10 that I plan on making. I am yet to make any progress on any of the backgrounds, courts, or abilities, but I plan on getting those done after the tumultuous process of making character's animations is done.




Comments