Skip to content

lets-all-be-stupid-forever/circuit-artist

Repository files navigation

logo

Circuit Artist is a digital circuit drawing and simulation game. Circuits are images. You can play in sandbox mode or solve puzzles. You can use lua to interact with your circuit.

Made with raylib.

Game Rules

  • Little pixel triangles are NANDs.
  • Black pixels are background.
  • Everything else is a wire.

Screenshots

screenshot1

screenshot2

screenshot3

screenshot4

Building

Compiles in Windows, Linux and Mac.

  • Need to build within the build/ directory (or something within the root directory so it can access luasrc/ and asset/ folder)
  • You need to compile LuaJIT/. You can see the instructions here. The binaries will go to the LuaJIT/src folder. In MAC it seems you need to install it too. In linux I've managed to make it work with a symbolic link from build/. In Windows it worked directly with the cmake directives ( if it doesnt for you mind that it might be something related to link path).
  • In linux it might complain that it can't find libraylib.so, that's because linux won't look for libraries in the directory it is in, you can fix with it LD_LIBRARY_PATH=$PWD ./ca until we find a cleaner solution.
  • By default OPENMP is off, you might want to activate in the OPENMP cmake option.

The Linux and MAC versions are not stable yet: they compile but have some divergences from windows version.

Clone, compile, run on Linux

git clone https://github.com/lets-all-be-stupid-forever/circuit-artist.git
cd circuit-artist/
git submodule init
git submodule update
mkdir build
cd build/
cmake ..
make -C ../LuaJIT/
make
ln -s ../LuaJIT/src/libluajit.so libluajit-5.1.so.2
LD_LIBRARY_PATH=$PWD ./ca

License

GPLv3. See LICENSE file. For dependencies, see third_party folder.