소스 검색

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);