Difference between revisions of "Intermediate C++ Game Programming Tutorial 11"
From Chilipedia
(→Video Timestamp Index) |
(→Homework) |
||
Line 24: | Line 24: | ||
== Homework == | == Homework == | ||
− | The homework is to use the images provided in the above zip file to upgrade the Poo Game to no longer | + | The homework is to use the images provided in the above zip file to upgrade the Poo Game to no longer use compiled sprites. |
+ | * Homework solution video [https://youtu.be/BPExmXz0Luk] | ||
== See also == | == See also == | ||
* [[Intermediate C++ Game Programming Tutorial 12|Next in series (Tutorial 12)]] | * [[Intermediate C++ Game Programming Tutorial 12|Next in series (Tutorial 12)]] | ||
* [[Intermediate C++ Game Programming Series]] | * [[Intermediate C++ Game Programming Series]] |
Revision as of 03:30, 8 September 2019
In this tutorial we learn how to draw parts (subregions) of images, we learn how to clip our shit so that it don't go off the screen (or off of any arbitrary rectangle we define in fact), and we learn to draw sprites with transparent pixels.
Contents
[hide]Topics Covered
- Drawing image subregions
- Clipping sprites
- Drawing sprites with chroma keying (transparent pixels)
Video Timestamp Index
- Drawing subregions of a sprite sheet 0:57
- Using a
RectI clip
object, clip a (subregion of a) sprite 6:45 - Chili's Dank Meta Nugs - teacher's advice 13:16
- Code clean up. Have different overloaded definitions of
DrawSprite()
call the most advanced version with clipping 13:57 - Implement
DrawSprite
functions that apply chroma keying (transparent pixels) 15:03 - Adding
operator==
andoperator!=
member functions (comparison operators) to theColor
class 17:37 - Homework assignment 19:00
Source Code
Download Materials
Homework
The homework is to use the images provided in the above zip file to upgrade the Poo Game to no longer use compiled sprites.
- Homework solution video [1]