(IOS)Let User Play Game When Loading
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.
-
Cocoapod
Now, You can use Cocoapod !
pod 'JDGamesLoading'
-
Fork my reop.
Now,It's more easier to call the loading then JDBreakLoading.
Just One Line:
JDGamesLoading(game: .Breaks).show()
For Dismiss:
JDGamesLoading.dismiss()
- .Snacks:
- .PingPong:
- .Breaks:
- .Puzzle:
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