Pārlūkot izejas kodu

Add grass spawn on right click

DricomDragon 4 gadi atpakaļ
vecāks
revīzija
63b39f9247
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      main.cpp

+ 4 - 0
main.cpp

@@ -130,6 +130,10 @@ int main()
 						putBloc(DESERT, world, cursorPos.y, cursorPos.x);
 						drawWorld(world, tileSet, map);
 					}
+					if (event.button.button == 3) {
+						putBloc(GRASS, world, cursorPos.y, cursorPos.x);
+						drawWorld(world, tileSet, map);
+					}
 					break;
 			} // end switch event type
 		} // end of message processing