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

From Chilipedia
Jump to: navigation, search
Line 11: Line 11:
 
* Homework assignment
 
* Homework assignment
  
<syntaxhighlight lang="cpp" line="1" class="mw-collapsible mw-collapsed" style="text-align: left;">
+
<syntaxhighlight lang="cpp" line="1" class="mw-collapsible mw-collapsed">
  
 
void Game::Go()
 
void Game::Go()

Revision as of 13:35, 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

  • How to compile and run a solution in Visual Studio 2015 Community

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
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();
}

Homework

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

Links

Tutorial 1 Video on YouTube

Visual Studio 2015 Community Download

Tutorial Code Download