Ant algorithm
UPDATE: You can now hold down [Left mouse button] to spawn ants at the cursor location
Rules:
-if pixel is black: move forward, then turn right
-if pixel is white: move forward, then turn left
-always swap color of current pixel
Raycaster level editor
Demo I made of a very simple level editor for a 3D ray caster game.
CONTROLS:
In map editor:
Arrows - move cursor
Hold X + left/right arrows - pick tile
Hold C + move cursor - paint tiles
Once PLAYER tiles is selected, press C while holding X to spawn player on map
In first person mode:
Left/right arrows - look left right
Up/down arrows - move forwards/backwards
I originally started making this as a custom level maker for a first person shooter like DOOM or Wolfenstein 3D but I had to move on to other projects.
AUTOMATRON
I KNOW THE MUSIC IS ANNOYING I MADE A FUNCTION TO MUTE IT LMAO (Press [ENTER] for pause menu)
CONTROLS:
Move cursor with arrow keys, place stations with X and scroll through shop with Z+[Arrow Keys]
Generator : Generates raw ore on tile below
Smelter : Smelts any raw ore that passes by it on any side into ingot (worth more $$$)
Conveyor belt : Moves any material on it. Placement is directional (arrow on cursor)
Seller : Sells any item that passes by it on any side
Wood generator : Generates wood material on tile below
Crafter : Accepts wood and metal material and crafts them into furniture. Has 3 inventory slots which can hold items
Destroy station