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

From Chilipedia
Jump to: navigation, search
(Download Links)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
This tutorial mainly deals with how to call a [[function]] in C++ and basic syntax rules. We also talk about pixels, intellisense and other dumb bullshit.
 
This tutorial mainly deals with how to call a [[function]] in C++ and basic syntax rules. We also talk about pixels, intellisense and other dumb bullshit.
 +
 +
== Note ==
 +
This is not the first tutorial in the series (programmers start counting from 0 ;)). Get the first tutorial here: [[Beginner C++ Game Programming Tutorial 0]]
  
 
== Concepts Taught ==
 
== Concepts Taught ==
* Pixel coordinates and layout
+
* Function calls
* PutPixel() parameters
+
* Basic C++ syntax
  
 
== Video Timestamp Index ==
 
== Video Timestamp Index ==
* Intro [https://youtu.be/PwuIEMUFUnQ 0:00]
+
* Intro [https://youtu.be/6VMq_2lH-Qo 0:00]
* Why C++ [https://youtu.be/PwuIEMUFUnQ?t=0m55s 0:55]
+
* Pixels and coordinates [https://youtu.be/6VMq_2lH-Qo?t=0m24s 0:24]
* Overview of entire curriculum [https://youtu.be/PwuIEMUFUnQ?t=1m57s 1:57]
+
* <code>PutPixel()</code> parameter meanings [https://youtu.be/6VMq_2lH-Qo?t=2m11s 2:11]
* Required software, hardware, and knowledge [https://youtu.be/PwuIEMUFUnQ?t=2m44s 2:44]
+
* Drawing outside of the screen and escaping debugger limbo [https://youtu.be/6VMq_2lH-Qo?t=4m00s 4:00]
* Setup of Visual Studio and [[Chili Framework|the Framework]] [https://youtu.be/PwuIEMUFUnQ?t=3m26s 3:26]
+
* Function call concept and syntax [https://youtu.be/6VMq_2lH-Qo?t=6m16s 6:16]
* Don't freak out about the Framework [https://youtu.be/PwuIEMUFUnQ?t=4m22s 6:05]
+
* Intellisense and Autocompletion [https://youtu.be/6VMq_2lH-Qo?t=9m10s 9:10]
* Talk about the solution folder and source files [https://youtu.be/PwuIEMUFUnQ?t=7m52s 7:52]
+
* Fixing syntax errors [https://youtu.be/6VMq_2lH-Qo?t=11m37s 11:37]
* Configuration of the Visual Studio UI [https://youtu.be/PwuIEMUFUnQ?t=8m57s 8:57]
+
* C++ doesn't care about whitespace [https://youtu.be/6VMq_2lH-Qo?t=14m34s 14:34]
* First compile and run [https://youtu.be/PwuIEMUFUnQ?t=9m52s 9:52]
+
* Visualizing pixel image from code challenge [https://youtu.be/6VMq_2lH-Qo?t=15m56s 15:56]
* Yo where the .exe at tho? [https://youtu.be/PwuIEMUFUnQ?t=11m13s 11:13]
+
* Changing image position challenge (homework) [https://youtu.be/6VMq_2lH-Qo?t=16:37m24s 16:37]
* First line of code and challenge (Homework) [https://youtu.be/PwuIEMUFUnQ?t=12m07s 12:07]
+
* How to interact with Chili / get programming help on the [[Planet Chili Forums|Forum]] [https://youtu.be/PwuIEMUFUnQ?t=14m27s 14:27]
+
  
 
== Homework ==
 
== Homework ==
The homework for this lesson is to experiment with the [[Graphics (Chili Framework)#PutPixel()|<code>PutPixel()</code>]] function and deduce the meanings of the five function parameters. The solution to this challenge is given at the beginning of the next tutorial.
+
The homework for this lesson is to modify the code to move the pixel image to the bottom right corner of the screen. The solution will be given at the beginning of the next tutorial.
  
 
== Download Links ==
 
== Download Links ==
* [https://www.visualstudio.com/post-download-vs?sku=community&clcid=0x409 Visual Studio 2015 Community Download]
+
* [https://planetchili.net/downloads/apworks/1/Beginner%20Tutorial%201%20Code.zip Tutorial 1 Code]
 
+
* [https://planetchili.net/downloads/apworks/1/Beginner%20Tutorial%201%20HW%20Code.zip Tutorial 1 Homework Solution Code]
* [http://www.planetchili.net/downloads/Chili%20DirectX%20Framework.zip Framework Download]
+
  
 
== See also ==
 
== See also ==
* [[Beginner C++ Game Programming Tutorial 1|Next in series (Tutorial 1)]]
+
* [[Beginner C++ Game Programming Tutorial 2|Next in series (Tutorial 2)]]
 
* [[Beginner C++ Game Programming Series]]
 
* [[Beginner C++ Game Programming Series]]
* [[Planet Chili Forums]]
 

Latest revision as of 12:49, 12 October 2019

This tutorial mainly deals with how to call a function in C++ and basic syntax rules. We also talk about pixels, intellisense and other dumb bullshit.

Note

This is not the first tutorial in the series (programmers start counting from 0 ;)). Get the first tutorial here: Beginner C++ Game Programming Tutorial 0

Concepts Taught

  • Function calls
  • Basic C++ syntax

Video Timestamp Index

  • Intro 0:00
  • Pixels and coordinates 0:24
  • PutPixel() parameter meanings 2:11
  • Drawing outside of the screen and escaping debugger limbo 4:00
  • Function call concept and syntax 6:16
  • Intellisense and Autocompletion 9:10
  • Fixing syntax errors 11:37
  • C++ doesn't care about whitespace 14:34
  • Visualizing pixel image from code challenge 15:56
  • Changing image position challenge (homework) 16:37

Homework

The homework for this lesson is to modify the code to move the pixel image to the bottom right corner of the screen. The solution will be given at the beginning of the next tutorial.

Download Links

See also