OctopusKit Game Project Template
July 2, 2020 ยท View on GitHub
Template and tutorial for the OctopusKit game engine.
-
๐ In Xcode 12 or later, create a new App project, and choose Interface: SwiftUI.
โ๏ธ Do NOT create a "Game" project, because that template does not use SwiftUI.
OctopusKit targets iOS/iPadOS/tvOS 14 and macOS Big Sur, but you may be able to get it to run with Xcode 11, iOS 13 and Catalina.
-
๐ฆ Add OctopusKit as a Swift Package Manager Dependency.
Xcode File menu ยป Swift Packages ยป Add Package Dependency...
Enter the URL for the GitHub repository.
Download the "develop" branch for the latest version.
-
๐ฅ Copy and include all the subfolders from the
Templates/Game/Sharedfolder in your project.In the Xcode Project Navigator, select the
OctopusKit/Templates/Gamefolder, then in the File Inspector, click the arrow next to "Full Path", then drag all the subfolders (Components, Core, Entitiesetc.) from theSharedsubfolder into your project'sSharedfolder in the Xcode navigator. -
๐ผ Add the
GameContentViewto theContentView.swiftfile:var body: some View { GameContentView() } -
๐ Build and run the project to verify that the template works.
-
๐ Examine the various files to see how everything works, then modify the template for your specific game.
-
Check the documentation:
-
For a detailed explanation of the engine architecture, see Architecture.md in the
Documentationfolder of the OctopusKit package/repository. -
To see how to do common tasks, refer to Usage Guide.md
-
OctopusKit ยฉ 2020 Invading Octopus โข Apache License 2.0