JDGamesLoading 1.3.1

JDGamesLoading 1.3.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by JamesDouble.



  • By
  • JamesDouble

JDGamesLoading

(IOS)Let User Play Game When Loading


Introduction

First, thanks everyone for supporting my last game loading, JDBreaksLoading.

Now, I make more game. After this, I won’t make another repositry about gameloading.Now on, New game will be update in this reop. So ~ Star & Watch this reop for more game!!

Still, don’t make user wait too long to play the game~

Thanks for using.

Installation

  1. Cocoapod

    Now, You can use Cocoapod !

    pod 'JDGamesLoading'
    
  2. Fork my reop.

Usage

Now,It’s more easier to call the loading then JDBreakLoading.

Just One Line:

  JDGamesLoading(game: .Breaks).show()

For Dismiss:

  JDGamesLoading.dismiss()

GameTypes

  • .Snacks:

  • .PingPong:

  • .Breaks:

  • .Puzzle:

Game Configuration

Because there are more game now, So I change the way to set the game configuration.

Call .withConfiguration(configuration:) Brfore .show()

let snackconfig = JDSnackGameConfiguration(snackcolor: UIColor.blue, foodcolor: UIColor.brown, snackspeed: 50)
JDGamesLoading(game: .Snacks).withConfiguration(configuration: snackconfig).show()
  • JDSnackGameConfiguration:
var Snack_color:UIColor = UIColor.green
var Food_color:UIColor = UIColor.white
var Snack_Speed:CGFloat = 10.0
  • JDBreaksGameConfiguration:
 var paddle_color:UIColor = UIColor.white
 var ball_color:UIColor = UIColor.white
 var block_color:UIColor = UIColor.white
 var RowCount:Int = 1
 var ColumnCount:Int = 3
  • JDPingPongConfiguration:
 var paddle_color:UIColor = UIColor.white
 var ball_color:UIColor = UIColor.white