Skip to main content

Godot

Prerequisites

  • Godot Engine 3.2.3 or above.

Godot iOS

Download the SDK

First, you need to download the following file. It contains:

  • Godot native iOS library with MAS (GodotYodo1Mas.a)
  • MAS script for Godot (yodo1mas.gd)

Set up the Godot project

  1. The yodo1mas.gd script is a wrapper for all MAS features.

  2. Set up your appkey. Create a new node, add the yodo1mas.gd script and configure your Appkey. You can find your Appkey in the MAS dashboard.

  3. Export the project for the iOS platform. This creates an Xcode project.

Install the SDK

  1. Here is a directory with the exported Xcode project. At this stage, the GodotYodo1Mas.a file is a library of the Godot engine without the Yodo1 MAS SDK. You must replace it with the library you downloaded from this link.

  2. Use CocoaPods to add all MAS SDKs to your Xcode project. Create a Podfile if it does not exist, and add the following lines to your project Podfile.

    source 'https://github.com/Yodo1Games/MAS-Spec.git'
    source 'https://github.com/Yodo1Games/Yodo1Spec.git'
    source 'https://github.com/CocoaPods/Specs.git'
    platform :ios, '11.0'

    project 'GodotYodo1Mas.xcodeproj'

    target 'GodotYodo1Mas' do
    pod 'FBSDKCoreKit'
    pod 'Yodo1MasFull', '~> 4.8.9'
    end

    post_install do |installer|
    installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
    config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
    end
    end

You can specify the project name, platform and other specifics in this file. Refer to the CocoaPods documentation for more details.

  1. Execute the following command in your terminal: pod install –repo-update. This command will download all required Yodo1 MAS libraries and create an Xcode workspace file.

  2. Here is the Xcode project structure after the pods installation.

Godot Android

Setup the project

  1. Configure, install, and enable the "Android Custom Template" for your project by following the official documentation;

  2. Copy the plugins folder to your Godot project. You have to add it in the path res://android. The plugins folder contains 2 files GodotYodo1Mas.gdap and GodotYodo1Mas.***.aar. Please open GodotYodo1Mas.gdap with any text editor and check the gradle dependency.

[config]
name="GodotYodo1Mas"
binary_type="local"
binary="GodotYodo1Mas.2.0.0.release.aar"

Next Steps