
Mini Shaders
This game is from ldjam.com, which is currently unavailable.
You can try viewing the original page on Web Archive (may not load correctly).
You can try viewing the original page on Web Archive (may not load correctly).
Mini shaders is a programming puzzle game (inspired by the awesome games that zachtronics makes) that acts as a very high level and simplified version of shader programming. This isn't super related to the theme but in my head I was thinking "computers are basically small worlds, oh lets make a game about computers, oh lets make a game about programming, oh shaders are cool"...
In this game, you are required to match your grid with a given reference grid using a set of provided commands. These same commands run for each grid cell so you are required to rely solely on state to determine what actually gets drawn.
These instructions and tips are given in the game, but for completeness sake, here they are:
- The commands are executed for every grid cell
- Commands can take any built in variables or numbers, defaults to 0 if not supported
- Built in variables are r, x, y
- x and y are the cell coordinates, (0,0) is bottom left
- Hidden boolean c checks if current command is to be executed
- +, -, %, *, / store result in r
- \>, <, = store result in c as (c AND result)
- Set makes the square colour green
- if c is false, next non-comparison command is skipped
- c is reset back to true once the relevant command was skipped or executed
- / or % with 0 gives 0 instead of undefined
- The cost is determined by the cell that had the highest cost, lower cost is better
- The Editor is scrollable
Tools used:
- Unity
- FL Studio for music
- Hitting my keyboard really hard for sound effects
- Inkscape for the graphics... which is really just a bordered square that gets used everywhere
- www.dafont.com for fonts
Game can be downloaded at:
- https://drive.google.com/open?id=0ByaymGrbjPRvZUVHTHktU2lYTkU (windows 32)
- https://drive.google.com/open?id=0ByaymGrbjPRva3g1U3c3MUFYUGc (windows 64)
EDIT:
uh I forgot to add the source code link initially... here it is, my bad -_-"
https://github.com/igorawratu/ld38
EDIT2:
It seems the "try again" button is broken
In this game, you are required to match your grid with a given reference grid using a set of provided commands. These same commands run for each grid cell so you are required to rely solely on state to determine what actually gets drawn.
These instructions and tips are given in the game, but for completeness sake, here they are:
- The commands are executed for every grid cell
- Commands can take any built in variables or numbers, defaults to 0 if not supported
- Built in variables are r, x, y
- x and y are the cell coordinates, (0,0) is bottom left
- Hidden boolean c checks if current command is to be executed
- +, -, %, *, / store result in r
- \>, <, = store result in c as (c AND result)
- Set makes the square colour green
- if c is false, next non-comparison command is skipped
- c is reset back to true once the relevant command was skipped or executed
- / or % with 0 gives 0 instead of undefined
- The cost is determined by the cell that had the highest cost, lower cost is better
- The Editor is scrollable
Tools used:
- Unity
- FL Studio for music
- Hitting my keyboard really hard for sound effects
- Inkscape for the graphics... which is really just a bordered square that gets used everywhere
- www.dafont.com for fonts
Game can be downloaded at:
- https://drive.google.com/open?id=0ByaymGrbjPRvZUVHTHktU2lYTkU (windows 32)
- https://drive.google.com/open?id=0ByaymGrbjPRva3g1U3c3MUFYUGc (windows 64)
EDIT:
uh I forgot to add the source code link initially... here it is, my bad -_-"
https://github.com/igorawratu/ld38
EDIT2:
It seems the "try again" button is broken