1 / 8

Cocos2d-x 实战 百集系列课程

Cocos2d-x 实战 百集系列课程. 郭宏志. 核心类 - 精灵类 Sprite. 精灵类简介 精灵类的源码分析 精灵类的实例. 精灵类简介. 在游戏开发中,经常会遇到精灵 (sprite) 这个术语。精灵是一个图像,可以在屏幕上独立地移动。 一个精灵可能是玩家角色、敌人或者是大的背景图像。一般情况下,精灵来自于开发者所准备的 PNG 或 PVR 图像。 一旦图像载入内存,就会将精灵转换成纹理图,从而被 GPU 用于在屏幕上渲染。. 精灵类的源码分析. 位置 cocos2d/ cocos /2d/ CCSprite.h CCSprite.cpp.

Download Presentation

Cocos2d-x 实战 百集系列课程

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Cocos2d-x实战 百集系列课程

  2. 郭宏志 核心类-精灵类Sprite

  3. 精灵类简介 • 精灵类的源码分析 • 精灵类的实例

  4. 精灵类简介 • 在游戏开发中,经常会遇到精灵(sprite)这个术语。精灵是一个图像,可以在屏幕上独立地移动。 • 一个精灵可能是玩家角色、敌人或者是大的背景图像。一般情况下,精灵来自于开发者所准备的 PNG 或 PVR图像。 • 一旦图像载入内存,就会将精灵转换成纹理图,从而被 GPU 用于在屏幕上渲染。

  5. 精灵类的源码分析 • 位置 • cocos2d/cocos/2d/CCSprite.h CCSprite.cpp

  6. 精灵类的源码分析

  7. 精灵类实例 • 实例 • 在界面上添加地鼠精灵和背景精灵

More Related