Important facts about commercial licenses

  • Licenses are perpetual. They do not expire and do not need to be renewed.
  • Licenses can be upgraded. You can upgrade to a more expensive license later paying only the difference in cost.
  • Pay attention to the distribution type - Hosted (sites / servers), binary (applications) or source (includes all the others). Choose according to your needs (more below).
  • All licenses allow commercial use unless otherwise indicated.
  • Read the full license by clicking on the icon.
  • Read more about licenses in our handy license guide.
$99

Application License

1 application Binary restricted distribution 2 year support
You need to log-in or create an account
  • Create an account
  • Log-in
  • Please use your real name.
  • Account activation link will be sent to this address.
  • Minimum 8 characters

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

Line-Drawing Game Starterkit

Line-Drawing Game Starterkit
Developed by Steffen Itterheim, Released Aug 19, 2011

Build a line-drawing game such as Flight Control quickly using this full-featured starterkit. Fully commented source-code helps you get a head start and understand how such games are developed.

Objective-C

Tags: cocos2d , game , game development , gamedev

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.

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

Back to top

Features

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

Compatibility:

  • 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.
Back to top

Games made with this Starterkit

User Reviews

No reviews have been submitted yet.
Read all 8 comments »

Questions & Comments


Or enter your name and Email
  • Paul Gunn License holderApplication License 7 months ago
    Hi does this work okay on iOS 6 and iOS 6.0.1?
    • Steffen Itterheim Developer 7 months 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).
    • Paul Gunn License holderApplication License 7 months 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 :)
    • Paul Gunn License holderApplication License 7 months ago
      Actually, I guess I can just download the new version on my licence right? As long as I discard the other version?
    • Steffen Itterheim Developer 7 months 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.
    • Adam Benayoun 7 months ago
      Paul,
      You can download updates (as long as you have the right license) under the downloads tab on this component profile:
      http://www.binpress.com/app/linedrawing-game-starterkit/551/downloads
    • Paul Gunn License holderApplication License 6 months ago
      Thanks Adam. I've downloaded the latest version now. Just waiting for my artwork to be finished grrrr!!!!!
  • Vasco Neering 1 year 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.
You must be logged-in to vote. Log-in to your account or register now.