Skip to content

phunanon/CircuitSim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircuitSim

A basic logic circuit simulator written in TypeScript.
Descendant of Sircuit (which is a descendant of CCircuit).

Demo screenshot

demo.json

Controls

  • A - AND

  • O - OR

  • N - NOT

  • X - XOR

  • S - Switch

  • I - Indicator

  • R - Random

  • P - Panel

  • Scroll to zoom into cursor

  • Click and drag to pan camera or move component or panel and its components

  • Click component to start or finish wire

  • Ctrl + click to finish wire and make another from same component

  • Click wire to delete

  • Shift + click to delete component, panel

  • Ctrl + Shift + click panel to delete panel and all its components

  • Ctrl + click panel to save to JSON

  • Ctrl + S to save scene to JSON

  • Ctrl + O to load scene / panel from JSON

  • Ctrl + Shift + O load scene / panel as component from JSON

  • Ctrl + E to switch between immediate and step electrification

  • Right click switch to toggle

  • Right click panel to change size and label

Aspirations

  • Panel resize with mouse
  • Panel colours
  • Abstract away logic into components