• Stars
    star
    291
  • Rank 142,563 (Top 3 %)
  • Language
    Objective-C
  • License
    Other
  • Created over 12 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

MBTileParser is a game engine written using pure UIKit in the days before SpriteKit.

MBTileParser

Look Ma, a game engine! Running on UIKit! MBTileParser is a small game engine that supports loading TMX files and TexturePacker files directly into UIKit.

Screenshots & Demo:

I've uploaded a demo video to YouTube.

Here's what the game engine looks like in action:

Walking Around Some Dialog

Features:

MBTileParser can do five things right now. Load maps, load sprites, display dialog, take input via virtual controls, and retain game state.

  • Load maps: MBTileParser is actually the name of a class in the engine. You can load TMX files. Use the MBMapViewController class for this.
  • Load sprites: You can load sprites using MBSpriteView. MBMovableSpriteView supports movement too.
  • Display Dialog: Load and parse dialog trees, using MBDialogTree. (Support for end actions is now implemented.)
  • Take Input: Create custom virtual game controls, using the MBJoystick and MBControllerButton classes. You can also use the included layout.
  • Manage Games State: The latest update includes state support (in progress) which allows you to track levels, stamina, score, items, dialog, and more.

Setting it Up:

Clone into, or download, the repository. Copy the folder called MBGameEngine and import MBGameEngine.h.

You can also use cocoapods:

pod 'MBTileParser'

Technical Requirements:

MBTileParser requires the iOS 7 SDK and ARC.

Even if your project doesn't use ARC, you'll want to compile MBTileParser with ARC. Use the -fobjc-arc compiler flag for that.

Notes:

About the TMX format, Tiled, and TexturePacker: The TMX file format is used by Tiled, a tool which helps you make world maps for games by tiling images. (You can download Tiled here). The TMX format is explained in detail on the tiled GitHub repository wiki. The developer of TexturePacker, Andreas LΓΆw, was kind enough to give me a license a while back. Thanks Andreas! You can get TexturePacker from his website.

Parting Words: Please take a moment to star this repository and pass it along to anyone who you think might enjoy it. I also encourage you to look at my other repositories. You might find something you like.

Always have fun, because game engines are fun.

License:

MBTileParser is hereby released under the following modified MIT License.

Copyright (c) 2013 Moshe Berman

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), with the exception of the sample graphics and audio files, to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

The "non-code", graphics and audio, may not be used except to build and run the demo on your own machines.

The artwork is copyrighted by Allan Simpson. He has created it for a project we are working on. You may not use it for anything except to play with the game engine on your own machine(s). Sorry, it's not mine to let you give out.

Finally, if you make any awesome games with this, please let me know!

More Repositories

1

MBCalendarKit

An open source calendar framework for iOS, with support for customization, IBDesignable, Autolayout, and more.
Objective-C
560
star
2

Surfboard

Surfboard is a delightful onboarding framework for iOS.
Objective-C
441
star
3

PatronKit

A framework to add patronage to your apps.
Swift
363
star
4

Precalc

This repo contains some code which can graph equations in a UIView.
Swift
105
star
5

MBMenuController

MBMenuController is similar to UIActionSheet.
Objective-C
72
star
6

ios-audio-remote-control

This repo demonstrates how to control the software based audio remote control in iOS.
Objective-C
52
star
7

FilterBar

A marriage of UINavigationBar and UISegmentedControl.
Swift
34
star
8

KosherCocoa-legacy

A port of the KosherJava project from Java to Objective-C Cocoa
Objective-C
22
star
9

ScrollViewSnapshotter

A demo project showing how to correctly snapshot the contents UIScrollView and its subclasses.
Swift
18
star
10

SpeedDialApp

A speed dial app for iOS.
Objective-C
10
star
11

Fahrii

A wrapper on Safari Mobile to support userscripts
Objective-C
7
star
12

KosherCocoa

My Objective-C port of KosherJava. KosherCocoa enables you to perform sunrise-based and sunset-based calculations for Jewish prayer and calendar.
Objective-C
7
star
13

GiphyKit

A Giphy Client + Framework in Swift
Swift
4
star
14

SpiffyKit

A framework for a drop-in view controller that allows users to contact you and share your app.
Objective-C
4
star
15

CustomScrollIndicator

A quick demo project demonstrating how to customize UIScrollView's scroll indicators.
Swift
3
star
16

MinimalOverflow

A userscript that invokes a minimalist theme on StackOverflow.com
JavaScript
3
star
17

Nippon

Nippon is a classic turn-based trading game. Reinvented for iOS.
Objective-C
3
star
18

ABookOnC

I'm using this repo to brush up on my C code, working with A Book On C.
C
2
star
19

HackerSim

Simulates hacking like in a movie
C++
2
star
20

MBScrollingLabel

A drop-in replacement for UILabel that adds the ability to scroll text.
Objective-C
2
star
21

Fence

Fence is an iOS app which assists in the creation of geofences for use location-sensitive applications.
Objective-C
2
star
22

MBRecyclingScrollView

This is a barebones implementation of view recycling. It includes a UIScrollView subclass, a barebones datasource protocol, and a barebones delegate protocol. There's no demo UI at the moment, but all the files you need are in a single folder.
Objective-C
2
star
23

LevenshteinMachine

A small project to calculate Levenshtein Distance between two strings, including unit tests and samples.
Objective-C
1
star
24

StudentsFirst

A user script to make CUNY First easier to use.
JavaScript
1
star
25

Pantheon

Pantheon is a project that allows the editing of Xcode projects on the iPad.
Objective-C
1
star
26

Nippon-Swift

A rewrite of my iOS game, Nippon, in Swift.
Swift
1
star
27

my-snippets

This is a collection of code snippets for Xcode that help with implementing Appledoc.
1
star
28

html-house

An interactive house made of HTML and CSS.
1
star
29

Introspector

An app to introspect the Objective-C runtime.
Objective-C
1
star
30

Polygon

An app using Core Graphics and math used to draw polygons.
1
star
31

MBGoDavenScraper

This is a utility app for OS X to scrape some data from GoDaven.com
Objective-C
1
star
32

Hipster

Find a new release before it was cool.
Swift
1
star
33

Stolz

Stolz is a library for handling Facebook login on OS X
Objective-C
1
star
34

MosheBerman-ios

This repo contains the source code for the Moshe Berman app.
Objective-C
1
star
35

wedding-site

This is the rep for mosheberman.com/wedding
JavaScript
1
star
36

Bitachon.org

The source code for the Bitachon.org website
JavaScript
1
star
37

PolygonJS

A demo app using math and the HTML 5 canvas element to draw polygons.
1
star
38

MosheBerman.com

My iOS themed website
CSS
1
star
39

Anchor

Anchor is a proof of concept of an idea I had to use one iOS device to help debug an app on another.
Swift
1
star