Page 2 of 2

Re: I am new I need some help

Posted: September 17th, 2017, 8:30 pm
by Mrm
Made my very first program today.. it is a master peace bwhahhaha
( Got lazy at the end that why i made a couple of variables just to make it faster so i could just copy past xD.
Did the attachment picture work?

Code: Select all

void Game::ComposeFrame()
{
	const int y = 0;
	const int x = 0;
	int N = 260;
	int Tel = 260;
	gfx.PutPixel(x + 255, y + 255, 255, 255, 255);
	gfx.PutPixel(x + 256, y + 255, 255, 255, 255);
	gfx.PutPixel(x + 254, y + 256, 255, 255, 255);
	gfx.PutPixel(x + 253, y + 257, 255, 255, 255);
	gfx.PutPixel(x + 253, y + 258, 255, 255, 255);
	gfx.PutPixel(x + 254, y + 259, 255, 255, 255);
	gfx.PutPixel(x + 255, y + 260, 255, 255, 255);
	gfx.PutPixel(x + 256, y + 260, 255, 255, 255);
	gfx.PutPixel(x + 257, y + 256, 255, 255, 255);
	gfx.PutPixel(x + 258, y + 257, 255, 255, 255);
	gfx.PutPixel(x + 258, y + 258, 255, 255, 255);
	gfx.PutPixel(x + 257, y + 259, 255, 255, 255);
	gfx.PutPixel(x + 260, y + 255, 255, 255, 255);
	gfx.PutPixel(x + 261, y + 255, 255, 255, 255);
	gfx.PutPixel(x + 259, y + 256, 255, 255, 255);
	gfx.PutPixel(x + 259, y + 259, 255, 255, 255);
	gfx.PutPixel(x + 260, y + 260, 255, 255, 255);
	gfx.PutPixel(x + 261, y + 260, 255, 255, 255);
	gfx.PutPixel(x + 257+5, y + 256, 255, 255, 255);
	gfx.PutPixel(x + 258+5, y + 257, 255, 255, 255);
	gfx.PutPixel(x + 258+5, y + 258, 255, 255, 255);
	gfx.PutPixel(x + 257+5, y + 259, 255, 255, 255);
	gfx.PutPixel(x + 255, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + 255, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + 255, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + 255, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + 255, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + 255, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + 255, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + 255, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + 255, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + 255, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + 255, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + 255, y + Tel, 255, 255, 255);
	gfx.PutPixel(x + 255+ 1, y + Tel + 1, 255, 255, 255);
	gfx.PutPixel(x + 255 + 2, y + Tel + 1, 255, 255, 255);
	gfx.PutPixel(x + 255 + 3, y + Tel + 1, 255, 255, 255);
	gfx.PutPixel(x + 255 + 2, y + Tel - 1, 255, 255, 255);
	gfx.PutPixel(x + 255 + 2, y + Tel - 2, 255, 255, 255);
	gfx.PutPixel(x + 255 + 2, y + Tel - 3, 255, 255, 255);
	Tel = 260;
	gfx.PutPixel(x + N, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + N, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + N, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + N, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + N, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + N, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + N, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + N, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + N, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + N, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + N, y + Tel, 255, 255, 255);
	Tel = Tel + 1;
	gfx.PutPixel(x + N, y + Tel, 255, 255, 255);
	gfx.PutPixel(x + N-1, y + Tel+1, 255, 255, 255);
	

}

Re: I am new I need some help

Posted: September 18th, 2017, 3:04 am
by chili
lel noice ; )