Beginner C++ Game Programming Tutorial 19

From Chilipedia
Revision as of 23:42, 14 January 2017 by Chili (Talk | contribs) (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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Welcome to the fantastic erotic world of mathematical vectors. Everything is different now. Every operator is overloaded.

Topics Covered

  • 2D vector math basics
  • Getting reference to current object with *this


Video Timestamp Index

Tutorial 19

Homework

This video has two homework assignments, both of which are related to vector math:

  1. There is something "wrong" with the movement of the Dude in the Poo Game. Chili wants you to figure it what it is and how to fix it.
  2. 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).

See also