Show HN: I made a digital circuit drawing and simulation game Inspired by games like Turing Complete/Virtual Circuit Board/Logic World, I tried to make a mix of aseprite and wiredworld/wired-logic, the idea being the user can build a digital circuit using a "fullstack" pixelart creation workflow. The circuit is just an image. The primitives are (i) connected wires which have undefined, 0 or 1 state during simulation (displayed brighter or darker in function of the state) and (ii) NANDs, which are little pixel triangles. During simulation the user can interact with any wire by clicking on it, toggling its state, which is cool for messing around when learning. The simulation uses a unit-delay event driven algorithm. Then, on top of that there are little wire interfaces on the left side of the image that communicate with an external system. This external system is defined in lua and is simulated together with the main circuit (they alternate until convergence). By default there's a sandbox mode with a clock and a power-on-reset signal. The user can choose other "levels", where the API change and there are some problems to solve, from finding if a number is multiple of 3 to solving hanoi tower to finding if a number is prime. The idea is that if the user want to learn but not sure what to do they can try to solve these puzzles, or they can change the lua scripts to add their own stuff/interface for a custom project. I've also included a small wiki (circuitopedia) with some basic digital concepts to guide those who are new or are a bit rusty. It's not super detailed but I guess it can at the very least present the concepts so the user can dig further on more serious material if they want to. I developed the game in C with raylib, with scripting in lua/luajit. I've put the game on steam (for windows) and released the source code on github under GPLv3. There's also a web demo version on itch.io, even though it's a bit laggy: https://ift.tt/0W4xyS8... . Feedback is appreciated! https://ift.tt/V5SBth9 September 15, 2024 at 04:13AM
Show HN: I made a digital circuit drawing and simulation game https://ift.tt/IwlnDMi
Related Articles
Show HN: OmniTools–A Self-Hosted Suite of Open Source Tools for Everyday Tasks https://ift.tt/ho70YtXShow HN: OmniTools–A Self-Hosted Suite of Open Source Tools for Everyd… Read More
Show HN: Minimalist Travel Planner https://ift.tt/ALiuHaCShow HN: Minimalist Travel Planner I was tired of finding repetitive t… Read More
Show HN: URnetwork – Decentralized VPN Replacement https://ift.tt/0s6hWtxShow HN: URnetwork – Decentralized VPN Replacement I spent the last 1.… Read More
Show HN: Toutui: A TUI Audiobookshelf Client for Linux (Written in Rust) https://ift.tt/By3RJUPShow HN: Toutui: A TUI Audiobookshelf Client for Linux (Written in Rus… Read More
Show HN: I built a PR listener and ruleset to detect malicious code in CI/CD https://ift.tt/UwNfgI6Show HN: I built a PR listener and ruleset to detect malicious code in… Read More
Show HN: Electro – A hyper-fast Windows image viewer with a built-in terminal https://ift.tt/4AEkl51Show HN: Electro – A hyper-fast Windows image viewer with a built-in t… Read More
Show HN: Tool to visualize any React app https://ift.tt/wgBaUS2Show HN: Tool to visualize any React app https://ift.tt/35b2LZS Februa… Read More
Show HN: Cardog – AI interface for vehicle ownership https://ift.tt/uYCTpwqShow HN: Cardog – AI interface for vehicle ownership Hi HN! I wanted t… Read More
0 Comments: