edge lab LIVE! starts Tuesday in Munich. Grab a workshop seat and take home the board you build on. Code FRIEND-HACKSTER saves 20%. () Learn more!
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 hour423
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
4 projects • 0 followers
Stephen Barrett
3 projects • 0 followers
CarterB
3 projects • 0 followers

Comments