int i,j,xplace,yplace;
char level[2][30] =
{
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,1},
};
for(j = 0; j < 2; j++)
{
for(i=0; i < 30; i++)
{
switch (level[j][i])
{
case 1: CreateActor("wall", "wall", "no parent", "no path",xplace,yplace,true);
break;
};
xplace+=wall.width;
};
xplace-=wall.width*i;
yplace+=wall.height;
};
ITomi wrote:And I think, you can replace the actors (e.g. wall) with simple pixels, if you use the putpixel() command. But I don't know, how does works the drawing commands: for example I couldn't light a pixel with it
Users browsing this forum: No registered users and 1 guest