Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamesdouble/JDBreaksLoading
You can easily start up a little breaking game by one line.
https://github.com/jamesdouble/JDBreaksLoading
Last synced: about 1 month ago
JSON representation
You can easily start up a little breaking game by one line.
- Host: GitHub
- URL: https://github.com/jamesdouble/JDBreaksLoading
- Owner: jamesdouble
- License: mit
- Created: 2016-12-14T15:58:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-11T03:10:17.000Z (over 7 years ago)
- Last Synced: 2024-04-24T14:46:31.967Z (9 months ago)
- Language: Swift
- Homepage:
- Size: 636 KB
- Stars: 153
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - JDBreaksLoading - You can easily start up a little breaking game indicator by one line. (UI / Activity Indicator)
- awesome-ios-star - JDBreaksLoading - You can easily start up a little breaking game indicator by one line. (UI / Activity Indicator)
README
# JDBreaksLoading
![Alt text](https://img.shields.io/badge/SwiftVersion-3.0+-red.svg?link=http://left&link=http://right)
![Alt text](https://img.shields.io/badge/IOSVersion-8.0+-green.svg)
![Alt text](https://img.shields.io/badge/BuildVersion-1.0.0-green.svg)
![Alt text](https://img.shields.io/badge/Author-JamesDouble-blue.svg?link=http://https://jamesdouble.github.io/index.html&link=http://https://jamesdouble.github.io/index.html)***
# Introduction
JDBreaksLoading Based on simple UIView and SpriteKit.You can easily start up a little breaking game by one line.
By the way, don't make user wait too long to play the game~
Thanks for using.
![Alt text](/../master/Readme_img/JDBreaksLoading.gif?raw=true "")
# Usage
To add JDBreaksLoading to your view, just give it a frame and addSubview.
```Swift
let jdbreaksLoading:JDBreaksLoading = JDBreaksLoading(frame: frame)
self.view.addSubview(jdbreaksLoading)
```# Installation
CocoaPods```
platform :ios, '8.0'
use_frameworks!
pod 'JDBreaksLoading'
```### Game Configuration
The default [ Ball, Block , Paddle -> All white, Block count: 3 ]If you want to chagnge some game setting (color, block...etc).
You will need to set 'JDBreaksGameConfiguration'
```Swift
let config:JDBreaksGameConfiguration = JDBreaksGameConfiguration(paddle_color: UIColor.white, ball_color: UIColor.white, block_color: UIColor.white, blocks_count: 3)
let jd:JDBreaksLoading = JDBreaksLoading(frame: frame, configuration: config)
self.view.addSubview(jd)
```# Meta
JamesDouble – [email protected]
Distributed under the MIT license. See LICENSE for more information.
https://github.com/jamesdouble/JDBreaksLoading