karlee theodoreStephen BarrettCarterB
Published © GPL3+

Rabid Rabbit!

Ever get bored due to a lock-down from a world wide pathogen outbreak? Well be bored no more! With our fun interaction product Rabid Rabbit!

BeginnerProtip1 hour373
Rabid Rabbit!

Things used in this project

Story

Read more

Schematics

Rabid Rabbit!

Once the code is uploaded, you must Press the A button to start each round. Once the timer runs out and the alarms sounds, whoever is left holding it is out/loses.

Code

Rabid Rabbit!

JavaScript
Toss bunny until the alarm goes off. Whoever is left holding it is out. Repeat until one person is left and crowned winner.
input.buttonA.onEvent(ButtonEvent.Click, function () {
    delay = 500 + Math.randomRange(0, 1501)
    while (delay > 0) {
        music.playTone(262, music.beat(BeatFraction.Quarter))
        light.showAnimation(light.rainbowAnimation, delay)
        delay += -50
    }
    music.wawawawaa.play()
    light.showAnimation(light.theaterChaseAnimation, 2500)
})
let delay = 0
music.setVolume(100)

Credits

karlee theodore
5 projects • 0 followers
Contact
Stephen Barrett
3 projects • 0 followers
Contact
CarterB
3 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.