void updatewithpeople(){
if(GetAsyncKeyState(0x41)&0x8000){
Sleep(10);
if(GetAsyncKeyState(0x41)&0x8000){
if(cube_x>=0){
cube_x-=40;
switch(kind){
case 0:
view[cube_x+80][cube_y]=0;view[cube_x+80][cube_y+40]=0;
break;
case 1:
view[cube_x+80][cube_y]=0;view[cube_x+80][cube_y+40]=0;
break;
case 2:
view[cube_x+80][cube_y]=0;view[cube_x+120][cube_y+40]=0;
break;
case 3:
view[cube_x+80][cube_y]=0;view[cube_x+40][cube_y+40]=0;
break;
case 4:
view[cube_x+160][cube_y]=0;
break;
case 5:
view[cube_x+40][cube_y]=0;view[cube_x+120][cube_y+40]=0;
break;
case 6:
view[cube_x+40][cube_y]=0;view[cube_x+40][cube_y+40]=0;
break;
case 7:
view[cube_x+40][cube_y]=0;view[cube_x+80][cube_y+40]=0;
break;
}
}
}
while(GetAsyncKeyState(0x41)&0x8000);
}
if(GetAsyncKeyState(0x44)&0x8000){
Sleep(10);
if(GetAsyncKeyState(0x44)&0x8000){
if(cube_x<=800)
{
cube_x+=40;
switch(kind)
{
case 0:
view[cube_x-40][cube_y]=0;view[cube_x-40][cube_y+40]=0;
break;
case 1:
view[cube_x-40][cube_y]=0;view[cube_x-40][cube_y+40]=0;
break;
case 2:
view[cube_x-40][cube_y]=0;view[cube_x][cube_y+40]=0;
break;
case 3:
view[cube_x-40][cube_y]=0;view[cube_x-80][cube_y+40]=0;
break;
case 4:
view[cube_x-40][cube_y]=0;
break;
case 5:
view[cube_x-40][cube_y]=0;view[cube_x-40][cube_y+40]=0;
break;
case 6:
view[cube_x-40][cube_y]=0;view[cube_x-120][cube_y+40]=0;
break;
case 7:
view[cube_x-40][cube_y]=0;view[cube_x-80][cube_y+40]=0;
break;
}
}
}
while(GetAsyncKeyState(0x44)&0x8000);
}
if(GetAsyncKeyState(VK_SPACE)&0x8000){
Sleep(10);
if(GetAsyncKeyState(VK_SPACE)&0x8000){
switch(kind){
case 0:
break;
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
case 6:
break;
case 7:
break;
}
}
while(GetAsyncKeyState(VK_SPACE)&0x8000);
}
}