- Cocos2d-x by Example:Beginner's Guide(Second Edition)
- Roger Engelbert
- 69字
- 2021-07-23 20:00:28
Extending Sprite
No, there is nothing wrong with Sprite
. I just picked a game where we need a bit more information from some of its sprites. In this case, we want to store where a sprite is and where it will be once the current iteration of the game is completed. We will also need a helper method to get the sprite's radius.
So let's create our GameSprite
class.
推薦閱讀
- 華為HMS生態與應用開發實戰
- PHP+MySQL網站開發技術項目式教程(第2版)
- 技術領導力:程序員如何才能帶團隊
- 數據結構習題精解(C語言實現+微課視頻)
- 精通網絡視頻核心開發技術
- PhoneGap Mobile Application Development Cookbook
- 青少年Python編程入門
- Go并發編程實戰
- Mastering Unity 2D Game Development(Second Edition)
- Geospatial Development By Example with Python
- Image Processing with ImageJ
- Scratch·愛編程的藝術家
- 玩轉.NET Micro Framework移植:基于STM32F10x處理器
- 現代C:概念剖析和編程實踐
- iOS開發項目化入門教程