ShareShortcuts
Создать форк «Galaxy builder»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы gooey321 получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
49K
Сохранено
2
Действия
95
Категория
Fun
Версия
1.0
Язык
EN

This is a game where you start to sell cookies and earn money to upgrade your shop and become the richest cookie seller ever!

Что нового

Версия 1.0

First release

История версий
1.0 12 авг 2021 г.

First release

Что делает

Действий: 95
  1. Dictionary
  2. Number
  3. Set Variable
    Money
  4. Number
  5. Set Variable
    Level
  6. Ask for Input
    What will your shops name be?
  7. Number
  8. Repeat
  9. Text
  10. Set Variable
    Shop type
  11. Text
  12. Choose from Menu
    …
  13. Choose from Menu
    Sell coo
  14. If
  15. Number
  16. Set Variable
    Getmoney
  17. If
  18. If
  19. Number
  20. Set Variable
    Getmoney
  21. If
  22. If
  23. Number
  24. Set Variable
    Getmoney
  25. If
  26. If
  27. Number
  28. Set Variable
    Getmoney
  29. If
  30. If
  31. Number
  32. Set Variable
    Getmoney
  33. If
  34. If
  35. Number
  36. Set Variable
    Getmoney
  37. If
  38. Calculate
  39. Set Variable
    Money
  40. Choose from Menu
    Upgrade shop
  41. Choose from Menu
    Upgrade shop
  42. Choose from Menu
    Lvl 2: 50$
  43. If
  44. Show Result
  45. If
  46. Calculate
  47. Set Variable
    Money
  48. Number
  49. Set Variable
    Level
  50. Show Result
  51. Choose from Menu
    Lvl 3: 500$
  52. If
  53. Show Result
  54. If
  55. Calculate
  56. Set Variable
    Money
  57. Number
  58. Set Variable
    Level
  59. Choose from Menu
    Lvl 4: 1500$
  60. If
  61. Show Result
  62. If
  63. Calculate
  64. Set Variable
    Money
  65. Number
  66. Set Variable
    Level
  67. Choose from Menu
    Lvl 5: 2000$
  68. If
  69. Show Result
  70. If
  71. Calculate
  72. Set Variable
    Money
  73. Number
  74. Set Variable
    Level
  75. Choose from Menu
    Cookie shop: 10000$
  76. If
  77. Show Result
  78. If
  79. Calculate
  80. Set Variable
    Money
  81. Number
  82. Set Variable
    Level
  83. Text
  84. Set Variable
    Shop type
  85. Show Result
  86. Choose from Menu
    Choose
  87. Choose from Menu
    Continue playing
  88. Choose from Menu
    Quit
  89. Text
  90. Show Result
  91. Stop This Shortcut
  92. Choose from Menu
    Quit
  93. Text
  94. Show Result
  95. Stop This Shortcut

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#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()
	}
}
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от gooey321

См. все

Вам также может понравиться

См. все
Реклама