This is a game where you start to sell cookies and earn money to upgrade your shop and become the richest cookie seller ever!
Neue Funktionen
Version 1.0
First release
Was er macht
95 Aktionen-
Dictionary
-
Number
-
Set VariableMoney
-
Number
-
Set VariableLevel
-
Ask for InputWhat will your shops name be?
-
Number
-
Repeat
-
Text
-
Set VariableShop type
-
Text
-
Choose from Menu…
-
Choose from MenuSell coo
-
If
-
Number
-
Set VariableGetmoney
-
If
-
If
-
Number
-
Set VariableGetmoney
-
If
-
If
-
Number
-
Set VariableGetmoney
-
If
-
If
-
Number
-
Set VariableGetmoney
-
If
-
If
-
Number
-
Set VariableGetmoney
-
If
-
If
-
Number
-
Set VariableGetmoney
-
If
-
Calculate
-
Set VariableMoney
-
Choose from MenuUpgrade shop
-
Choose from MenuUpgrade shop
-
Choose from MenuLvl 2: 50$
-
If
-
Show Result
-
If
-
Calculate
-
Set VariableMoney
-
Number
-
Set VariableLevel
-
Show Result
-
Choose from MenuLvl 3: 500$
-
If
-
Show Result
-
If
-
Calculate
-
Set VariableMoney
-
Number
-
Set VariableLevel
-
Choose from MenuLvl 4: 1500$
-
If
-
Show Result
-
If
-
Calculate
-
Set VariableMoney
-
Number
-
Set VariableLevel
-
Choose from MenuLvl 5: 2000$
-
If
-
Show Result
-
If
-
Calculate
-
Set VariableMoney
-
Number
-
Set VariableLevel
-
Choose from MenuCookie shop: 10000$
-
If
-
Show Result
-
If
-
Calculate
-
Set VariableMoney
-
Number
-
Set VariableLevel
-
Text
-
Set VariableShop type
-
Show Result
-
Choose from MenuChoose
-
Choose from MenuContinue playing
-
Choose from MenuQuit
-
Text
-
Show Result
-
Stop This Shortcut
-
Choose from MenuQuit
-
Text
-
Show Result
-
Stop This Shortcut
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#define color violet
@Money = 0
@Level = 1
prompt("What will your shops name be?")
const Number = 10000
repeat _ for Number {
@ShopType = "Lemonade stand"
menu {
item "Sell cookies":
if @Level == 1 {
@Getmoney = 5
} else {
if @Level == 2 {
@Getmoney = 10
} else {
if @Level == 3 {
@Getmoney = 20
} else {
if @Level == 4 {
@Getmoney = 30
} else {
if @Level == 5 {
@Getmoney = 50
} else {
if @ShopType == 6 {
@Getmoney = 100
} else {
}
}
}
}
}
}
@Money = @Money + @Getmoney
item "Upgrade shop":
menu "Upgrade shop" {
item "Lvl 2: 50$":
if @Money < 50 {
show("You do not have enough money")
} else {
@Money = @Money - 50
@Level = 2
show("You bought it!")
}
item "Lvl 3: 500$":
if @Money < 500 {
show("You do not have enough money to buy")
} else {
@Money = @Money - 500
@Level = 3
}
item "Lvl 4: 1500$":
if @Money < 1500 {
show("You do not have enough money to buy")
} else {
@Money = @Money - 1500
@Level = 4
}
item "Lvl 5: 2000$":
if @Money < 2000 {
show("You do not have enough money to buy")
} else {
@Money = 2000 - @Money
@Level = 5
}
item "Cookie shop: 10000$":
if @Money < 10000 {
show("You do not have enough money to buy")
} else {
@Money = 10000 - @Money
@Level = 6
@ShopType = "Cookie shop"
show("Congratulations you have finished Galaxy builder the demo version! You can keep playing but there is nothing left to complete!")
menu "Choose" {
item "Continue playing":
item "Quit":
show()
stop()
}
}
}
item "Quit":
show()
stop()
}
}
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Mehr von gooey321
Das gefällt dir vielleicht auch
Werbung