Difference between revisions of "Intermediate C++ Game Programming Tutorial 12"

From Chilipedia
Jump to: navigation, search
(Download Materials)
Line 4: Line 4:
 
* Animated sprite class design
 
* Animated sprite class design
 
* Walking character class design
 
* Walking character class design
 +
 +
== Notes ==
 +
The technique we use of storing a reference to <code>Surface</code> in each <code>Animation</code> object will work for now, but it will cause us a pain in the dick in the future when we start using our characters in containers like <code>std::vector</code>.
  
 
== Video Timestamp Index ==
 
== Video Timestamp Index ==

Revision as of 19:22, 18 September 2017

In this tutorial Chili shows us an example of how to create a class for an animated sprite, and how to use a collection of these animated sprites to create a walking character class.

Topics Covered

  • Animated sprite class design
  • Walking character class design

Notes

The technique we use of storing a reference to Surface in each Animation object will work for now, but it will cause us a pain in the dick in the future when we start using our characters in containers like std::vector.

Video Timestamp Index

Tutorial 12

Source Code

Sprite Repo

Download Materials

Homework

None!

See also