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

From Chilipedia
Jump to: navigation, search
(Undo revision 1946 by Ap (talk))
Line 1: Line 1:
 +
How to make member functions. That is all.
 +
 +
== Concepts Taught ==
 +
* Declaring and defining member functions
 +
* Function return values
 +
 
== Video Timestamp Index ==
 
== Video Timestamp Index ==
* Intro [https://www.youtube.com/watch?v=kJUjegbqFag&t=0m0s 0:00]
+
Coming soon!
* Current code recap [https://www.youtube.com/watch?v=kJUjegbqFag&t=0m26s 0:26]
+
 
* Making our first function (very emotional moment) [https://www.youtube.com/watch?v=kJUjegbqFag&t=1m18s 1:18]
+
== Homework ==
* Refactoring, making our function more versatile, function parameters [https://www.youtube.com/watch?v=kJUjegbqFag&t=4m46s 4:46]
+
There are two levels of difficulty.
* Revisiting collision test code because of all the touching [https://www.youtube.com/watch?v=kJUjegbqFag&t=8m21s 8:21]
+
# Create a function(s) to limit the targeting box to within the screen drawing region.
* More refactoring, collision function [https://www.youtube.com/watch?v=kJUjegbqFag&t=9m20s 9:20]
+
# Same as above, but you are not allowed to use the <code>x_mobile</code> and <code>y_mobile</code> member variables directly in the bodies of the functions.
* More boxes [https://www.youtube.com/watch?v=kJUjegbqFag&t=14m17s 14:17]
+
 
* Homework [https://www.youtube.com/watch?v=kJUjegbqFag&t=16m57s 16:57]
+
The solution is given in [https://youtu.be/_mBq68B7_08 this video].
 +
 
 +
== See also ==
 +
* [[Beginner C++ Game Programming Tutorial 7|Next in series (Tutorial 7)]]
 +
* [[Beginner C++ Game Programming Series]]

Revision as of 00:29, 23 September 2019

How to make member 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 this video.

See also