Skip to content

Commit 4e48c70

Browse files
committed
[Patch] set asset base path
1 parent e3fe0ab commit 4e48c70

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Sources/StarterGame/main.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ import UntoldEngine
66
// GameScene is where you would initialize your game and write the game logic.
77
class GameScene {
88
init() {
9+
10+
if let desktopURL = FileManager.default.urls(for: .desktopDirectory, in: .userDomainMask).first {
11+
assetBasePath = desktopURL.appendingPathComponent("MyGreatGame")
12+
}
13+
914
// register custom systems. do not delete
1015
// registerCustomSystem(ballSystemUpdate)
1116

0 commit comments

Comments
 (0)