Difference between revisions of "Beginner C++ Game Programming Tutorial 5"
From Chilipedia
(Created page with "Comparison (<code>></code>, <code><</code>, <code>==</code>, <code>>=</code>, <code><=</code>, <code>!=</code>) and Boolean logic operators (<code>&&</code>, <code>||</code>,...") |
|||
Line 2: | Line 2: | ||
== Concepts Taught == | == Concepts Taught == | ||
− | * Comparison operators | + | * Comparison operators (<code>></code>, <code><</code>, <code>==</code>, <code>>=</code>, <code><=</code>, <code>!=</code>) |
− | * Boolean operators | + | * Boolean operators (<code>&&</code>, <code>||</code>, <code>!</code>) |
* Using parentheses to change order of evaluation (i.e. change what an operator works on) | * Using parentheses to change order of evaluation (i.e. change what an operator works on) | ||
Revision as of 22:09, 19 August 2016
Comparison (>
, <
, ==
, >=
, <=
, !=
) and Boolean logic operators (&&
, ||
, !
). Operators galore!
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.