Game Dev Digest — Issue #202 - Clean Code
Tags: gamedev, unity3d, csharp, news
Published: 2023-09-01 13:31:58

---
title:  Game Dev Digest — Issue #202 - Clean Code 
published: true
date: 2023-09-01 13:31:58 UTC
tags: gamedev,unity,csharp,news
canonical_url: https://gamedevdigest.com/digests/issue-202-clean-code.html
series: Game Dev Digest - The Newsletter About Unity Game Dev
---

### Issue #202 - Clean Code 

*This article was originally published on [GameDevDigest.com](https://gamedevdigest.com/digests/issue-202-clean-code.html)*

![Issue #202 - Clean Code ](https://gamedevdigest.com/assets/social-posts/issue-202.png)

Tips to improve your code quality, editor tools, graphics and much more. Enjoy!

---

[**The Source of Readability**](https://loup-vaillant.fr/articles/source-of-readability?)  - Readability is often treated as a subjective thing. When someone says code is more readable, what they really mean is they can more easily read it. The straw-man goes, this is all taste and convention, just follow the team’s rules and use the auto-formatter.
[_loup-vaillant.fr_](https://loup-vaillant.fr/articles/source-of-readability?)

[**How to Animate a Realistic 3D Creature With Ziva VFX**](https://80.lv/articles/how-to-animate-a-realistic-3d-creature-with-ziva-vfx/)  - Anupam Awasthi shared some tips on how to make creature models in Ziva VFX and explained the process behind muscles and skin simulations for beginners.
[_80.lv_](https://80.lv/articles/how-to-animate-a-realistic-3d-creature-with-ziva-vfx/)

[**How to add sprite preview to the Inspector window**](https://www.sunnyvalleystudio.com/blog/unity-2d-sprite-preview-inspector-custom-editor)  - We often use Scriptable Objects to store data about our in game items. To extend what we can see in the inspector we can create a Custom Editor for our MonoBehaviours or Scriptable Objects.
[_sunnyvalleystudio.com_](https://www.sunnyvalleystudio.com/blog/unity-2d-sprite-preview-inspector-custom-editor)

[**Compute Shaders in Unity: Boids simulation on GPU, Shared Memory**](https://www.artstation.com/blogs/degged/Ow6W/compute-shaders-in-unity-boids-simulation-on-gpu-shared-memory)  - Within this article, we will explore the implementation of the Boids algorithm, harnessing the capabilities of compute shaders to simulate objects' group behaviour. This pattern, commonly observed among creatures like birds, fish and other animals, is known as flocking.
[_Danil Goshko_](https://www.artstation.com/blogs/degged/Ow6W/compute-shaders-in-unity-boids-simulation-on-gpu-shared-memory)

[**What Is The Discovery Queue?**](https://howtomarketagame.com/2023/08/28/what-is-the-discovery-queue/?)  - Every indie developer needs to learn one very important factor about marketing a game on Steam: your job is not to reach out to every potential fan and individually ask them to wishlist your game, your job is to convince a very small but potent audience to get excited and they wishlist it and then Steam notices that excitement and show your game to a wider audience.
[_howtomarketagame.com_](https://howtomarketagame.com/2023/08/28/what-is-the-discovery-queue/?)

[**How to create a Mario Kart Item Box with Unity Shader Graph**](https://www.jettelly.com/blog/creating-mario-kart-item-box-with-shader-graph-in-unity/?)  - In this article, we’ll dive into the fascinating realm of Shader Graph and discover how to create an impressive visual effect for the Item Box, giving it that authentic Mario Kart touch. Join me as I guide you through the step-by-step process, so you can incorporate this element into your game and take the players’ experience to the next level. Get ready to accelerate in style!
[_jettelly.com_](https://www.jettelly.com/blog/creating-mario-kart-item-box-with-shader-graph-in-unity/?)

[**How to Create Loopable Music for Action/Adventure Games?**](https://old.reddit.com/r/GameDevelopment/comments/162q8hw/how_to_create_loopable_music_for_actionadventure/)  - Video game music differs in many ways from film music. While a film composer can follow the scenes from shot to shot, in video games, this is impossible since events occur in real time, generating quasi-randomly. (Except, of course, for pre-rendered frames.) This is why the background music for video games often consists of one or more loopable tracks for each mood, key moment, activity, etc. There are tracks specifically for battles, different locations, or rooms, often even a more dynamic combat music for boss fights, and the list could go on.
[_oliverkovacscomposer_](https://old.reddit.com/r/GameDevelopment/comments/162q8hw/how_to_create_loopable_music_for_actionadventure/)

[**How to paint random tiles with weighted probability – Unity Tilemap | 2D Extras**](https://stuartspixelgames.com/2023/08/31/how-to-paint-random-tiles-with-weighted-probability-unity-tilemap-2d-extras/)  - I have written a custom brush script (free code for your projects below the examples) that will allow you to paint random tiles based on a probability.
[_stuartspixelgames.com_](https://stuartspixelgames.com/2023/08/31/how-to-paint-random-tiles-with-weighted-probability-unity-tilemap-2d-extras/)

## Videos

[![Tips for creating your own C# code style guide | Tutorial](https://gamedevdigest.com/assets/images/yt-bKGMkkf4X0o.jpg)](https://www.youtube.com/watch?v=bKGMkkf4X0o)
[**Tips for creating your own C# code style guide | Tutorial**](https://www.youtube.com/watch?v=bKGMkkf4X0o)  - Pick up useful tips and tricks for developing and maintaining a clear and helpful code style guide that can help your team work more efficiently. This video provides an overview of the guidelines from our "Create a C# style guide: Write cleaner code that scales” e-book: https://on.unity.com/45rvCUX
[_Unity_](https://www.youtube.com/watch?v=bKGMkkf4X0o)

[**A Plague Tale: How The Rats Work | AI and Games #73**](https://www.youtube.com/watch?v=1R7W8LVvegk)  - The Plague Tale games are known for the swathes of rats that infest the lands, and do their best to kill the player and everyone else. In this episode, we dig into detail on how the rats actually work, and how it ties back to the Micro Machines games of the early 1990s.
[_AI and Games_](https://www.youtube.com/watch?v=1R7W8LVvegk)

[**Unity Netcode 100% Server Authoritative with Client Prediction and Reconciliation**](https://www.youtube.com/watch?app=desktop&amp;v=-lGsuCEWkM0)  - Synchronizing Rigidbodies in Unity Netcode for GameObjects is NOT EASY - BUT we are going to get into it. This video is Part 1/2 about handling prediction, reconciliation, and other techniques related to lag and cheating in multiplayer games! It's also the first video in the Kart series where we add additional REAL players to the project with Netcode for GameObjects! …
[_git-amend_](https://www.youtube.com/watch?app=desktop&amp;v=-lGsuCEWkM0)

[**EXTRACTING Components In Unity**](https://www.youtube.com/watch?app=desktop&amp;v=qDoevls1wmI)  - In this tutorial, I'll showcase a simple tool for extracting components from the Unity component context menu. This tool incorporates various techniques, including context menus, coping properties, undo queue for tools and the little known Unity Editor Internal library.
[_Warped Imagination_](https://www.youtube.com/watch?app=desktop&amp;v=qDoevls1wmI)

[**Physics systems, ropes and pressure simulations in Heavenly Bodies | Unity Creator Spotlight**](https://www.youtube.com/watch?app=desktop&amp;v=NlXJuiKyaOs)  - Creator Spotlight: Heavenly Bodies
[_Unity_](https://www.youtube.com/watch?app=desktop&amp;v=NlXJuiKyaOs)

[**The Unity Dropdown: Get value, set value and styling guide**](https://www.youtube.com/watch?v=07fvbd2aoyQ)  - How to use Unity Dropdowns: Learn to craft dropdown menus, configure dropdown values through the inspector, and retrieve selected options from user interactions. We'll delve further by dynamically adding and removing values using code, while also discovering techniques to customize dropdown graphics for seamless integration with your game's visuals. Additionally, we'll cover associating script-triggered actions with value changes, a feature that might come in handy.
[_Christina Creates Games_](https://www.youtube.com/watch?v=07fvbd2aoyQ)

[**UI Toolkit Primer - Build UIs like a Programmer**](https://www.youtube.com/watch?v=I1JcytXwXM4)  - Building interfaces is now effortlessly simple with the powerful new UI Toolkit. I'll guide you through how I, as a programmer, construct these interfaces and walk you through the essential fundamentals of the UI Toolkit.
[_Tarodev_](https://www.youtube.com/watch?v=I1JcytXwXM4)

[**Showing grid on a map in Unity - Grid Placement System P2**](https://www.youtube.com/watch?v=nKF4Pwb-6Ow)  - In this Unity tutorial we will add a Grid on top of our map by creating a custom grid shader. At the end of this tutorial you will have a grid placement system that you can use in your own project.
[_Sunny Valley Studio_](https://www.youtube.com/watch?v=nKF4Pwb-6Ow)

[**7 Tips To Make Beautiful Game Background A Beginner Guide | Unity Game Art**](https://www.youtube.com/watch?v=r8mIVva60k8&amp;t=5s)  - Hey there, fellow game devs in this video I am making my first log and along the way I will share my experiences and some tips with you all to help you make your game backgrounds. From choosing the perfect colors to crafting every little detail, we'll uncover the secrets that make these backgrounds so visually stunning. And guess what? It's not just about looks. We'll show you how these backgrounds play a sneaky role in making your gaming experience even more awesome.
[_Mir_](https://www.youtube.com/watch?v=r8mIVva60k8&amp;t=5s)

[**Emergency Meeting! It's the 'Among Us VR' Postmortem**](https://www.youtube.com/watch?v=m6c3y6MK-AU)  - In this 2023 Future Realities Summit session, Jennifer Rabbitt (Lead Producer), Michal Ksiazkiewicz (Design Director), and Shawn Patton (Principal Game Designer) break down the benefits of porting and playtesting, schedules and shenanigans. They also explain some of the issues they faced and ultimately voted off the ship to succeed in releasing an amazing game on time during a pandemic.
[_GDC_](https://www.youtube.com/watch?v=m6c3y6MK-AU)

[**Unity 2D Top Down Bullet Hell Tutorial**](https://www.youtube.com/watch?v=OxDMHn1o0LA)  - A comprehensive 2D top-down pixel tutorial showing how to potentially implement a bullet hell type of system in Unity.
[_Stephen Hubbard_](https://www.youtube.com/watch?v=OxDMHn1o0LA)

[**Collide And Slide - *Actually Decent* Character Collision From Scratch**](https://www.youtube.com/watch?v=YR6Q7dUz2uk)  - How to make actually decent collision for your custom character controller. Hopefully you find this helpful and people will finally stop saying "jUsT uSe DyNaMiC rIgIdBoDy!!!1!!11!!"
[_Poke Dev_](https://www.youtube.com/watch?v=YR6Q7dUz2uk)

[**Moving Mountains: Speedy Level Creation as a Desperate Indie Dev**](https://www.youtube.com/watch?v=XK-yTqYAD-c)  - Creating a game as a solo indie developer requires a great deal of cunning tricks to do the work of an entire team as one person—especially when it comes to building levels. In this 2023 Level Design Summit talk, DinoBoss CEO Edward Kay dives deep into the development of the mountain swinging game Hang Line to explain how to extract the maximum amount of gameplay variety from a single core mechanic, and how to build levels as efficiently as possible through clever use of tools.
[_GDC_](https://www.youtube.com/watch?v=XK-yTqYAD-c)

## Assets

[![50% off Omabuarts Studio - Publisher Sale](https://gamedevdigest.com/assets/images/1693573888.png)](https://assetstore.unity.com/publisher-sale?aid=1011l8NVc)
[**50% off Omabuarts Studio - Publisher Sale**](https://assetstore.unity.com/publisher-sale?aid=1011l8NVc)  - Get 50% off Omabuarts Studio assets. Omabuarts Studio is best known for the signature Quirky Series, featuring hundreds of animals in a cute and wacky style. Their art is suitable for different platforms, and has been used in various titles. PLUS, get [Quirky Series - River Animals Vol 1](https://assetstore.unity.com/packages/3d/characters/animals/quirky-series-river-animals-vol-1-183279?aid=1011l8NVc) for FREE with code OMABUARTS
[_Unity_](https://assetstore.unity.com/publisher-sale?aid=1011l8NVc) **Affiliate**

[**Fantasy And Sci-Fi Essentials For Unity Bundle**](https://www.humblebundle.com/software/fantasy-and-sci-fi-essentials-for-unity-software?partner=unity3dreport)  - Amazing sci-fi & fantasy assets for Unity.
Propel your Unity game project to new heights of visual fidelity with this massive sci-fi and fantasy asset bundle, crafted by some of the dev scene’s most esteemed content creation studios! You’ll get all the building blocks needed to craft impressive and immersive game worlds, including a vast catalog of sci-fi and fantasy creatures, high-end animation sets for all manner of entities monstrous to mundane, stunning environment packs, and much more. As a bonus, you’ll also get a voucher for the Unity Asset Store good for 10% off your next purchase!
Pay what you want for this enormous asset bundle valued at over $2,500, and help support Alzheimer's Research UK with your purchase!
[_Humble Bundle_](https://www.humblebundle.com/software/fantasy-and-sci-fi-essentials-for-unity-software?partner=unity3dreport) **Affiliate**

[**The Complete Blender 3D Modeling Online Course Mega Bundle**](https://www.humblebundle.com/software/complete-blender-3d-modeling-online-course-megabundle-software?partner=unity3dreport)  - Boost your 3D modeling skills. Get access to comprehensive tutorials that’ll help you bring your dreams to life with this mega bundle of Blender 3D modeling courses from Mammoth Interactive! Featuring over 68 hours of online tutorials being made available first exclusively through Humble Bundle, this comprehensive series includes foolproof, step-by-step, cookbook-style instructions to build a variety of characters, environments, and more. Whether you're a complete beginner or looking to take your 3D modeling skills to the next level, this bundle has it all. Help support Children's Miracle Network Hospitals with your purchase
[_Humble Bundle_](https://www.humblebundle.com/software/complete-blender-3d-modeling-online-course-megabundle-software?partner=unity3dreport) **Affiliate**

[**OpenFlowMap**](https://github.com/omid3098/OpenFlowMap)  - Generate flowmap dynamically from your scene.
[_omid3098_](https://github.com/omid3098/OpenFlowMap) *Open Source*

[**Visual Compositor Overview**](https://docs.unity3d.com/Packages/com.unity.visual-compositor@0.22/manual/index.html?userID=aa8abe48-f440-4bf6-b2d9-605f671cbf0f&amp;es_id=54108d205f)  - Visual Compositor provides a node based graph editor to do image compositing. The graph is used to construct rendering sources and flow, in order to output layers, which are then stacked together using blending options to produce the final image.
[_Unity_](https://docs.unity3d.com/Packages/com.unity.visual-compositor@0.22/manual/index.html?userID=aa8abe48-f440-4bf6-b2d9-605f671cbf0f&amp;es_id=54108d205f)

[**Unity-Theme**](https://github.com/IvanMurzak/Unity-Theme#readme)  - Create palettes of colors and components to change specific colors on a specific visual element. Very useful for UI.
[_IvanMurzak_](https://github.com/IvanMurzak/Unity-Theme#readme) *Open Source*

[**Exarion**](https://botsop.itch.io/exarion)  - Magical Alpha map creation tool
[_botsop.itch.io_](https://botsop.itch.io/exarion)

[**UnityAsync**](https://github.com/coryleach/UnityAsync?)  - Async task utility package for Unity Helper methods for starting tasks on the Unity thread. Start and await coroutines from any thread.
[_coryleach_](https://github.com/coryleach/UnityAsync?) *Open Source*

[**Audio-Manager-for-Unity**](https://github.com/microsoft/Audio-Manager-for-Unity?)  - A tool for defining and executing audio behaviors in Unity in a node based editor
[_microsoft_](https://github.com/microsoft/Audio-Manager-for-Unity?) *Open Source*

[**HueFolders**](https://github.com/NullTale/HueFolders?)  - Goal of the plugin is to visually organize the workspace and make navigation in the project files easier.
[_NullTale_](https://github.com/NullTale/HueFolders?) *Open Source*

[**Unity-Editor-History**](https://github.com/BedtimeDigitalGames/Unity-Editor-History?)  - A small tool with a huge workflow impact! With Editor History installed you can navigate back and forth through your selection history with the back/forward buttons on your mouse! The selection history can also be navigated through its own window by clicking the Editor History button in the Unity toolbar.
[_BedtimeDigitalGames_](https://github.com/BedtimeDigitalGames/Unity-Editor-History?) *Open Source*

[**unity-delaunay**](https://github.com/OskarSigvardsson/unity-delaunay?)  - A Delaunay/Voronoi library for Unity, and a simple destruction effect
[_OskarSigvardsson_](https://github.com/OskarSigvardsson/unity-delaunay?) *Open Source*

[**mangofogunity2d**](https://github.com/mkwozniak/mangofogunity2d?)  - MangoFog2D is a 2D/3D mesh rendered fog of war system for the Unity Engine. It's based off TasharenFogOfWar except it can use a MeshRenderer, SpriteRenderer, or render directly to the GPU. Plus several other features.
[_mkwozniak_](https://github.com/mkwozniak/mangofogunity2d?) *Open Source*

[**PrimeTween**](https://github.com/KyryloKuzyk/PrimeTween?)  - PrimeTween is a high-performance, allocation-free animation library for Unity. Animate anything with just one line of code, tweak all animation properties directly from the Inspector, and create complex animation sequences. No runtime memory allocations, ever.
[_KyryloKuzyk_](https://github.com/KyryloKuzyk/PrimeTween?) *Open Source*

[**halodi-unity-package-registry-manager**](https://github.com/Halodi/halodi-unity-package-registry-manager?)  - This package provides a simple UI to edit scoped registries and set credentials.
[_Halodi_](https://github.com/Halodi/halodi-unity-package-registry-manager?) *Open Source*

[**Stereoscopic-3D-system-for-Unity-2019-**](https://github.com/Vital-Volkov/Stereoscopic-3D-system-for-Unity-2019-?)  - Stereoscopic 3D system for Unity 2019 and 2020 with default render + Post Processing Stack v2, URP, and HDRP + Direct3D 11.1 native S3D
[_Vital-Volkov_](https://github.com/Vital-Volkov/Stereoscopic-3D-system-for-Unity-2019-?) *Open Source*

[**Archiver-Unity**](https://github.com/LightBuzz/Archiver-Unity?)  - Archiver for Unity3D is a powerful utility for compressing and decompressing files and folders in Unity 2017.3 or later. Moreover, using the built-in mechanism, you couldn't compress a folder with its subfolders and files. Archiver makes compressing and decompressing amazingly easy, using just two lines of code
[_LightBuzz_](https://github.com/LightBuzz/Archiver-Unity?) *Open Source*

[**NativeCollections**](https://github.com/jacksondunstan/NativeCollections?)  - A small library of native collections like NativeArray suitable to be used with Unity 2018.1 or greater. No additional packages (e.g. ECS or Burst) are required.
[_jacksondunstan_](https://github.com/jacksondunstan/NativeCollections?) *Open Source*

[**One-Asset**](https://github.com/ErnSur/One-Asset?)  - Solution for smart asset loading
[_ErnSur_](https://github.com/ErnSur/One-Asset?) *Open Source*

[**Responsible**](https://github.com/sbergen/Responsible?)  - Responsible helps you write maintainable high level asynchronous tests in C#:
Additionally, in Unity
[_sbergen_](https://github.com/sbergen/Responsible?) *Open Source*

[**lightmap-switching-tool**](https://github.com/laurenth-personal/lightmap-switching-tool?)  - click this badge to go to the open upm page for this package
Tool intended for switching pre-baked lightmaps, light probes and realtime lighting on a static scene at runtime.
[_laurenth-personal_](https://github.com/laurenth-personal/lightmap-switching-tool?) *Open Source*

[**KayKit : City Builder Bits**](https://kaylousberg.itch.io/city-builder-bits)  - This pack has a bunch of game assets for creating cities, great to use with city planning, simulation, RTS games and whatever you can think of putting these in.
[_kaylousberg.itch.io_](https://kaylousberg.itch.io/city-builder-bits)

[**Apress Game Coding 2023 Book Bundle**](https://www.humblebundle.com/books/game-coding-2023-apress-books?partner=unity3dreport)  - Learn the functions of fun. Level up the technical skills you need to create games and lead a successful career in development with this bundle of ebooks from Apress! Deepen your understanding of digital audio, get a handle on 3D graphics, and learn the fundamentals of crafting game mechanics. Familiarize yourself with popular tools and platforms like GameMaker and MonoGame. Build a foundation for a wide range of game programming and development disciplines, and help support Direct Relief with your purchase!
[_Humble Bundle_](https://www.humblebundle.com/books/game-coding-2023-apress-books?partner=unity3dreport) **Affiliate**

[**Cyber Streets Kitbash3D Flash Sale**](https://www.humblebundle.com/software/cyber-streets-kitbash3d-flash-sale-software?partner=unity3dreport)  - Assets for your sci-fi dystopia. Populate the streets of your cyberpunk worlds with this bundle from KitBash3D! This Kit features kiosks, store fronts, food joints, interiors, machinery, street clutter, and more to craft your gritty futuristic environments—114 assets, 401 meshes, 35 PBR materials, and 375 textures all told. The Kit’s larger pieces also have detailed interiors suited for your sci-fi or dystopian worlds. Make the cyberpunk streets of your electric dreams, and help support Girls Who Code with your purchase!
[_Humble Bundle_](https://www.humblebundle.com/software/cyber-streets-kitbash3d-flash-sale-software?partner=unity3dreport) **Affiliate**

## Spotlight

[![Silent Santicado](https://gamedevdigest.com/assets/images/yt-1cQ9pNSTz0g.jpg)](https://store.steampowered.com/app/1287930/Silent_Santicado/)
[**Silent Santicado**](https://store.steampowered.com/app/1287930/Silent_Santicado/)  - Explore a silent, crumbling world in Silent Santicado! A retro journey through a fallen kingdom tainted by lost magic. Explore overgrown ruins, encounter a cast of peculiar characters, and defeat a menagerie of twisted enemies as you search for the source of Santicado's curse.

_[You can wishlist it on [Steam](https://store.steampowered.com/app/1287930/Silent_Santicado/) and follow them on [Twitter](https://twitter.com/NixPixGames)]_
[_Vigilant Addiction Studios_](https://store.steampowered.com/app/1287930/Silent_Santicado/)



---

You can subscribe to the free weekly newsletter on [GameDevDigest.com](https://gamedevdigest.com)

This post includes affiliate links; I may receive compensation if you purchase products or services from the different links provided in this article.