Soo i study electronics and i though about how to make my work funnier and easier, i’m too lazy to learn tinker cad, even if it’s easy. Today i present my own electronics:
Currently it have only 4 elements created by OOP and managed by modules/OOP functions, it was hard to made memory leaks only 4 bytes instead of 100K and also create custom removing function or event listeners, but i managed to find a solution for my problems.
Here is list of all components that i currently implemented:
- Lamp:
- Gives light when signal is provided, also can transfer signal further
- Button:
- Emits signal when clicked
- Timer:
- Waits given time before passing signal
- If signal have changed, then when timer finishes his job correct signal is passed instantly
- Can sort of store signal, i think this glitch is helpfull and interesting soo i’ll leave it there
- AND Gate:
- Transfers signal when all inputs are powered
- Indicates how many inputs are powered and how many are not
Planned features:
- OR Gate:
- Transfers signal when any input is powered
- Not Gate:
- Inverts signal
- Repeater:
- Give impulses when powered
- Lever:
- Another nice way to power your circuit
- Building Tool:
- Making it via script is hard and confusing
- It would be cool
- Binding Tool:
- If i placed elements, i have to connect them somehow
Also i want to ask you for feedback, you can give me any electronic/signal component idea that don’t require real world electricity physics, by that i mean elements like resistors, capacitors or diodes
This is one of many examples how OOP can allow you to code new mechanic under 10 minute, without worries about bugs or huge memory leaks, thx for feedback!