- 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.
推薦閱讀
- Cocos2d Cross-Platform Game Development Cookbook(Second Edition)
- 一步一步學Spring Boot 2:微服務項目實戰
- 網頁設計與制作教程(HTML+CSS+JavaScript)(第2版)
- Python Network Programming Cookbook(Second Edition)
- Hands-On Microservices with Kotlin
- Web Development with MongoDB and Node(Third Edition)
- Arduino可穿戴設備開發
- 深入實踐DDD:以DSL驅動復雜軟件開發
- 官方 Scratch 3.0 編程趣味卡:讓孩子們愛上編程(全彩)
- 數據結構與算法詳解
- Android開發權威指南(第二版)
- Laravel 5.x Cookbook
- Unity虛擬現實開發圣典
- 深入實踐C++模板編程
- Performance Testing with JMeter 3(Third Edition)