套用介紹
線與cocos2d的的繪圖遊戲STARTERKIT建的演示程式。 原始碼可供出售信息, 這場比賽是作為一個示範的功能的原始碼。 頭開始畫線遊戲和保存天,如果不是幾個星期的時間! 您將獲得的遊戲為藍本後,非常受歡迎,特別是畫線遊戲。 您將學習如何畫線,檢測涉及的對象,有對象遵循的路徑 - 和多! 寫一個專業的遊戲開發商和遊戲行業的資深人士,(我)的原始碼是有很多的注釋說明我的理由,並書面可讀性記注釋。 功能列表的STARTERKIT原始碼: 清楚地分開,結構良好的的GameScene代碼設計與最低的依賴 方便地添加新的對象和擴展對象的參數 張揚的編碼方式,以幫助捕獲編碼錯誤 觸摸對象繪製的路徑(無論是一個路徑或不) 結束路徑圖繪製路徑時,相應的目標位置(例如簡易機場的飛機,看問題的角度尊重) 路徑圖結束時,任意點超出限制(為了避免速度變慢) 路徑繪製厚的透明線條樣式,如港主拖動時,無毛刺 無論用戶如何快速移動手指,路徑被分為長度相等的塊 對象螢幕菌種以外,位置可以被重新定義和擴展 對象顯示在螢幕框線傳入的警告標誌 顯示對象碰撞時發出警告,任何兩個人都太接近 對象路徑跟蹤結束 - 然後淡出,並增加分數或繼續移動 對象總是在運動方向旋轉 對象在螢幕邊緣反彈 - 激勵的標籤成功著陸,預取 分數和高分標籤 - 排行榜保存到磁碟之間的遊樂活動 支持橫向autoflip 支持iPhone / iPod和iPad配有獨立的目標,使用相同的代碼庫 - 載入正確的資源檔案,這取決於目標(iPhone或iPad) 適當的暫停處理來電,簡訊 許多通常有用的的數學輔助功能,包括 大量的注釋說明理由並提供一些提示的改進 - 完全記錄 使用專業的Xcode項目從我的教程 測試與cocos2d v0.99.3和iPhone SDK 3.2和4.0 按照支持網站連結獲取更多信息。 Demo App of the Line-Drawing Game Starterkit built with cocos2d. Source code is available for sale, see Support Website! This game is meant as a demonstration of the capabilities of the source code. 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 that particular, extremely popular line-drawing 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. Feature List of the Starterkit source code: -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 -supports iPhone/iPod and iPad with seperate Targets using the same codebase -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 -tested with cocos2d v0.99.3 and iPhone SDK 3.2 and 4.0 Follow the support website links for more information.
支持版本
iOS4.0及以上