int main(){
utworz_tablice();
plansza();
time_t ostatnia_zmiana
= clock();
int gra=1;
int speed=300;
int c;
while (gra==1){
while (teraz - ostatnia_zmiana < speed)
{
if (kbhit()) {
//printf("%d",c);
if (c == 224) {
}
}
//printf("%d",c);
}
switch (c){
case 72:
if (S.y>0){
S.y--;
gotoxy(S.x, S.y);
}
break;
case 80:
if (S.y<16){
S.y++;
gotoxy(S.x, S.y);
}
break;
case 77:
if (S.x<26){
S.x++;
gotoxy(S.x, S.y);
}
break;
case 75:
if (S.x>0){
S.x--;
gotoxy(S.x, S.y);
}
break;
}
ostatnia_zmiana
= clock();
if(tab[S.y-1][S.x-1]!=1 && tab[S.y-1][S.x-1]!=0){
gra=0;
gotoxy(15, 7);
}
}
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}