csharp

C# tutorials, tips and live coding.

Rotation Math Tricks - Using Unity's Quaternion Operators
Rotation Math Tricks - Using Unity's Quaternion Operators
· ☕ 2 min read
Unity provides a few operators that can make some common tasks with quaternions easier to accomplish. You can multiple a quaternion and vector to rotate the vector by the provided quaternion’s rotation or multiple two quaternions together in order to add the two rotations they represent together.

Learning to Deserialize YAML in C# with YamlDotNET
Learning to Deserialize YAML in C# with YamlDotNET
· ☕ 2 min read
YAML (Yet Another Markup Language) provides a way to store structured data in files. It can be used in similar ways to other JSON or XML files and is commonly used with Kubernetes and Docker Compose.

Detecting Objects with Raycasts in Unity3D
Detecting Objects with Raycasts in Unity3D
· ☕ 3 min read
Raycasts provide a way for you to project lines through your scenes and detect the objects they hit as well as return important information about what they hit.

Building worldofzero.com - Improved Video Descriptions
Building worldofzero.com - Improved Video Descriptions
· ☕ 2 min read
I’ve recently been doing a lot of work on my website worldofzero.com in order to help launch the new version and improve the usability and accessibility of the site.

Implementing C# Extension Methods
Implementing C# Extension Methods
· ☕ 2 min read
In C# Extension Methods provide a way to add additional functionality onto a type that you have created or imported into your project.

Exploring Top-Level Programs in C# 9
Exploring Top-Level Programs in C# 9
· ☕ 2 min read
Top-Level Programs is a new feature being introduced in C# 9.0 that significantly simplifies certain C# programs and allows you to remove almost all of the boilerplate code from them.

Getting Started with Pathfinding using Dijkstra's Algorithm
Getting Started with Pathfinding using Dijkstra's Algorithm
· ☕ 1 min read
Lets explore pathfinding by implementing Dijkstra’s Algorithm. Dijkstra’s Algorithm is a pathfinding algorithm that works by calculating the distance from any node in a graph to a target node.

Installing Nyancat using the .NET CLI
Installing Nyancat using the .NET CLI
· ☕ 1 min read
The .NET CLI includes the ability to install additional developer tools like powershell. This is a powerful feature that enables you to add tools to your developer environment without leaving your terminal.

An Appendable List with Operator Overloading
An Appendable List with Operator Overloading
· ☕ 2 min read
C# supports operator overloading as a language feature. This enables you to modify the behavior of a variety of operators in your classes.

I'm Learning Moq - A .NET Mocking Framework for Unit Tests
I'm Learning Moq - A .NET Mocking Framework for Unit Tests
· ☕ 2 min read
Mocking describes a feature in programming that allows you to replace the functionality of an object with a blank version of itself or provide your own functionality in its place.

An Abstraction of our Character Controller
An Abstraction of our Character Controller
· ☕ 2 min read
Lets take a look at building an abstraction over a character controller in our 2D platforming game. The goal of this refactoring and abstraction pattern is to improve the testability and modularity of the character controller.

Building Coyote Time in a 2D Platformer
Building Coyote Time in a 2D Platformer
· ☕ 2 min read
Coyote Time is an idea in platformers that allows the player to jump for a few frames after they have left the platform they are on.