Oh no’s One of my favorite games been crippled . I looked into why the problem is more severe and figured out it’s because analogWrite configures the LED pins as digital when maximum and minimum values are set. The new version sets the LED pins always to pwm.
I felt a little guilty about “crippling” Circuit Dude with the new version 5 Arduboy2 library, so I’ve modified it to use the BeepPin2 class for sound. The rising temperature sound is as smooth as the ArduboyPlaytune version, and the red RGB LED now increases in brightness as intended.
Just compiling the original code with Aruduboy2 library version 5.0.0 instead of 4.1.0 saves 634 bytes of program memory (and 7 bytes of RAM). This is mainly due to the optimised setRGBled() function in the new library release.
Changing sound from using the ArduboyPlaytune library to the BeepPin2 class saves another 2102 bytes of code and 32 bytes of RAM, for 2736 bytes of code and 39 bytes of RAM total. There is now enough program space to add 30 more levels, if @crait desired.
Unfortunately, @crait doesn’t want people publishing modified versions of Circuit Dude, so I can’t make my changes publicly available. I will send @crait a PM with a link to it, so he can apply and publish the changes himself if he wishes.
P.S. making other changes to optimise, as I’ve pointed out in previous posts in this topic, could save a bit more code.
Just finished the game! And I love the secret ending (I didn’t expect that) Great level design, I enjoyed every minute of the game! A must have for the Arduboy! Thanks @crait (even I hated you so much on some levels ) Now time to play it on Steam!
OK … any clues on level 45? In particular the block in the lower, right-hand corner. If I approach it from the left I obviously get stuck in there so I assume I must (somehow) rotate the one to the left or the one above it to allow me to be able to move through them both. Just cannot figure it out!
Spoiler: To get that piece, you do need to move one of the two tunnels, then come back to it. Since you think you get stuck from the left, think about how you can rotate the top one, then remove yourself from the area, then rotate the two tunnels at the same time, using the button above, then go through it. That means that the tunnel needs to be vertical before you ever go into it so that when you rotate it, then rotate it with the button, it’ll be vertical, once more. My strategy when solving these puzzles (when I’m designing them) is to try to move as much as I can, placing as few chips as possible. To get these tunnels in the right orientation, you don’t actually need to touch any sockets!
Im really not too big on puzzle games (other than Tetris, of course :P) but I’m lovin’ this one, and I’ve still got a lot of it left to play yet!
Although I do have to say, level 16 has me stopped dead in my tracks… just the very first part of it, to get through the first set of revolving panels, not sure why but I just can’t seem to figure it out for the life of me.
Edit: don’t know why I struggled so much with that, but this games definitely had me staying on my toes, excellent puzzles!