@@ -153,6 +153,11 @@ int main()
clearWorld(world);
drawWorld(world, tileSet, map);
break;
+ case SDLK_SPACE:
+ seed.randomize();
+ putSeed(seed, world);
+ drawWorld(world, tileSet, map);
+ break;
}
case SDL_MOUSEMOTION:
cursorPos.x = event.motion.x / BLOC_SIZE;