Racing game
Author: Evaldas Petnjunas
Motivation
The main motivation behind the project was a growing interest in game development, particularly creating a small racing game. Repository link
Plan
- Research/read the three.js documentation
- Find and load the model of the car and the track
- Make logic for moving the car on the track
- Add user inputs(the ability to accelerate and decelerate the car)
- Add physics
- Add UI for the game
- Add weather effects snow/rain in pure WebGL
Milestone 1 (10.03)
- Setup environment and read the documentation(3h)
- Load 3D model of a car and the track(3h)
Finding the models or reading the documentation was not particularly hard, but making sure the loaded models look the way they need to look took quite a lot more time than anticipated(6h), but in the end I was left with 2 loaded models: the track and the car


Milestone 2 (24.03)
- Add movement logic(5h)
- Add user inputs(1h)
Adding user inputs had one minor setback, as the KeyboardEvent keyCode property got deprecated(link), but it did not pose a big problem, as it was still possible to use the KeyboardEvent key property(link). The most problematic part was the adding the movement logic. After writing the code, everything looked logical and correct, but as it always happens, the car was behaving not as expected, as when making a left or a right turn, the car would start orbiting the X axis either clockwise or counterclockwise. The fix was kind of straighforward, despite it taking almost 9 hours. The issue was in the car models rotation along the x axis.

Milestone 3 (24.03)
- Add physics(7h)