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

From Chilipedia
Jump to: navigation, search
(Created page with "How to make functions. That is all. == Concepts Taught == * Declaring and defining member functions * Function return values == Video Timestamp Index == Coming soon! == Hom...")
 
(Homework)
Line 11: Line 11:
 
There are two levels of difficulty.
 
There are two levels of difficulty.
 
# Create a function(s) to limit the targeting box to within the screen drawing region.
 
# Create a function(s) to limit the targeting box to within the screen drawing region.
# Same as above, but you are not allowed to use the x_mobile and y_mobile member variables directly.
+
# Same as above, but you are not allowed to use the x_mobile and y_mobile member variables directly in the bodies of the functions.
  
 
The solution is given in a future video.
 
The solution is given in a future video.

Revision as of 20:14, 27 August 2016

How to make functions. That is all.

Concepts Taught

  • Declaring and defining member functions
  • Function return values

Video Timestamp Index

Coming soon!

Homework

There are two levels of difficulty.

  1. Create a function(s) to limit the targeting box to within the screen drawing region.
  2. Same as above, but you are not allowed to use the x_mobile and y_mobile member variables directly in the bodies of the functions.

The solution is given in a future video.

See also