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

From Chilipedia
Jump to: navigation, search
 
(56 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This tutorial introduces the [[Beginner C++ Game Programming Series]] and walks you through the setup required to follow along with Chili. It also explains who the series is intended for, the goals and outline of the series, and tips on how to succeed, but you can skip all that bullshit if you have crippling ADD.
+
This tutorial introduces the [[Beginner C++ Game Programming Series]] and walks you through the setup required to follow along with Chili. It also explains who the series is intended for, the goals and outline of the series, and tips on how to succeed, but you can skip all that bullshit if you have crippling ADD. For a detailed list of what is covered in Beginner, see [[Beginner C++ Game Programming Series#Topics Covered|this page]].
  
== Concepts Taught ==
+
== <span style="color:#FF0000">IMPORTANT NOTE!</span> ==
* How to compile and run a solution in [[Visual Studio 2015 Community]]
+
Since this video was recorded, Microsoft has released Visual Studio 2017 Community and Visual Studio 2019 Community. You can still download VS2015 and use it for the tutorials, and this might make things a little simpler (<u>2015 is actually a lot better for learning C++ at this point than the newer releases of Visual Studio</u>), but the new Visual Studio 2017 and Visual Studio 2019 can also be used in the tutorials. However, the installation processes for VS2017 and VS2019 are different, and when you open a [[Chili Framework|Framework]] solution in newer releases of VS for the first time, there is an automatic dialog that you need to handle in order to upgrade the solution to VS2017 or VS2019 (And sometimes, even if you handle the dialog properly, you still get fucked over and have to fix things manually. Thanks Obama!).
  
== Video Timestamp Index ==
+
Check out [https://youtu.be/39IsItNIoQs <big>THIS VIDEO</big>] for details on the installation of VS2017 and the process of opening a framework solution in VS2017.
* Who the series is for and what it will cover
+
* How to succeed and things to know/note
+
* Installation of Visual Studio 2015 Community and the [[Chili Framework]]
+
* Writing and compiling your first code
+
* Homework assignment
+
  
<syntaxhighlight lang="cpp" line="1" class="mw-collapsible mw-collapsed">
+
A separate video on getting started with VS2019 is gonna get pooped out soon.
  
void Game::Go()
+
== Concepts Taught ==
{
+
* How to install [[Microsoft Visual Studio|Visual Studio 2015 Community]]
#if NDEBUG
+
* How to [[compiler|compile]] and run a solution in Visual Studio
const float dt = timer.GetTimeSec();
+
timer.StartWatch();
+
#else
+
const float dt = 1.0f / 60.0f;
+
#endif
+
  
UpdateModel( dt );
+
== Video Timestamp Index ==
gfx.BeginFrame();
+
* Intro [https://youtu.be/PwuIEMUFUnQ 0:00]
ComposeFrame();
+
* Why C++ [https://youtu.be/PwuIEMUFUnQ?t=0m55s 0:55]
gfx.EndFrame();
+
* Overview of entire curriculum [https://youtu.be/PwuIEMUFUnQ?t=1m57s 1:57]
}
+
* Required software, hardware, and knowledge [https://youtu.be/PwuIEMUFUnQ?t=2m44s 2:44]
</syntaxhighlight>
+
* Setup of Visual Studio and [[Chili Framework|the Framework]] [https://youtu.be/PwuIEMUFUnQ?t=3m26s 3:26]
 +
* Don't freak out about the Framework [https://youtu.be/PwuIEMUFUnQ?t=4m22s 6:05]
 +
* Talk about the solution folder and source files [https://youtu.be/PwuIEMUFUnQ?t=7m52s 7:52]
 +
* Configuration of the Visual Studio UI [https://youtu.be/PwuIEMUFUnQ?t=8m57s 8:57]
 +
* First compile and run [https://youtu.be/PwuIEMUFUnQ?t=9m52s 9:52]
 +
* Yo where the .exe at tho? [https://youtu.be/PwuIEMUFUnQ?t=11m13s 11:13]
 +
* 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 PutPixel() function and deduce the meanings of the five function parameters.
+
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.
 +
 
 +
== Download Links ==
 +
* [https://visualstudio.microsoft.com/vs/older-downloads/ Visual Studio 2015 Community Download]
 +
 
 +
* [https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&rel=15 Visual Studio 2017 Community Download]
  
== Links ==
+
* [https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&rel=16 Visual Studio 2019 Community Download]
[http://www.youtube.com Tutorial 1 Video on YouTube]<br />
+
  
[http://www.microsoft.com Visual Studio 2015 Community Download]<br />
+
* [https://planetchili.net/downloads/Chili%20DirectX%20Framework.zip Framework Download]
  
[http://forum.planetchili.net Tutorial Code Download]
+
== See also ==
 +
* [[Beginner C++ Game Programming Tutorial 1|Next in series (Tutorial 1)]]
 +
* [[Beginner C++ Game Programming Series]]
 +
* [[Planet Chili Forums]]

Latest revision as of 19:24, 17 December 2020

This tutorial introduces the Beginner C++ Game Programming Series and walks you through the setup required to follow along with Chili. It also explains who the series is intended for, the goals and outline of the series, and tips on how to succeed, but you can skip all that bullshit if you have crippling ADD. For a detailed list of what is covered in Beginner, see this page.

IMPORTANT NOTE!

Since this video was recorded, Microsoft has released Visual Studio 2017 Community and Visual Studio 2019 Community. You can still download VS2015 and use it for the tutorials, and this might make things a little simpler (2015 is actually a lot better for learning C++ at this point than the newer releases of Visual Studio), but the new Visual Studio 2017 and Visual Studio 2019 can also be used in the tutorials. However, the installation processes for VS2017 and VS2019 are different, and when you open a Framework solution in newer releases of VS for the first time, there is an automatic dialog that you need to handle in order to upgrade the solution to VS2017 or VS2019 (And sometimes, even if you handle the dialog properly, you still get fucked over and have to fix things manually. Thanks Obama!).

Check out THIS VIDEO for details on the installation of VS2017 and the process of opening a framework solution in VS2017.

A separate video on getting started with VS2019 is gonna get pooped out soon.

Concepts Taught

Video Timestamp Index

  • Intro 0:00
  • Why C++ 0:55
  • Overview of entire curriculum 1:57
  • Required software, hardware, and knowledge 2:44
  • Setup of Visual Studio and the Framework 3:26
  • Don't freak out about the Framework 6:05
  • Talk about the solution folder and source files 7:52
  • Configuration of the Visual Studio UI 8:57
  • First compile and run 9:52
  • Yo where the .exe at tho? 11:13
  • First line of code and challenge (Homework) 12:07
  • How to interact with Chili / get programming help on the Forum 14:27

Homework

The homework for this lesson is to experiment with the PutPixel() function and deduce the meanings of the five function parameters. The solution to this challenge is given at the beginning of the next tutorial.

Download Links

See also