Difference between revisions of "Beginner C++ Game Programming Tutorial 5"

From Chilipedia
Jump to: navigation, search
(Homework)
Line 12: Line 12:
 
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.
 
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.
+
The solution is given in [https://youtu.be/Uxca1CD5ifk this video].
 
+
  
 
== See also ==
 
== See also ==
 
* [[Beginner C++ Game Programming Tutorial 6|Next in series (Tutorial 6)]]
 
* [[Beginner C++ Game Programming Tutorial 6|Next in series (Tutorial 6)]]
 
* [[Beginner C++ Game Programming Series]]
 
* [[Beginner C++ Game Programming Series]]

Revision as of 12:29, 25 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 (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 is given in this video.

See also