Difference between revisions of "Beginner C++ Game Programming Tutorial 5"
From Chilipedia
Line 1: | Line 1: | ||
− | Comparison | + | Comparison and Boolean logic operators. Operators galore! Make <code>if</code> statements great again! Let the <code>int</code> dick measuring contests begin! |
== Concepts Taught == | == Concepts Taught == |
Revision as of 22:14, 19 August 2016
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 (i.e. change 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.