浏览代码

Put 10 random seeds when ENTER is hit

Return key in SDL language.
DricomDragon 4 年之前
父节点
当前提交
74be617334
共有 1 个文件被更改,包括 7 次插入0 次删除
  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);