Skip to content

Commit

Permalink
dadanie komentarzy #25
Browse files Browse the repository at this point in the history
tak na serio w poprzednim zaponnialem dac koncowki
  • Loading branch information
GummyBear45 committed Sep 26, 2018
1 parent 795419d commit 59ceda8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ char getEvent()
}// pobierz znak
void doEvent(char c) {
c = toupper(c);
unsigned char strzalka =c;
unsigned char strzalka =c;//zmienna tylko do strzalek
COORDS n=player_coords;
switch(c) {
case 'W': --n.y; break;
Expand All @@ -114,10 +114,10 @@ void doEvent(char c) {
case 'D': ++n.x; break;
}
switch( strzalka ){
case 0: //klawisze specjalne (czasem zero czasem 224 - zale¿ne od pc'ta chyba)
case 0: //klawisze specjalne (czasem 0 czasem 224 - zale¿ne od pc'ta chyba)
case 224: //klawisze specjalne
strzalka = getch();
switch( strzalka ){
switch( strzalka ){//to samo co wczesniej
case 72: --n.y; break;
case 80: ++n.y; break;
case 75:--n.x; break;
Expand Down

0 comments on commit 59ceda8

Please sign in to comment.