Categories
Space Advernture Tutorial

Using Noise and Median-Cut to Create Pixel-Nebula

One of the things I wanted to have in The Last Boundary was nebula. They look awesome and space doesn’t look like space without them, instead it just looks like a few scattered white pixels. But because the game is supposed to be pixel-artish I had to find a way to make my noise library make pixelly images.

Here are some examples:

The single-colour examples above use 8 different colours, while the others are using 16 colours. In this article I’ll show you how I created pixelly looking nebula for The Last Boundary.

Categories
C++ Tutorial

C++ Variant Type Walkthrough

Considering the amount of pain I had trying to work out how to do this; I thought I’d write up something lengthy to explain how it works. It also helps me find if there’s anything in it that I don’t fully understand, else I wouldn’t be able to explain it.

The full Variant types header file has already been posted. This is the code I’m going off of.