Line-Drawing Game Starterkit

Line-Drawing Game Starterkit

Released 7 years ago , Last update 5 years ago

Build a line-drawing game for iOS such as Flight Control with this starterkit. Fully commented and documented Objective-C source-code gives you a base to work from and walks you through the process..

Create your own version of extremely popular line / path drawing games like Flight Control, Harbor Master, Boom Brigade and Pirate Bay, that have the core gameplay around 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 process, and 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.

Note: your purchase helps to support the development of Kobold2D, the next generation cocos2d game engine.


14 day 14-day money-back guarantee


Application License

  • Perpetual license

  • 1 application

  • Can distribute binary products only

  • Commercial use

  • 24 months support


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 Objective-C 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, both v1.1 and v2.0
  • Two variants: one with ARC enabled, the other without ARC


  • Compatible with iOS 4 through iOS 6
  • Compatible with Xcode 4
  • Easy setup, just unzip, choose one of the four projects (v1.1/v2.2/ARC/no ARC) and start working.

Games made with this Starterkit

1 license From » $99.99 View Licenses

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.

Or enter your name and Email
  • PG Paul Gunn License holderApplication License
    1 year support
    Purchased on Nov 5, 2012
    5 years ago
    Hi does this work okay on iOS 6 and iOS 6.0.1?
    • SI Steffen Itterheim Publisher 5 years ago
      Yes, I've updated the description to reflect that. I recently fixed the iOS 6 orientation issues (both for iOS 6 and iOS 4/5 devices).
    • PG Paul Gunn 5 years ago
      Cool, I've already downloaded it. I still had to do a tiny bit of tweaking to get it to compile, but all good now. My first game is in mid-dev right now, hoping to get it on the app store within the next few weeks. Just in time for Christmas :)
    • PG Paul Gunn 5 years ago
      Actually, I guess I can just download the new version on my licence right? As long as I discard the other version?
    • SI Steffen Itterheim Publisher 5 years ago
      If you download it again you should have the new version (it should end with the date 2012-11-07). I'm not sure how binpress handles downloading updates, I guess you'll find it in your profile under the list of products you purchased.
    • AB Adam Benayoun 5 years ago
      Paul, You can download updates (as long as you have the right license) under the downloads tab on this component profile:
    • PG Paul Gunn 5 years ago
      Thanks Adam. I've downloaded the latest version now. Just waiting for my artwork to be finished grrrr!!!!!
  • VN Vasco Neering 6 years ago
    Hi, I was wondering if this code is usable for a follow the line application? So instead of the user drawing a line which an object then follows I want the user to draw along a path, at the end telling him how much he deviated from the path.