|
|
@@ -0,0 +1,67 @@
|
|
|
+/**
|
|
|
+* project set up
|
|
|
+*/
|
|
|
+let words: string[] = []
|
|
|
+scene.setBackgroundColor(8)
|
|
|
+game.setDialogFrame(img`
|
|
|
+ ..bbbbbbbbbbbbbbbbbbbb..
|
|
|
+ .b11bb11bb11bb11bb11bbb.
|
|
|
+ bbb11bb11bb11bb11bb11b1b
|
|
|
+ bb1bbbbbbbbbbbbbbbbbb11b
|
|
|
+ b11bb11111111111111bb1bb
|
|
|
+ b1bb1111111111111111bbbb
|
|
|
+ bbbb1111111111111111bb1b
|
|
|
+ bb1b1111111111111111b11b
|
|
|
+ b11b1111111111111111b1bb
|
|
|
+ b1bb1111111111111111bbbb
|
|
|
+ bbbb1111111111111111bb1b
|
|
|
+ bb1b1111111111111111b11b
|
|
|
+ b11b1111111111111111b1bb
|
|
|
+ b1bb1111111111111111bbbb
|
|
|
+ bbbb1111111111111111bb1b
|
|
|
+ bb1b1111111111111111b11b
|
|
|
+ b11b1111111111111111b1bb
|
|
|
+ b1bb1111111111111111bbbb
|
|
|
+ bbbb1111111111111111bb1b
|
|
|
+ bb1bb11111111111111bb11b
|
|
|
+ b11bbbbbbbbbbbbbbbbbb1bb
|
|
|
+ b1b11bb11bb11bb11bb11bbb
|
|
|
+ .bbb11bb11bb11bb11bb11b.
|
|
|
+ ..bbbbbbbbbbbbbbbbbbbb..
|
|
|
+ `)
|
|
|
+game.showLongText("make a username", DialogLayout.Bottom)
|
|
|
+// array set up
|
|
|
+let favAnimal = game.askForString("What is your favorite animal?", 8)
|
|
|
+// index 0
|
|
|
+words.push(favAnimal)
|
|
|
+let favFood = game.askForString("what is ur fav color", 8)
|
|
|
+// index 1
|
|
|
+words.push(favFood)
|
|
|
+let favColor = game.askForString("what is ur fav shape", 8)
|
|
|
+// index 2
|
|
|
+words.push(favColor)
|
|
|
+let favCandy = game.askForString("meow", 8)
|
|
|
+// index 3
|
|
|
+words.push(favCandy)
|
|
|
+let birthdayMonth = game.askForNumber("what us ur birthday month", 2)
|
|
|
+// index 4
|
|
|
+words.push(birthdayMonth.toString())
|
|
|
+let birthdayDay = game.askForNumber("what us ur fav number", 2)
|
|
|
+// index 5
|
|
|
+words.push(birthdayDay.toString())
|
|
|
+let favNum = game.askForNumber("mmmeooowww", 4)
|
|
|
+// index 6
|
|
|
+words.push(favNum.toString())
|
|
|
+let userName = [[words[1], words[2], words[3]], [words[0], words[4], words[5]], [words[3], words[6], words[1]]]
|
|
|
+// display usernames
|
|
|
+game.showLongText("Username option: " + userName.join(""), DialogLayout.Full)
|
|
|
+
|
|
|
+
|
|
|
+for (let i = 0; i < userName.length; i++) {
|
|
|
+ game.showLongText("Username option " + (i + 1) + ": " + userName[i].join(""), DialogLayout.Full)
|
|
|
+}
|
|
|
+music.play(music.melodyPlayable(music.baDing), music.PlaybackMode.UntilDone)
|
|
|
+game.reset()
|
|
|
+
|
|
|
+
|
|
|
+
|