3 ms·
Personally, I found GPT-4 to be helpful when writing code for games. But I'm a web programmer trying to learn game development, I'm no professional game develop
by capableweb 4y ago
Personally, I found GPT-4 to be helpful when writing code for games. But I'm a web programmer trying to learn game development, I'm no professional game developer by any measure. And I'm using Rust and Bevy, for what it's worth. So it might not be as helpful for someone like Tyler who actually know what they are doing, similarly for me if I were to use it for web development.
The most helpful thing with GPT-4 have been getting help with math heavy stuff I don't really grok, and that I can try to compile the code, get an error and instruct GPT-4 that the code didn't work, here is the error, please fix it. Other things it been helpful for is applying the "Socratic method" for helping me understand concepts I don't really grok, like Quaternions. Then, knowing GPT-4 isn't perfect, I always verify the information it tells me, but it gives me great starting points for my research.
Here a conversation I had lately with GPT-4 in order to write a function that generates a 2D terrain with Perlin Noise: https://pastebin.com/eDZWyJeL https://pastebin.com/eDZWyJeL
Summary:
- Write me a 2D terrain generator
- Me reminding GPT-4 it should be 1D instead of 2D (I used the wrong wording, confusing a 1D vector with 2D)
- Code had issues with returning only values with 0.0
- GPT-4 helping me tracking down the issue, where I used the `scale` argument wrong
- Got a working version, but unhappy with unrealistic results, I asked it to modify the function
- Finally got a version I was happy with