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

From Chilipedia
Jump to: navigation, search
(Concepts Taught)
Line 3: Line 3:
 
== Concepts Taught ==
 
== Concepts Taught ==
 
* <code>+=</code> and <code>-=</code> operators
 
* <code>+=</code> and <code>-=</code> operators
* Constructors
+
* Writing code in a constructor
 
* <code>#include <header></code>
 
* <code>#include <header></code>
 
* Using <code>std::mt19973</code> and <code>std::uniform_int_distribution<int></code> to generate random numbers
 
* Using <code>std::mt19973</code> and <code>std::uniform_int_distribution<int></code> to generate random numbers

Revision as of 00:55, 10 September 2016

We make our first game. So goddamn sweet. Not shitty at all.

Concepts Taught

  • += and -= operators
  • Writing code in a constructor
  • #include <header>
  • Using std::mt19973 and std::uniform_int_distribution<int> to generate random numbers

Video Timestamp Index

Coming soon!

Homework

Make the poos move around the screen and rebound when they hit the edges.

The solution is given in a future video.

Image to PutPixel Tools

Downloads

See also