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

From Chilipedia
Jump to: navigation, search
(Download Links)
 
(13 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 ==
 
* Function calls
 
* Function calls
* Basic syntax
+
* 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]
* Pixels and coordinates
+
* Pixels and coordinates [https://youtu.be/6VMq_2lH-Qo?t=0m24s 0:24]
* PutPixel() parameter meanings
+
* <code>PutPixel()</code> parameter meanings [https://youtu.be/6VMq_2lH-Qo?t=2m11s 2:11]
* Drawing outside of the screen and escaping debugger limbo
+
* Drawing outside of the screen and escaping debugger limbo [https://youtu.be/6VMq_2lH-Qo?t=4m00s 4:00]
* Function calls
+
* Function call concept and syntax [https://youtu.be/6VMq_2lH-Qo?t=6m16s 6:16]
* Intellisense and Autocompletion
+
* Intellisense and Autocompletion [https://youtu.be/6VMq_2lH-Qo?t=9m10s 9:10]
* Fixing syntax errors
+
* Fixing syntax errors [https://youtu.be/6VMq_2lH-Qo?t=11m37s 11:37]
* Visualizing pixel image challenge
+
* C++ doesn't care about whitespace [https://youtu.be/6VMq_2lH-Qo?t=14m34s 14:34]
* Changing image position challenge (homework)
+
* Visualizing pixel image from code challenge [https://youtu.be/6VMq_2lH-Qo?t=15m56s 15:56]
 
+
* Changing image position challenge (homework) [https://youtu.be/6VMq_2lH-Qo?t=16:37m24s 16:37]
 
+
  
 
== 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