Difference between revisions of "Beginner C++ Game Programming Tutorial 19"
From Chilipedia
(Created page with "Welcome to the fantastic erotic world of mathematical vectors. Everything is different now. Every operator is overloaded. == Topics Covered == * 2D vector math basics * Getti...") |
(→Homework) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
== Topics Covered == | == Topics Covered == | ||
* 2D vector math basics | * 2D vector math basics | ||
− | * Getting reference to current object with <code>*this</code> | + | * Getting a reference to the current object with <code>*this</code> |
− | + | ||
== Video Timestamp Index == | == Video Timestamp Index == | ||
− | [https://youtu.be/ | + | [https://youtu.be/wA8xo32f8qQ Tutorial 19] |
+ | |||
+ | == Source Code Download == | ||
+ | |||
+ | [https://github.com/planetchili/poo_game Poo Game GitHub Repository] | ||
== Homework == | == Homework == | ||
This video has two homework assignments, both of which are related to vector math: | This video has two homework assignments, both of which are related to vector math: | ||
− | # There is something "wrong" with the movement of the Dude in the Poo Game. Chili wants you to figure | + | # There is something "wrong" with the movement of the Dude in the Poo Game. Chili wants you to figure out what it is and how to fix it. |
# Overhaul the Poo Game so that it is controlled with the mouse instead of the arrow keys. When the left mouse button is down in the window, the Dude should move towards the position of the mouse pointer. | # Overhaul the Poo Game so that it is controlled with the mouse instead of the arrow keys. When the left mouse button is down in the window, the Dude should move towards the position of the mouse pointer. | ||
For information on using the Mouse class to get mouse input, see this page: [[Mouse (Chili Framework)]]. | For information on using the Mouse class to get mouse input, see this page: [[Mouse (Chili Framework)]]. | ||
+ | |||
+ | The solution to this homework can be found in [https://www.youtube.com/watch?v=gB9zwetKOJk this video]. | ||
== See also == | == See also == |
Latest revision as of 12:51, 22 January 2017
Welcome to the fantastic erotic world of mathematical vectors. Everything is different now. Every operator is overloaded.
Topics Covered
- 2D vector math basics
- Getting a reference to the current object with
*this
Video Timestamp Index
Source Code Download
Homework
This video has two homework assignments, both of which are related to vector math:
- There is something "wrong" with the movement of the Dude in the Poo Game. Chili wants you to figure out what it is and how to fix it.
- Overhaul the Poo Game so that it is controlled with the mouse instead of the arrow keys. When the left mouse button is down in the window, the Dude should move towards the position of the mouse pointer.
For information on using the Mouse class to get mouse input, see this page: Mouse (Chili Framework).
The solution to this homework can be found in this video.