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: A beautiful blog theme with only two requests and less 10KB transfered https://ift.tt/33Fv6Y8Show HN: A beautiful blog theme with only two requests and less 10KB t… Read More
Show HN: Pgsodium – A Crytographic PostgreSQL Extension https://ift.tt/3tig9pMShow HN: Pgsodium – A Crytographic PostgreSQL Extension https://ift.tt… Read More
Show HN: Create animations by dragging an element with your mouse https://ift.tt/3qp7sYTShow HN: Create animations by dragging an element with your mouse http… Read More
Show HN: Campy the Font https://ift.tt/3JZph8FShow HN: Campy the Font https://ift.tt/3Fdo9L2 January 11, 2022 at 01:… Read More
Show HN: Get Rich Quick – the ultimate Web3/crypto project https://ift.tt/3r5y2WhShow HN: Get Rich Quick – the ultimate Web3/crypto project https://ift… Read More
Show HN: Teyit – Automatically format your Python unittest assertions https://ift.tt/33G7lPFShow HN: Teyit – Automatically format your Python unittest assertions … Read More
Show HN: GitAlias v27 – many Git alias shortcuts and helpers https://ift.tt/3zLQVBwShow HN: GitAlias v27 – many Git alias shortcuts and helpers https://i… Read More
Show HN: Simple interactive tools to improve statistical intuition https://ift.tt/3IdScElShow HN: Simple interactive tools to improve statistical intuition htt… Read More
0 Comments: