-
Notifications
You must be signed in to change notification settings - Fork 0
/
sortinghat.ts
19 lines (19 loc) · 998 Bytes
/
sortinghat.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
let text_list: string[] = []
input.onButtonPressed(Button.A, function () {
music.playTone(247, music.beat(BeatFraction.Whole))
music.playTone(330, music.beat(BeatFraction.Whole))
music.playTone(392, music.beat(BeatFraction.Whole))
music.playTone(370, music.beat(BeatFraction.Whole))
music.playTone(330, music.beat(BeatFraction.Double))
music.playTone(494, music.beat(BeatFraction.Whole))
music.playTone(440, music.beat(BeatFraction.Double))
music.playTone(370, music.beat(BeatFraction.Double))
music.playTone(330, music.beat(BeatFraction.Whole))
music.playTone(392, music.beat(BeatFraction.Whole))
music.playTone(370, music.beat(BeatFraction.Whole))
music.playTone(311, music.beat(BeatFraction.Double))
music.playTone(330, music.beat(BeatFraction.Whole))
music.playTone(247, music.beat(BeatFraction.Double))
text_list = ["GRYFFINDOR!", "HUFFLEPUFF!", "SLYTHERIN!", "RAVENCLAW!"]
basic.showString(text_list[Math.randomRange(0, 3)])
})