# mrhelloworld

Member Since 17 Dec 2012
Offline Last Active Dec 23 2012 06:15 PM

### Need help with the 'Introduction to C++ with Game Development: Part 2' assignment

17 December 2012 - 12:17 PM

Hi,

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. Here is what I drew on paper:

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