ThePythonGameBook

learn Python. Create Games

User Tools

Site Tools


en:part2:pygame:step008

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:part2:pygame:step008 [2010/06/15 09:16]
Horst JENS
— (current)
Line 1: Line 1:
-^ [[:​en:​part2:​pygame:​step007| ← previous]] ^ [[en:​part2:​pygame:​start| ↑ Overview]] ^ [[:​en:​part2:​pygame:​step009| → next ]] ^ 
-====== step 008 - animation and sprite sheet ====== 
- 
-Remember the Subsurfaces from the last step ? And remember that the snake had always the same grinning facial expression ? Now, let's make some animated **sprites**((a 2d-object moving around is referred as a [[wp>​Sprite_(computer_graphics)]])) - not pygame sprites, but surfaces that show different images of an animation cycle, like a bird flapping it wings. 
- 
-Instead of painting all the single pictures of an animation cycle myself i prefer to use ready-made sprite sheets. 
-In the data folder, you will find a spritesheet((a graphic file with lot's of sprites)) from http://​www.flyingyogi.com showing several pictures of an animal. 
- 
-With the help of pygame'​s subsurface command, i will show you how to extract single images from the sprite sheet and use them. 
- 
-==== discussion ==== 
- 
-==== additional resources ==== 
- 
- 
- 
- 
-==== source code ==== 
- 
-^ [[:​en:​part2:​pygame:​step007| ← previous]] ^ [[en:​part2:​pygame:​start| ↑ Overview]] ^ [[:​en:​part2:​pygame:​step009| → next ]] ^ 
  
/var/www/horst/thepythongamebook.com/data/attic/en/part2/pygame/step008.1276586166.txt.gz · Last modified: 2014/01/09 11:07 (external edit)