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

From Chilipedia
Jump to: navigation, search
(Created page with "In this video we learn how to loop our shit. Fuckoff copy and paste. Die in a gasoline fire (just kidding, don't leave me baby!) == Concepts Taught == * <code>while</code> lo...")
 
(Homework)
Line 12: Line 12:
 
== Homework ==
 
== Homework ==
 
# Write a routine to draw a rectangle on the screen.
 
# Write a routine to draw a rectangle on the screen.
# Make it so that you can control the position of the rectangle with the arrow keys and the size of the rectangle with the WASD keys. For info on querying keyboard input for alphanumeric keys, see [[Keyboard (Chili Framework)#Virtual_Key_Codes this page]].
+
# Make it so that you can control the position of the rectangle with the arrow keys and the size of the rectangle with the WASD keys. For info on querying keyboard input for alphanumeric keys, see [[Keyboard (Chili Framework)#Virtual_Key_Codes|this page]].
  
The solution is given in a future.
+
The solution is given in a future video.
  
 
== Downloads ==
 
== Downloads ==

Revision as of 23:41, 4 October 2016

In this video we learn how to loop our shit. Fuckoff copy and paste. Die in a gasoline fire (just kidding, don't leave me baby!)

Concepts Taught

  • while loop
  • for loop
  • do ... while loop
  • Preincrement ++x and postincrement x++ operators

Video Timestamp Index

Coming soon!

Homework

  1. Write a routine to draw a rectangle on the screen.
  2. Make it so that you can control the position of the rectangle with the arrow keys and the size of the rectangle with the WASD keys. For info on querying keyboard input for alphanumeric keys, see this page.

The solution is given in a future video.

Downloads

See also