00001 #include <gccore.h> 00002 00003 #include "globals.h" 00004 //#include "colordefines.h" 00005 00006 // build green background 00007 /*void BuildBg() 00008 { 00009 for(int y=0;y < 480;y++) 00010 { 00011 u32 color=(u32)(150*((float)y/480)); 00012 00013 for(int x=0;x < 320;x++) 00014 bg[x+y*320]=color; 00015 } 00016 }*/ 00017 00018 // draw candy border 00019 /*void AddBorder() 00020 { 00021 int xoffset; 00022 00023 int players=options.players; 00024 00025 for(int player=0;player < players;player++) 00026 { 00027 for(int x=0;x < 12;x++) 00028 { 00029 if(players==1) 00030 xoffset=x+10; 00031 else 00032 xoffset=x+2+player*16; 00033 00034 DrawSquareEx(xoffset*10,20,CANDY); 00035 } 00036 00037 for(int x=0;x < 12;x++) 00038 { 00039 if(players==1 && options.netplay==0) 00040 xoffset=x+10; 00041 else 00042 xoffset=x+2+player*16; 00043 00044 DrawSquareEx(xoffset*10,22*20,CANDY); 00045 } 00046 00047 int xoffset; 00048 00049 if(players==1 && options.netplay==0) 00050 xoffset=10*10; 00051 else 00052 xoffset=(2+player*11)*10; 00053 00054 for(int y=0;y < 20;y++) 00055 DrawSquareEx(xoffset,(y+2)*20,CANDY); 00056 00057 if(players==1 && options.netplay==0) 00058 xoffset=21*10; 00059 else 00060 xoffset=(18+player*11)*10; 00061 00062 for(int y=0;y < 20;y++) 00063 DrawSquareEx(xoffset,(y+2)*20,CANDY); 00064 00065 } 00066 }*/ 00067 00068 // draw square on screen 00069 /*void DrawSquareEx(int x,int y,u8 gfx) 00070 { 00071 for(int newy=y;newy < y+20;newy++) 00072 { 00073 for(int newx=x;newx < x+10;newx++) 00074 bg[newx+newy*320]=blockgfx[gfx][(newx-x)+(newy-y)*10]; 00075 } 00076 }*/ 00077 00078 // Draw the playfield(s). 00079 /*void DrawPlayfield() 00080 { 00081 if (options.players == 1) 00082 { 00083 for (int y = 0; y < 400; ++y) 00084 { 00085 for (int x = 0; x < 100; ++x) 00086 bg[(y + 40) * 320 + x + 110] = COLOR_BLACK; 00087 } 00088 00089 return; 00090 } 00091 00092 for (int y = 0; y < 400; ++y) 00093 { 00094 for (int x = 0; x < 100; ++x) 00095 { 00096 bg[(y + 40) * 320 + x + 30] = COLOR_BLACK; 00097 bg[(y + 40) * 320 + x + 190] = COLOR_BLACK; 00098 } 00099 } 00100 }*/