Tag: coding
-
Shader Tutorial: Coding a Sunburst Effect

In this tutorial you will learn how to code a sunburst effect inside a shader, using scanlines and polar coordinates. You will learn how to code the effect using the web based shader editor called Shadertoy.
-
Coding Tutorial: Orbiting a Point in Space

Learn how to use polar coordinates to make an object orbit a point in space.
-
Coding tutorial: Chain-of-responsibility pattern

A peasant, knight and king walk into a software design tutorial, and are here to teach you the chain-of-responsibility pattern. Learn how to create a chain of handlers which can handle different request types.
-
Object pool pattern console application tutorial

Learn how to code the object pool pattern by managing a pool of books in a library. Borrow and return books to the pool in this console application tutorial using C++ and Visual Studio.
-
Coding tutorial: Object pool pattern

Learn how to code the object pool pattern by pre-allocating memory and reusing objects. Which can greatly improve performance when reusing short lived objects like bullets and particles.
-
Observer Pattern Graphical Demo

This tutorial shows a graphical demo of the observer pattern. The circle, square and mosaic background are all observers of the button press. Whilst the owner of the button is the subject.
-
Coding tutorial: Observer pattern

In this tutorial you will learn how code the observer pattern using a zookeeper and animals. The zookeeper represents the subject of the observer pattern. Whilst the animals represent the observers.
-
Expanding circle columns made in Processing

Made these expanding circle columns in Processing by rendering three circles without clearing the screen, and using hue shifting to keep it interesting. The colours go from dark and saturated, to bright and desaturated.
-
Three simple ways to code finite state machines

This tutorial will show you three simple ways to code finite state machines using the C++ programming language in Visual Studio. Learn how to use an enum and a switch case. Then learn how to use inheritance and polymorphism. Finally learn how to use function pointers.
-
Rabbit and Carrot Finite State Machine

This post shows how the behaviour of a rabbit can be coded using a finite state machine, by breaking down the rabbit’s behaviour into different states. The rabbit’s goal is to wander around and eat carrots, whilst avoiding the deadly mouse cursor!
