The Generic Game Model (GGM) project seeks to provide relatively simple classes to facilitate easy creation of 2D games for iOS, primarily using UIKit
. GGM classes (GGM_BaseModel
and GGM_UIView
for example) should not generally be instantiated directly, but rather sublcassed by your project to meet your specific needs.
GenericGameModel is available through CocoaPods, to install it simply add the following line to your Podfile:
pod "GenericGameModel"
If you don't want to use CocoaPods, you may instead simply copy all the files in the GenericGameModel/ folder into your project, but note that there is one requirement, the excellent BaseModel class by Nick Lockwood, which you may find here: https://github.com/nicklockwood/BaseModel
To run the example project; clone the repo, and run pod install
from the Example directory first.
Generally speaking, you should subclass GGM_BaseModel
and GGM_UIView
. See the example project.
Martin Grider -- http://chesstris.com -- http://twitter.com/livingtech
GenericGameModel is available under the MIT license. See the LICENSE file for more info.
Unfortunately, the first few versions of this library pretty regularly broke the previous API. Additionally, they weren't using the propper semantic versioning.
Added support for Apple TV to the podspec.
Added GGM_UIView+Hexagons
category. Made the GGM_UIView
shouldDragContinuous
property a little more automagical. (You can uncomment a line in GGMEx_ViewController
to test it out.) Very minor API changes, but enough to bump the version, probably.
Added less weird hex grid type GGM_GRIDTYPE_HEX_SQUARE
.
Added support for triangular grids. More API changes.
Added support for hex grids. Various refactoring (apologies).
Initial release.