Explorar o código

Put 10 random seeds when ENTER is hit

Return key in SDL language.
DricomDragon %!s(int64=4) %!d(string=hai) anos
pai
achega
74be617334
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      main.cpp

+ 7 - 0
main.cpp

@@ -153,6 +153,13 @@ int main()
 							clearWorld(world);
 							drawWorld(world, tileSet, map);
 							break;
+						case SDLK_RETURN:
+							for (int k(0); k < 10; k++) {
+								seed.randomize();
+								putSeed(seed, world);
+							}
+							drawWorld(world, tileSet, map);
+							break;
 						case SDLK_SPACE:
 							seed.randomize();
 							putSeed(seed, world);