Class Notes (1,100,000)
CA (630,000)
SFU (10,000)
IAT (200)
IAT 167 (30)
Lecture

IAT167-Week 12 Lecture 1 and 2.docx


Department
Interactive Arts & Tech
Course Code
IAT 167
Professor
Jack Stockholm

This preview shows half of the first page. to view the full 2 pages of the document.
Week 12 Lecture 1 and 2
Bitmaps and Blitting
Re-add block events
Gameplay Solution
Programmatic Solution
Bitmap
Image file format / Memory organization
Mapped array of bits / pixels
Spatially mapped
BMP, PNG, GIF
Blitting
Blit to take a map of bits and move it around in memory
Screen memory
Sprite memory
Flash Sprites are software sprites drawn to the screen every frame
Flash uses screen invalidation to mark areas of the screen for refreshing
Full screen blit
Highest performance
Inflexible
Bitmap Tile sheet
Flexibility
Background tiles
Sprites with Transparency (PNG)
Bitmaps in Flash BitmapData
BitmapData Object
BitmapData > Object
Separates bitmap rendering operations from display updating routines, thus does not incur the
per-frame overhead of constantly redrawing vectored content
Bitmaps in Flash Bitmap Object
Bitmap Object
Bitmap > DisplayObject > EventDispatcher > Object
Can be loaded with bitmap data for display
Loading a Bitmap
[Embed]
BitmapAsset > Bitmap > DisplayObject > …
Embedding includes the asset in the SWF file
Associated the image with a variable:
You're Reading a Preview

Unlock to view full version