Somewhere I struggled as a Unity beginner was not really knowing how a project should be structured, and not having good explanations for *what* code did when I copied it from the internet.
This project is designed to explain all of the little "gotchas" a new user might run into.
It's released under a super-permissive MIT license :)
Love it! Of the top of my head.. I'd call paddle paddlebase. Also be weary of manager classes. It's usually a code smell and tends to break as projects grow.
Also try to separate unity classes/features from logic.
I really hope this keep going. There really is very little content out there for advanced stuff
I specifically avoid using "base" as a pre/suffix, but I'll think about it. It might help learners understand the relationship between Paddle, AIPaddle, and PlayerPaddle.
be weary of manager classes.
In general, definitely, it's good to be careful about statics/Managers. They often become a catch-all for various features that should not be their responsibility. For the very limited scope of the Pong ruleset, though, it does the job perfectly and introduces an often misunderstood concept.
Also try to separate unity classes/features from logic
You really did good work there. What I was talking about was growing it into an example how the structure/architecture of an achtual larger project should be.
Somewhere I struggled as a Unity beginner was not really knowing how a project should be structured, and not having good explanations for *what* code did when I copied it from the internet.
This project is designed to explain all of the little "gotchas" a new user might run into.
It's released under a super-permissive MIT license :)
Love it! Of the top of my head.. I'd call paddle paddlebase. Also be weary of manager classes. It's usually a code smell and tends to break as projects grow.
Also try to separate unity classes/features from logic.
I really hope this keep going. There really is very little content out there for advanced stuff
I specifically avoid using "base" as a pre/suffix, but I'll think about it. It might help learners understand the relationship between Paddle, AIPaddle, and PlayerPaddle.
In general, definitely, it's good to be careful about statics/Managers. They often become a catch-all for various features that should not be their responsibility. For the very limited scope of the Pong ruleset, though, it does the job perfectly and introduces an often misunderstood concept.
could you explain this point a bit more?
The base thing is taste.
You really did good work there. What I was talking about was growing it into an example how the structure/architecture of an achtual larger project should be.
Ahh, gothca. Thank you for the kind words :)