Beginner C++ Game Programming Tutorial 5

From Chilipedia
Revision as of 10:54, 23 August 2016 by Chili (Talk | contribs) (Solution Errata)

Jump to: navigation, search

Comparison and Boolean logic operators. Operators galore! Make if statements great again! Let the int dick measuring contests begin!

Concepts Taught

  • Comparison operators (>, <, ==, >=, <=, !=)
  • Boolean operators (&&, ||, !)
  • Using parentheses to change order of evaluation (effectively changing what an operator works on)

Video Timestamp Index

Coming soon!

Homework

Draw two targeting boxes, one controlled with the arrow keys and one stationary, and have the color of the mobile targeting box change whenever the targeting boxes overlap.

The solution will be given in a future video.

Solution Errata

Read the below (click Expand) only after attempting the problem yourself.

[Expand]

See also