This project started from an existing game template, and the video shows the original template next to the modified version.
I implemented proper tennis rules, improved the ball physics so shots went where the player aimed, and made the hit response much more precise instead of letting the ball fly unpredictably.
I gave the opponent more depth, added new animations and VFX, sped up the game loop, and fixed various bugs. I also added a timing circle that shows when to swing as the ball gets closest, which also affects shot power.
As with the other template games, I improved runtime performance so the game ran smoothly inside the app. I also reduced the build size from over 30 MB to 8 MB, a cut of more than 73%, which kept loading times under 5 seconds.
Targets practice mode
I added a targets practice mode where the player shoots at an animated target. The score depends on how precisely the ball hits the target and how well the shot was timed.
This is where the shared config system paid off: switching between this mode and the regular game was a single config value, so both shipped in the same build.
I used a tweening library for all the animations, including the target movement.
Gallery