Hello, I'm Tom Wood

Logo

Game developer and programmer

View My GitHub Profile

All Around

by Thomas Wood



All Around is a game where you click to stop yourself from losing lives while trying to hit enemies and miss friends with a line going across the screen. The main focus of this project for me was the visuals, I wanted to create a game with a definitive style and incorporate graphics programming in some way.

To create the pixel aesthetic of the game I use a render texture from a camera sharing the exact position of the main camera. I then downsize the texture and display it on a quad. For the texture to maintain solid blocks of colour I avoid bi/trilinear filtering and stick to a point filter. Here is a before and after of the game without, then with, the downsizing technique:




You may have noticed that the game is all greyscale in these two gifs and that is to allow for colour changing/palette swapping. To give colour to the screen I use a shader which takes the red channel of the colour of each individual pixel and samples a palette texture with it as the x-coordinate. The shader also allows for multiple palettes using a palette switching variable which can be changed on runtime through scripts. This variable is mapped to the y-coordinate when sampling the palette texture per pixel. The palette texture and the result of this shader can be seen below:




Some of my further ideas for this project are including greyscaling on runtime, downsizing the image in a shader and making the whole low resolution/palette swapping very modular so I can easily bring it into other projects. Those are for another time though.

See the repository: https://github.com/twood27897/All-Around
Play the game: https://helloimtw.itch.io/all-around