- 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.
推薦閱讀
- 計算機圖形學編程(使用OpenGL和C++)(第2版)
- 數據結構簡明教程(第2版)微課版
- VMware vSphere 6.7虛擬化架構實戰指南
- MySQL數據庫管理與開發(慕課版)
- TypeScript實戰指南
- TradeStation交易應用實踐:量化方法構建贏家策略(原書第2版)
- Node.js全程實例
- 焊接機器人系統操作、編程與維護
- Microsoft Azure Storage Essentials
- Mastering React
- Learning JavaScript Data Structures and Algorithms(Second Edition)
- OpenMP核心技術指南
- Clojure for Java Developers
- C++ System Programming Cookbook
- Learning iOS Penetration Testing