I just started following the 'Introduction to C++ with Game Development' series of articles. Got stuck very soon though. Because English is not my mother tongue so I have some difficulties understanding some parts. In the assignment of part 2 you have to draw 'IGAD' on an 8x8 grid. Did that, using straight lines only. Well, kind of. I only got 'IGA' on my sheet.
http://imageshack.us...1217131005.jpg/
Anyway, following the article, I thought I should have something like this (only for 'I'):
#include "string.h"
#include "surface.h"
#include "stdlib.h"
#include "template.h"
#include "game.h"
using namespace Tmpl8;
void Game::Init()
{
}
void Game::Tick( float a_DT )
{
m_Screen->Clear( 0 );
m_Screen->Print( "I", 2, 2, 0xffffff );
m_Screen->Line( 2, 9, 66, 9, 0xffffff );
m_Surface->Line( 60, 80, 60, 560, 0xffffff );
}



Find content
Not Telling
Display name history