Register    Login    Forum    Search    FAQ

Board index » Everything




Post new topic Reply to topic  [ 12 posts ]  Go to page Previous  1, 2
Author Message
 Post Posted: September 17th, 2017, 8:30 pm 
 

Joined: September 9th, 2017, 8:49 am
Posts: 6
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:
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
Top 
 Profile  
Reply with quote  
 Post Posted: September 18th, 2017, 3:04 am 
Site Admin
User avatar

Joined: December 31st, 2011, 4:53 pm
Posts: 3470
Location: Japan
lel noice ; )

_________________
Chili


Top 
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 12 posts ]  Go to page Previous  1, 2

Board index » Everything


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: