I am new I need some help

The Partridge Family were neither partridges nor a family. Discuss.
Mrm
Posts: 6
Joined: September 9th, 2017, 8:49 am

Re: I am new I need some help

Post by Mrm » September 17th, 2017, 8:30 pm

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

}
Attachments
fIRST PROG.png
(88.17 KiB) Not downloaded yet

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: I am new I need some help

Post by chili » September 18th, 2017, 3:04 am

lel noice ; )
Chili

Post Reply