What it is: Get a head-start for your Line-Drawing game and save days if not weeks of your time! You’ll get gameplay code modelled after the extremely popular Flight Control game. You’ll learn how to draw lines, detect touches on objects, have objects follow a path – and much, much more! Written by a professional game developer and game industry veteran (me) the source code is annotated with lots of comments explaining my rationale and written with readability in mind.
Contains both iPhone & iPad versions! The Starterkit compiles to both iPhone and iPad devices natively using the same code. If the iPad Target is selected hi-res iPad images will be used. Image selection is done automatically by loading those images whose filenames have the “-ipad” suffix.
Feature List: • clearly seperated 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 • 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 • Fully documented • 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 • 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