Grégory LARGANGE

COLORQUEST

Game Demo

— ROLES

Game Designer, Game Programmer, Visual Effects Artist


— TECHNOLOGIES

Unity, C#, Photoshop


— DURATION

~4 Months

Summary

Continuation of a Ludum Dare 54 submission, ColorQuest is a 3D puzzle-plateformer game project, centered around the limited number of colors visible at any given time.

Every level, the player has to solve the proposed enigma by carefully choosing which color to display, and when. I was the sole programmer on this project, and i also explored various fields such as shaders and particle effects.


Team

3 (1 Gameplay Programmer, 1 3D/UI Artist, 1 Level Designer)


My Contributions

- Only Programmer, Project Leader

- Game atmosphere and design

- Implemented main character movement and animations,

- Implemented game grid

- Implemented main camera

- Implemented main gameplay elements

- Created most visual effects


More informations

ColorSpace – a Ludum Dare 54 submission

ColorQuest itch.io's page

Grid based movement

The game is based upon a virtual grid map. I compute which cell is walkable using Raycasts and Layer Masks, a process I call “Bake”, which i use in two manner:


General Bake:

> I first calculate the size of the virtual grid by calculating the ratio of the level’s map size to a node diameter on both x and y axis.


> Then, I populate the grid with nodes. Each node has a grid position [i, j], a world position [x, z] and is either walkable or not. This parameter is set by making a raycast onto the worldposition of each node from a high elevation (higher value on y than the playing plane). If the Raycast intersect an object belonging to the Layer “walkable”, typically a platform, then the node is set to be walkable. This general baking is made at the beginning of each level.


Local Bake:

> Each time the player inputs a move order, I make a raycast on the 8 neighbouring nodes of the current node of the player, updating their walkable parameter as explained in the general bake part.

Color switch: Objects activations, Materials

I implemented the core mechanic of the game, the color switch. When the player selects a color, every object which is neither white nor of the selected color, is deactivated, unless that color is locked. This means that platforms and traps can be activated and deactivated at will, and the player has to figure out in which order to do so.


I used action events and enumeration to activate or deactivate simultaneously concerned objects.


Lastly, when a color is locked, meaning the player has gathered the orb of that color, i manipulate the material assigned to all objects of that color, namely its emissive parameter. I tune this parameter up, so that the materials stronger glow indicates its lock state.

Camera: EagleView, Screenshake, Smoothing…

The eagle view camera is a core component of the game, allowing the player to have a better overall view of the current level.


I limited the camera’s rotation steps to 90 degrees, in order to keep the isometric feeling intact, while giving the player different view angles to solve the puzzle at hand. This mode functions as follows:


> Player presses the EagleView command, zooming out the view and presenting the player with new commands to rotate the camera around the player.


> Player can control rotation by steps of 90 degrees to either the left or the right.


> Player can reset the camera by pressing the EagleView command again, making the camera rotate back to its orginial position following the shortest angle to it, and zoom back to the original zooms level.


> While the camera is performing any transformation, the EagleView commands are locked, to prevent any rotation artifacts.


I also implemented screenshake when the player dies, smooth player follow using lerp function, and focus on element function.

Teleportation: Animation & Particle Effect manipulation

I created this effect with a combination of code and particle effects. It required a good placement of function calls and particle effect modifications to achieve something believable. The whole animation plays as follows:


> When the player enter the collider, set as trigger, of an in-gate, it changes the particle effect of that in-gate to make the particles go faster and higher than in their “iddle” state.


> The player “teleport” animation, which is really just a jumping animation, is triggered.


> In the mean time, at the outgate, a particle effect is started.


> At last, the player position is changed to the outgate position, plus a positive offset on the y axis, so that we have a sublte falling effect on the player after being teleported.

Lasers: Shader creation with Shadergraph

I used the Unity buit-in Shadergraph to create the laser shader, my very first shader.

To achieve this effect, I used in particular the noise and time nodes, along with more basic ones like add and multiply.


I use this shader on a line renderer, with the length of the line being set to the closest object intersecting the line. Namely, the laser will go to its max range unless an object intersect it before. I also added a LayerMask behavior for gameplay mechanics and a couple of particle effects to polish, as can be seen on the video.

Canons: Particle Effects & Layer Masks

I created this simple canon design, with initially basic particle effects. I introduced a gameplay mechanic with layer masks, where canon balls can only be stopped by walls not of their color.

On the video is shown the earliest iteration of the canons, as I later used the model made by the artist, to which I added a recoil animation and a polished particle effects.

Gameplay trailer