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

From Chilipedia
Jump to: navigation, search
(Homework)
Line 10: Line 10:
  
 
== Homework ==
 
== 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 shape by holding the control key, and change its color by holding the shift key. The solution is given at the beginning of Tutorial 4.
+
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.
  
 
== See also ==
 
== See also ==
 
* [[Beginner C++ Game Programming Tutorial 4|Next in series (Tutorial 4)]]
 
* [[Beginner C++ Game Programming Tutorial 4|Next in series (Tutorial 4)]]
 
* [[Beginner C++ Game Programming Series]]
 
* [[Beginner C++ Game Programming Series]]

Revision as of 13:53, 13 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

  • if statement
  • bool variable type
  • Keyboard (Chili Framework-specific concept)

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.

See also