striqer duqs
About
MUST USE CONTROLLER
PROTOTYPE
CONTROLS (based on Xbox mappings)
LT (hold) > possess ball if close enough
RT (hold) > sprint
A > pass ball - hold for more power
B > shoot ball - hold for more power
LB/RB > adds curve to shots
striqer duqs is a project I spent many weeks on a few months back. There is not an actual soccer "game" ready to be played, but you can do free play and run around and practice some cool curving shots!
Where I went wrong on this project was in the fundamental way I built it - I did not use a component-based structure in building it up. Static classes had just "clicked" for me at the time, and I basically made a "God Class" that is nearly impossible to maintain.
The problem is not so much this class, as it is just a helper class, but rather with how I built everything around it. The class is awesome, has tons of overloads, and makes building a soccer game tremendously easier.
One thing I'm really proud of with this project is the camera system. I used Cinemachine and its state system to swap the camera from player to player whenever they gain possession. It turned out really well in my opinion.
The shooting is also something fun to do - just stand at midfield and take shot after shot (the ball moves to center when exiting field bounds). You can curve the shot by holding RB or LB. The longer you hold shoot and RB/LB, the more spin you will have on your shot.
I can't think of another project I've done that I spent more time on than this one. Making and publishing a soccer game is a big goal of mine. I play the Gamecube version of Mario Strikers with my son and we both have a blast playing it. I'd love to make something similar one day.
I plan on continuing this project one day, but I'm going to need to start fresh. I will likely use the static class I was talking about earlier and build a flexible component-based game around it to avoid it becoming unmaintainable, which is exactly what this project turned into unfortunately.
It still taught me a ton and I have no regrets in doing it as I think I still have a skeleton for what could be one day a great arcade-style soccer game.
The audio synthesizer in the main menu is also really cool to me, though I can't take credit for that - I used an asset from the Unity Asset Store to accomplish this.
You can find the code for this at my Github. You can find the "God Class" I was referring to at: /Scritps/Util/Game.cs *please note - I only version controlled the "Assets" folder of this project.
Please let me know what you think!