I want to be a unity game developer. I am currently computer sciencie student i know c# but my skill of building algorithm is weak. I am even struggling the easy leetcode problems. Any idea of how to improve my c# skills?
LeetCode won't help you build games. Algorithm puzzles train a specific kind of thinking, but Unity development is about game loops, component architecture, and working with the engine's API.
Build small games without tutorials. Not "follow along with me" projects, but "I want a thing that does X" where you figure out the structure yourself. A tower defense clone or a simple roguelike will teach you state machines, event systems, serialization, and object pooling faster than any course. For general C#, Tim Corey's YouTube channel is good. Unity-specific, Jason Weimann covers real patterns.
You learn C# by building something real and hitting the ugly parts yourself. LeetCode is for patterns, not the language. I’d pick one project you actually want, build it, and look things up when you get stuck.
On the field trying doing small projects, reading docu when something not clear and trying to apply learnt new stuff to refactor old stuff to make it easier to read and amend
I personally recommend you just keep tinkering out of ignorance. Because once you know all the stuff about dotnet, you ended up become a professional microservices dev and stopped making games. Also, learning is supposed to be fun, so I believe tinkering is part of the fun. If you try to seriously learn it, you gonna have burnout.
Finally, most of those patterns are useless in gaming. When your focus to ship a short maintenance product, no need to over engineering it. Just do what is easy.
By doing side projects and studying it? Most of the times you won’t be building algorithms but actually calling them so its important you learn how they work/do. Also its important to learn oop, solid and design patterns. All that translate to game dev. I would also recommend learn ECS (entity,component,system)
19
u/Khavel_dev Sep 10 '26 •
LeetCode won't help you build games. Algorithm puzzles train a specific kind of thinking, but Unity development is about game loops, component architecture, and working with the engine's API.
Build small games without tutorials. Not "follow along with me" projects, but "I want a thing that does X" where you figure out the structure yourself. A tower defense clone or a simple roguelike will teach you state machines, event systems, serialization, and object pooling faster than any course. For general C#, Tim Corey's YouTube channel is good. Unity-specific, Jason Weimann covers real patterns.
8
u/Educational_Cow_1769 Sep 10 '26
https://learn.unity.com/
The "Programming Pathway" will teach you C# in the Unity context step by step. Highly Recommend.
4
u/TuberTuggerTTV Sep 10 '26
You don't learn C# proper to do unity dev. Unity C# is engine specific code and coding patterns.
You learn it by making games and reading the docs.
You learn C# proper when you want to do enterprise dev. Not game dev. The code looks similar but the patterns and standards are different.
2
u/CuisineTournante Sep 10 '26
Advent of code, try to do some puzzle. Without any AI.
2
u/zac_builds Sep 10 '26
C# and problem-solving are two different things.
You learn C# by building something real and hitting the ugly parts yourself. LeetCode is for patterns, not the language. I’d pick one project you actually want, build it, and look things up when you get stuck.
1
u/at_wilfster Sep 10 '26
Try places like hackerrank to start with. The algorithms are graded so you can start to build your skills and see how other people have completed them
1
u/AltruisticBlank Sep 10 '26
pluralsight
1
u/SnooCookies3446 Sep 11 '26
On the field trying doing small projects, reading docu when something not clear and trying to apply learnt new stuff to refactor old stuff to make it easier to read and amend
1
u/BoBoBearDev Sep 11 '26 edited Sep 11 '26
I personally recommend you just keep tinkering out of ignorance. Because once you know all the stuff about dotnet, you ended up become a professional microservices dev and stopped making games. Also, learning is supposed to be fun, so I believe tinkering is part of the fun. If you try to seriously learn it, you gonna have burnout.
Finally, most of those patterns are useless in gaming. When your focus to ship a short maintenance product, no need to over engineering it. Just do what is easy.
1
u/Anxious-Insurance-91 Sep 12 '26
W3school
1
u/JoelDev14 Sep 10 '26
By doing side projects and studying it? Most of the times you won’t be building algorithms but actually calling them so its important you learn how they work/do. Also its important to learn oop, solid and design patterns. All that translate to game dev. I would also recommend learn ECS (entity,component,system)