stardance has been extended another month! the new deadline is october 31 :)

You are browsing as a guest. Sign up (or log in) to start making projects!

59m 35s logged

Since the last devlog, I’ve started working on the graphical interface with pygame (I chose pygame instead of tkinter because it gives more control over drawing and mouse interaction).

What’s already done:

Base window working, with main loop and correct closing.
Components represented as draggable rectangles with the mouse (VisualComponent).
A fixed side palette with Battery, Resistor, and LED. When dragging from the palette to the main area, a copy is created, and the original is always available in the palette.
Each component now has connection pins (left and right), visible as small circles.
I implemented the wires: you click on one pin, then another, and draw a yellow line connecting the two components.

That is, I can already drag a battery, a resistor, and an LED onto the screen and visually connect them with wires. Now I just need to make this visual connection “mean” something, combine it with the electrical logic I already had (voltage/current/power calculation and the pedagogical warnings).

0
46

Comments 0

No comments yet. Be the first!