Professional Documents
Culture Documents
Vuong Ba Thinh
Department of CS –CSE Faculty - HCMUT
1
Outline
• Sprites
• Scrolling
• Tile Maps
2
Sprite
• Sprite: A sprite is a 2D visual object within the game world
that can be drawn using a single image on any given.
• Framework: SDL, XNA, Cocos2d
• Format:
• PNG: less space
• TGA: native
• PVR: iOS
3
Sprite
4
Animating Sprite
5
Animating Sprite
6
Animating Sprite
7
Animating Sprite
8
Animating Sprite
9
Sprite Sheet
Tool: TexturePacker
10
Scrolling Game
• List 3 games???
11
Single-Axis Scrolling
• Jetpack Joyride
12
Background Sprite List
13
Clamp Algorithm
14
Infinite Scrolling
15
Parallax Scrolling
16
4-ways Scrolling
17
4-ways Scrolling
18
Tile Maps
19
Tile Maps
20