Skip to content

"Match my Shader" is a game where you have to code a shader in Python to match another shader, It was made in 10 days for a gamejam named "Timeless" by Lux

Notifications You must be signed in to change notification settings

MathiasDPX/match-my-shader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

36 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Match my Shader

"Match my Shader" is a creative programming game where you write Python code to recreate shaders and match pixel-perfect results. This game was made in 10 days for the "Timeless" game jam hosted by Lux

๐ŸŽฎ About the Game

In Match my Shader, your challenge is to write Python code that renders a shader to match a given target output pixel-perfectly

A shader is a small program that runs in parallel for every pixel and decides its color, which means you have to write one code for the whole image

The game features two main modes:

  • Freeplay: Code freely for fun or to draw creative designs
  • Challenge: Recreate exactly a given target shader

๐Ÿ“ฆ Installation

๐Ÿƒ Run

python -m pip install -r requirements.txt
cd game
python main.py

๐Ÿ”จ Build

To create a standalone executable:

Windows:

build.bat

Linux:

chmod +x build.sh
./build.sh

The executable will be generated in the game/dist/ folder.

๐ŸŽฏ How to Play

  1. Select a Challenge: Click "Challenges" to see the list
  2. Write your code: Your function should return a color for each pixel (x, y)
  3. Repeat

If you need help using the game, you can open the Help menu on the menubar

๐Ÿ† "Timeless" Game Jam

This project was created for the "Timeless" game jam with the goal of building a game that could be enjoyed for the next 10 years. The concept of creative programming and learning aligns perfectly with this vision of timelessness.

About

"Match my Shader" is a game where you have to code a shader in Python to match another shader, It was made in 10 days for a gamejam named "Timeless" by Lux

Topics

Resources

Stars

Watchers

Forks