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

From Chilipedia
Jump to: navigation, search
Line 1: Line 1:
We learn how to control the flow of execution using <code>if</code> statements, we learn about a new variable type called <code>bool</code>, and we learn how to use the [[Chili Framework]] to get [[Keyboard (Chili Framework)|keyboard]] input. All this, plus the dankest memes from 2007.
+
We learn how to control the flow of execution using <code>if</code> statements, we learn about a new [[variable]] type called <code>bool</code>, and we learn how to use the [[Chili Framework]] to get [[Keyboard (Chili Framework)|keyboard]] input. All this, plus the dankest memes from 2007.
  
 
== Concepts Taught ==
 
== Concepts Taught ==

Revision as of 15:07, 12 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 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.

See also