Giter Club home page Giter Club logo

skillz-swiftris-example's Introduction

Swiftris Example Skillz + Swift Project

This repository contains an example iOS game written in Swift that integrates the Skillz SDK. It is intended to supplement the documentation that walks users through the process of integrating an iOS game.

Credit for the original Swiftris belongs to Bloc. (Original Swiftris Repository)

Credit for the Swift 3 upgrade to Swiftris belongs to ccezar (Swiftris Swift 3.0 Commit)

Skillz integration of the project done by Rich Hung

Use governed by the MIT License.

Build Environment

This project integrated the Skillz SDK version 21.0.25. Check the Downloads page for the latest version.

The project was built on Xcode 10.1. Also, make sure you have the appropriate developer certificate and provisioning profiles so that it can be run on an iOS device. The provisioning profiles need to set the bundle name to br.com.swiftris.

If you are experiencing trouble, please email [email protected] with a detailed description of the issue you are encountering.

Commit Details

The commits in this repository have been organized to make the SDK integration easier to follow.

Commit 01: Swiftris

The first commit contains Swiftris without Skillz integration. This can be used to compare to the next commits.

Commit 02: Install the Skillz SDK

The second commit simply installs the Skillz SDK that was downloaded from the Skillz Developer Portal. This is done by:

  • Dragging the Skillz.framework file into your XCode project
  • Moving the SkillzBridgingHeader.h file into your project
  • Adding the Skillz.framework to both your Linked Libraries and Embedded Binaries build phases.
  • Setting your deployment target to 9.0
  • Adding the Skillz run script

(NOTE: Need to fix the commits to reflect the last 3 bullets. Embedded Binaries, deployment target, and run script were missed on the first pass and do not appear until the final commit)

Refer to the full instructions for more information.

At this point, the game is not integrated with the SDK and still compiles and runs normally.

Commit 03: Getting In and Out of the Skillz SDK

Finally, the Skillz SDK is integrated

  • Implementing the SkillzDelegate protocol in the AppDelegate class, so that the game is notified when a match will begin or end.
  • Modifying Main.storyboard and adding MainMenuViewController.swift to give the game a main menu screen
  • Reporting the user's final score when the match ends.
  • Making sure that gameplay relevant randomness (which blocks spawn) is tied to Skillz's random function

skillz-swiftris-example's People

Contributors

ashley-skillz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.