Has anyone used AI like deepseek or even chatgpt to assist in writing code? I have and to be honest I think AI assistants like deepseek are an incredible resource if needed. deepseek is supposed to be more intuitive and helpful in writing classes or methods for Unity c#, and I have tried them both. And I found that deepseek is the better choice for being so much more helpful.
I mean, if you have an idea you want to implement and your not shure what to do, you could ask a fellow coder for assistance, but then they might scratch their head also while your scratching your's to figure out how to do the thing you want. Then you both work on it, trial and error and a week or so goes by and you figure out some method that works, but the time it took to come up with a solution took away time from the rest of the games development and not only for you, but kept your fellow coder's time away from what they were working on.
I had an idea where i have a compass in the upper right of the screen, it's a circle compass, with direction letter's of N,E,S,W to indicate what direction the player was headed, and they rotated around that rect. But in the middle circle was a rear view camera image of what is behind the player. So, ok.. I wrote most of the c# code to make that happen and it worked fine. But I have about 240 objectives scattered around the game map that the player must pick up, and I wanted to show them around the compass ring. And if those obj's were farther away they would show up smaller in scale to indicate that. Plus there is only one enemy who hunts down the player, and I needed the icon for that enemy to also show up somewhere in the compass ring.
I was not about to ask a friend coder to help me on that. That's a lot of math and angles, and most important TIME. could take day's, maybe a week or two.
So i turned to deepseek AI, and i told it exactly what i wanted, and in around 20 seconds or less, it posted the code i needed to do it. That code needed ajustment from me, with my added code it worked flawlessly and efficiently, and it even recomended way's to make it more efficient like pooling the instantiated objective icons and a lot more info I did not think about.
In the end, my compass improvement's are working flawlessly with help from deepseek, and it only took around 2 hour's with ajustments and new code from me to make it work.
My game idea is riddled with around 50 plus scripts, and I wrote them all, and deepseek has added around 2% of it's own scripts to my project, but I do not regret using it. deepseek has reduced my developing time considerably. And I will use it again when I need help with any new issue.
AI is a funny topic. Am I cheating? or using an incredibly helpful resource?