Making Pong in Unity 2D - #9: Cleanup & More! - In-Depth Game Development Tutorial - Beginner Level

Опубликовано: 04 Май 2026
на канале: Erkberg 🌱 The Greenening
917
32

Learn game development by creating the classic 2D game Pong in Unity in this in-depth tutorial series aimed at the beginner level.
In this ninth part, we'll clean up the project a bit and learn about some best practices, inspector attributes and a few advanced topics like architecture and conditional compilation.

Making Pong playlist:    • Making Pong in Unity 2D - Complete Tutoria...  

More Unity tutorials from me:    • Unity Tutorials / Unity Tips  

The source project is available on GitHub and will be extended as the series continues: https://github.com/Erkberg/PongUnityT...

Links:
https://docs.unity3d.com/Manual/Platf...
https://unity.com/how-to/how-architec...
https://seansleblanc.itch.io/better-m...

------------------------------------------------------------------------------------------------------
❤ Wishlist my indie game Recollection on Steam (demo available!): https://store.steampowered.com/app/18...
❤ Support me on Patreon:   / erkberg  

❤ Linktree: https://linktr.ee/Erkberg
❤ Website: https://erkberggames.com

❤ Twitter:   / erk_berg  
❤ TikTok:   / erkberg  
❤ Instagram:   / erkberggames  
❤ Facebook:   / erkberggames  
------------------------------------------------------------------------------------------------------

Timestamps
0:00 - Introduction
1:18 - Hierarchy cleanup & Prefab workflow
3:51 - Assets cleanup
6:59 - Inspector attributes
9:31 - Hard coded vs public variables
14:31 - More code cleanup & optimization
19:00 - Adding a quit button
21:13 - Conditional compilation
26:18 - Architectural thoughts
34:04 - Testing your game
37:29 - Better WebGL template
41:30 - Parting words
42:15 - Outro