lucastle6969 / comp371

repository for comp371 final project Fall 2017 Concordia
0 stars 0 forks source link

Clipboard support for seeds #117

Open benwiley4000 opened 6 years ago

benwiley4000 commented 6 years ago

It would be nice to be able to hit a button to save the current seed to the clipboard, and maybe even be able to enter one in later via a GUI. There are a few tiers of achievement here:

  1. Pressing 0 currently prints the seed to the console. Pressing 0 should copy the seed to the system clipboard.
  2. There should be a HUD menu that displays the current seed and allows a user to click it to copy its value to the clipboard.
  3. There should be a text input box at the beginning of the game that lets you enter a custom seed.

Step 1 is pretty achievable using the SDL_SetClipboardText function from SDL. SDL can also be used for receiving clipboard data and for handling text input.. however something like AntTweakBar might also be a good option (there's a more up-to-date version here).