ShareShortcuts

Explore

This is a game where you can explore a 3D world

smileyfun304
Fork “Explore”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so smileyfun304 gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
52K
Saved
2
Actions
46
Category
Fun
Version
1.0
Language
EN

Preview

This is a game where you can explore a 3D world. Enjoy 😀.

What's New

Version 1.0

First release

Version History
1.0 Feb 27, 2021

First release

What it does

46 actions
  1. Choose from Menu
  2. Choose from Menu
    Play
  3. Choose from Menu
  4. Choose from Menu
    New Game
  5. Random Number
  6. Random Number
  7. Random Number
  8. Dictionary
  9. Ask for Input
    Name
  10. Set Name
  11. Save File
  12. Run Shortcut
    Explore
  13. Choose from Menu
    Choose Game
  14. Get File
  15. Get Dictionary from Input
  16. Number
  17. Set Variable
    X
  18. Set Variable
    Y
  19. Set Variable
    Z
  20. Repeat
  21. Text
  22. Choose from Menu
    …
  23. Choose from Menu
    Up
  24. Calculate
  25. Set Variable
    Y
  26. Choose from Menu
    Down
  27. Calculate
  28. Set Variable
    Y
  29. Choose from Menu
    Left
  30. Calculate
  31. Set Variable
    X
  32. Choose from Menu
    Right
  33. Calculate
  34. Set Variable
    X
  35. Choose from Menu
    Forward
  36. Calculate
  37. Set Variable
    Z
  38. Choose from Menu
    Backward
  39. Calculate
  40. Set Variable
    Z
  41. Choose from Menu
    Save And Quit
  42. Dictionary
  43. Delete Files
  44. Set Name
  45. Save File
  46. Stop This Shortcut

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/documents'
#define color teal
#define glyph hammerAlt


menu "" {
item "Play":
	menu nil {
	item "New Game":
		randomNumber(-500, 500)
		randomNumber(50, 80)
		randomNumber(-500, 500)
		const Dictionary = {
			"X": "{}",
			"Y": "{}",
			"Z": "{}"
		}
		prompt("Name")
		const RenamedItem = setName(Dictionary)
		const SavedFile = saveFilePrompt(RenamedItem)
		runSelf(SavedFile)
	item "Choose Game":
		const File = getFile("")
		getDictionary(File)
		const Number = 999999999999999
		@X = ['X']
		@Y = ['Y']
		@Z = ['Z']
		repeat _ for Number {
			menu  {
			item "Up":
				@Y = @Y + 1
			item "Down":
				@Y = @Y - 1
			item "Left":
				@X = @X - 1
			item "Right":
				@X = @X + 1
			item "Forward":
				@Z = @Z + 1
			item "Backward":
				@Z = @Z - 1
			item "Save And Quit":
				const Dictionary1 = {
					"X": "{@X}",
					"Y": "{@Y}",
					"Z": "{@Z}"
				}
				deleteFiles(File)
				const RenamedItem1 = setName(Dictionary1, File['Name'])
				saveFilePrompt(RenamedItem1)
				stop()
			}
		}
	}
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by smileyfun304

See All

You Might Also Like

See All
Advertisement