Difference between revisions of "Intermediate C++ Game Programming Tutorial 11"
From Chilipedia
(→Video Timestamp Index) |
(→Video Timestamp Index) |
||
Line 11: | Line 11: | ||
* Using a <code>RectI clip</code> object, clip a (subregion of a) sprite [https://youtu.be/uHZmTmTRdkA?t=6m45s 6:45] | * Using a <code>RectI clip</code> object, clip a (subregion of a) sprite [https://youtu.be/uHZmTmTRdkA?t=6m45s 6:45] | ||
* Chili's Dank Meta Nugs - teacher's advice [https://youtu.be/uHZmTmTRdkA?t=13m16s 13:16] | * Chili's Dank Meta Nugs - teacher's advice [https://youtu.be/uHZmTmTRdkA?t=13m16s 13:16] | ||
+ | * Cleaning up [https://youtu.be/uHZmTmTRdkA?t=13m57s 13:57] | ||
* [WORK IN PROGRESS] | * [WORK IN PROGRESS] | ||
Revision as of 04:02, 7 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
- Cleaning up 13:57
- [WORK IN PROGRESS]
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 used compiled sprites.