Screenshots
Integration time
10 minutes
Saves you
$9600 / 160h *
Description
Get template code for creating your own version of the extremely popular line drawing / path drawing games like Flight Control, Harbor Master, Boom Brigade and Pirate Bay. All of them have the gameplay element of guiding an object to a goal by drawing a path (or line) from A to B.
Learn how to draw lines, detect touches on objects, have objects follow a path β and much, much more! Written by Steffen Itterheim, professional game developer and published book author (Learn iPhone and iPad Cocos2D Game Development, Apress).
The source-code is annotated with lots of comments explaining rationale and was written with readability in mind. The included sample game works natively on both iPhone and iPad. Familiarity with the cocos2d-iphone game engine is recommended.
The purchase grants you a site license, allowing you to share the source code with your project team.
Note: your purchase helps to support the development of Kobold2D, the next generation cocos2d game engine.
High level development practices:
- Clearly separated and well-structured GameScene code design with a minimum
of dependencies
- Easy to add new objects and extend object parameters
- Assertive coding style to help catch coding errors early on
Fully-featured game code:
- Touch object & draw a path for it (whether itβs already following a path or not)
- Path drawing ends when path is drawn over appropriate target location (eg airstrip for airplanes, respecting angle of approach)
- Path drawing ends when arbitrary point limit is exceeded (to avoid slowdowns)
- Path is drawn when dragged with thick transparent line style like Harbor Master, without glitches
- Path is split into equal length pieces no matter how quickly user moves finger
- Objects spawn outside screen, locations can be re-defined and extended
- Objects display incoming warning marker at screen border
- Objects display collision warning when any two of them are getting too close
- Objects follow path to end β then fade out and increase score or continue moving
- Objects always rotate in movement direction
- Objects bounce back at screen borders
- Motivational Labels for successful landings, precached
- Score and HighScore Labels
- HighScore saved to disk between play sessions
- Supports both Landscape orientations with autoflip
- Loads correct resource files depending on Target (iPhone or iPad)
- Proper Pause handling for incoming calls, SMS
- Many generally useful Math Helper functions included
- Lots of comments explaining rationale and giving tips for improvement
- Uses the professional Xcode Project from my Tutorial (Feature List)
- Includes both iPhone/iPod Touch and iPad versions using seperate Targets, same codebase
- Uses and includes cocos2d v1.0.1
Compatibility:
- Compatible with iOS 3.x, 4.x and 5.x
- Compatible with Xcode 3.2 and Xcode 4.x
- Easy setup, just unzip and use β no Xcode project setup required
Questions & Comments
2 weeks ago
Leave a comment
Log-in now or register for a free account.