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

From Chilipedia
Jump to: navigation, search
(Video Timestamp Index)
Line 7: Line 7:
  
 
== Video Timestamp Index ==
 
== Video Timestamp Index ==
Coming soon!
+
* Intro [https://youtu.be/xWLcp_yOpww 0:00]
 +
* Homework solution [https://youtu.be/xWLcp_yOpww?t=0m29s 0:29]
 +
* Sprite origin (base position) [https://youtu.be/xWLcp_yOpww?t=1m30s 1:30]
 +
* Order of statement execution [https://youtu.be/xWLcp_yOpww?t=5m10s 5:10]
 +
* Branching (conditional flow control) [https://youtu.be/xWLcp_yOpww?t=6m40s 6:40]
 +
* <code>if</code> statement / <code>bool</code> type [https://youtu.be/xWLcp_yOpww?t=7m52s 7:52]
 +
* Keyboard input / objects inside other objects [https://youtu.be/xWLcp_yOpww?t=12m06s 12:06]
 +
* Function return values [https://youtu.be/xWLcp_yOpww?t=15m55s 15:55]
 +
* Virtual key codes [https://youtu.be/xWLcp_yOpww?t=17m27s 17:27]
 +
* <code>if</code> ... <code>else</code> statement [https://youtu.be/xWLcp_yOpww?t=19m33s 19:33]
 +
* <code>if</code> ... <code>else if</code> chaining [https://youtu.be/xWLcp_yOpww?t=20m35s 20:35]
 +
* Nesting <code>if</code> statements [https://youtu.be/xWLcp_yOpww?t=22m05s 22:05]
 +
* Homework assignment [https://youtu.be/xWLcp_yOpww?t=23m48s 23:48]
  
 
== Homework ==
 
== Homework ==

Revision as of 20:02, 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

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

Video Timestamp Index

  • Intro 0:00
  • Homework solution 0:29
  • Sprite origin (base position) 1:30
  • Order of statement execution 5:10
  • Branching (conditional flow control) 6:40
  • if statement / bool type 7:52
  • Keyboard input / objects inside other objects 12:06
  • Function return values 15:55
  • Virtual key codes 17:27
  • if ... else statement 19:33
  • if ... else if chaining 20:35
  • Nesting if statements 22:05
  • Homework assignment 23:48

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