atuooo / PacmanPageControl

Let's play Pac-Man.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PacmanPageControl

Let's play Pac-Man:

demo

Install

To integrate PacmanPageControl into your Xcode project using CocoaPods, specify it to a target in your Podfile:

pod 'PacmanPageControl'
github "atuooo/PacmanPageControl"

Manually

Clone this repo and throw the source files under Sources folder into your project to use it.

Example

// init 
let pacman = PacmanPageControl(frame: pacmanFrame)
pacman.scrollView = scrollView
// pacman.dotColorStyle = .random(hue: .orange, luminosity: .light)
// pacman.pacmanColorStyle = .changeWithEatenDot

view.addSubview(pacman)

You can also set it in Interface Builder.

Acknowledgements

Thanks for onevcat's RandomColorSwift.

License

PacmanPageControl is released under the terms of the MIT license. See LICENSE for details.

About

Let's play Pac-Man.

License:MIT License


Languages

Language:Swift 95.0%Language:Ruby 3.0%Language:Objective-C 2.1%