Difference between revisions of "Beginner C++ Game Programming Tutorial 2"
From Chilipedia
(→Video Timestamp Index) |
(→Download Links) |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | This tutorial is all about making sweet ass boxes (variables) to jam your hot numbers into and using operators (addition and subtraction) to add and subtract shit. | + | This tutorial is all about making sweet ass boxes ([[variable|variables]]) to jam your hot numbers into and using [[operator|operators]] (addition and subtraction) to add and subtract shit. |
== Concepts Taught == | == Concepts Taught == | ||
* Commenting (adding comments to) code / commenting out lines of code | * Commenting (adding comments to) code / commenting out lines of code | ||
− | * Variables (specifically <code>int</code>) | + | * [[variable|Variables]] (specifically <code>int</code>) |
− | * Operators (specifically addition <code>+</code> and subtraction <code>-</code>) | + | * [[operator|Operators]] (specifically addition <code>+</code> and subtraction <code>-</code>) |
== Video Timestamp Index == | == Video Timestamp Index == | ||
− | * Intro [https://youtu.be/ | + | * Intro [https://youtu.be/qqlUztlgNA4 0:00] |
− | * Homework Solution / Translation Transformation VapeNation [https://youtu.be/ | + | * Homework Solution / Translation Transformation VapeNation [https://youtu.be/qqlUztlgNA4?t=0m20s 0:20] |
− | * Comments (of the non-YouTube variety) [https://youtu.be/ | + | * Comments (of the non-YouTube variety) [https://youtu.be/qqlUztlgNA4?t=2m36s 2:36] |
− | * Variables (specifically int) [https://youtu.be/ | + | * Variables (specifically <code>int</code>) [https://youtu.be/qqlUztlgNA4?t=4m24s 4:24] |
− | * | + | * [[variable#The const Specifier|<code>const</code>]]-ipation and <code>const</code>-correctness [https://youtu.be/qqlUztlgNA4?t=9m22s 9:22] |
− | * Rules for naming variables [https://youtu.be/ | + | * Rules for naming variables [https://youtu.be/qqlUztlgNA4?t=10m13s 10:13] |
− | * Operators (addition & subtraction) [https://youtu.be/ | + | * Operators (addition & subtraction) [https://youtu.be/qqlUztlgNA4?t=13m55s 13:55] |
− | * Homework assignment [https://youtu.be/ | + | * Homework assignment [https://youtu.be/qqlUztlgNA4?t=17m05s 17:05] |
== Homework == | == Homework == | ||
The homework for this lesson is to modify the reticle drawing code so that you can change the position of the reticle by only changing two numbers (literal constants) in the code. Make sure you uncomment the lines that were commented, or you'll get a pretty shitty excuse for a reticle. The solution will be given in the beginning of the next tutorial. | The homework for this lesson is to modify the reticle drawing code so that you can change the position of the reticle by only changing two numbers (literal constants) in the code. Make sure you uncomment the lines that were commented, or you'll get a pretty shitty excuse for a reticle. The solution will be given in the beginning of the next tutorial. | ||
+ | |||
+ | == Download Links == | ||
+ | * [https://planetchili.net/downloads/apworks/2/Beginner%20Tutorial%202%20Code.zip Tutorial 2 Code] | ||
+ | * [https://planetchili.net/downloads/apworks/2/Beginner%20Tutorial%202%20HW%20Code.zip Tutorial 2 Homework Solution Code] | ||
== See also == | == See also == | ||
* [[Beginner C++ Game Programming Tutorial 3|Next in series (Tutorial 3)]] | * [[Beginner C++ Game Programming Tutorial 3|Next in series (Tutorial 3)]] | ||
* [[Beginner C++ Game Programming Series]] | * [[Beginner C++ Game Programming Series]] |
Latest revision as of 12:51, 12 October 2019
This tutorial is all about making sweet ass boxes (variables) to jam your hot numbers into and using operators (addition and subtraction) to add and subtract shit.
Concepts Taught
- Commenting (adding comments to) code / commenting out lines of code
- Variables (specifically
int
) - Operators (specifically addition
+
and subtraction-
)
Video Timestamp Index
- Intro 0:00
- Homework Solution / Translation Transformation VapeNation 0:20
- Comments (of the non-YouTube variety) 2:36
- Variables (specifically
int
) 4:24 -
const
-ipation andconst
-correctness 9:22 - Rules for naming variables 10:13
- Operators (addition & subtraction) 13:55
- Homework assignment 17:05
Homework
The homework for this lesson is to modify the reticle drawing code so that you can change the position of the reticle by only changing two numbers (literal constants) in the code. Make sure you uncomment the lines that were commented, or you'll get a pretty shitty excuse for a reticle. The solution will be given in the beginning of the next tutorial.