Difference between revisions of "Beginner C++ Game Programming Tutorial 10"
From Chilipedia
(→Homework) |
|||
Line 14: | Line 14: | ||
# 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 the section "Virtual Key Codes" on [[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 the section "Virtual Key Codes" on [[Keyboard (Chili Framework)#Virtual_Key_Codes|this page]]. | ||
− | The solution is given in a | + | The solution is given in a [https://youtu.be/lWTwNXfU-Nc this] video. |
== Downloads == | == Downloads == |
Revision as of 21:02, 23 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 postincrementx++
operators
Video Timestamp Index
Coming soon!
Homework
- 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 the section "Virtual Key Codes" on this page.
The solution is given in a this video.