Really cool! I dig the art style :)
Millie
Creator of
Recent community posts
Not exactly, I made a function to tell me when the mouse was within 10 pixels of the line from any point, and then if a right click occurs it queue_frees the line. It wasn't a great solution though because if lines are overlapping and you right click near them all the lines get deleted. And there was some other funky behaviour when if the mouse was moving fast away from the line as you click it doesn't register as being near the line, so I had to track the mouse positions and add it to an array so it can use the position when the click was started, not when it finishes. Hopefully that makes sense haha
Thanks for checking out my game :)
I programmed this in Godot, and I had a hell of a time working out the cable mechanic hahaha, cause I'd never done something like that. I did it so that when you click on a plug it instances a new cable (which is made of a line2d with 2 points) and sets the position of that plug as the start point, and sets the end point as being at the position of the mouse so the cable follows your mouse. Then when you click on a second plug it sets that plug as the end point. And then I used some bools to track things like if a plug was occupied to figure out if it was receiving power