Difference between revisions of "Beginner C++ Game Programming Tutorial 3"
From Chilipedia
Line 3: | Line 3: | ||
== Concepts Taught == | == Concepts Taught == | ||
* <code>if</code> statement | * <code>if</code> statement | ||
− | * <code>bool</code> variable type | + | * [[variable#bool|<code>bool</code>]] variable type |
* [[Keyboard (Chili Framework)|<code>Keyboard</code>]] (Chili Framework-specific concept) | * [[Keyboard (Chili Framework)|<code>Keyboard</code>]] (Chili Framework-specific concept) | ||
Revision as of 19:20, 14 August 2016
We learn how to control the flow of execution using if
statements, we learn about a new variable type called bool
, and we learn how to use the Chili Framework to get keyboard input. All this, plus the dankest memes from 2007.
Concepts Taught
Video Timestamp Index
Coming soon!
Homework
Using the concepts taught so far, create a program that allows you to position the reticle in one of 9 positions (regular 3x3 grid) by holding the arrow keys, change its color by holding the control key, and change its shape by holding the shift key. The solution is given at the beginning of Tutorial 4.