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

From Chilipedia
Jump to: navigation, search
Line 10: Line 10:
 
* Writing and compiling your first code
 
* Writing and compiling your first code
 
* Homework assignment
 
* Homework assignment
 
<syntaxhighlight lang="cpp" line="1" class="mw-collapsible mw-collapsed">
 
 
void Game::Go()
 
{
 
#if NDEBUG
 
const float dt = timer.GetTimeSec();
 
timer.StartWatch();
 
#else
 
const float dt = 1.0f / 60.0f;
 
#endif
 
 
UpdateModel( dt );
 
gfx.BeginFrame();
 
ComposeFrame();
 
gfx.EndFrame();
 
}
 
</syntaxhighlight>
 
  
 
== 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 {{cpi|PutPixel()}} function and deduce the meanings of the five function parameters.
  
 
== Links ==
 
== Links ==

Revision as of 15:16, 24 June 2016

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.

Concepts Taught

Video Timestamp Index

  • 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

Homework

The homework for this lesson is to experiment with the function and deduce the meanings of the five function parameters.

Links

Tutorial 1 Video on YouTube

Visual Studio 2015 Community Download

Tutorial Code Download