00:00
00:00
Little-Rena
This water is making my head feel really funny, what did you put in it?
-----
Profile art by TheShokBlok

Rena @Little-Rena

Age 35, Female

Shitposter

Newgrounds Alumni

Hell

Joined on 4/21/06

Level:
53
Exp Points:
30,280 / 31,180
Exp Rank:
418
Vote Power:
9.35 votes
Art Scouts
7
Rank:
Sup. Commander
Global Rank:
79
Blams:
20,640
Saves:
50,825
B/P Bonus:
60%
Whistle:
Deity
Trophies:
65
Medals:
2,242
Supporter:
6y 8m 16d

Making a game with Chat-GPT

Posted by Little-Rena - November 15th, 2023


A few months back, I had a great idea of making a game with Chat-GPT and the graphics with DALL-E. this was an experiment to see how useful it was for someone who has no experience with Javascript, but a basic understanding of programming.


I did run this by @TomFulp before hand, to make sure it was all okay to submit to the portal, and I also enlisted the help of @Olskoo to do the Newgrounds API intergration because I couldn't work it out, and I don't think Chat-GPT would have stood a chance.


The game I had a concept for, which I gave to Chat-GPT, and it produced a base structure, and the bones of the game. Over time, I would ask it to fill in parts to add function to the game, such as the generation of planets, the UI elements, and other parts. The only part I played was putting the code into place, like the simple monkey brain I am.


However, when actually getting things to work, Chat-GPT suffered from what could only be described as Computer Senility, fans of Red Dwarf will note that the ships computer, Holly suffers from this affliction. It had a terrible habit of forgetting what the game was doing, what the assigned variables were, and getting stuck in debug loops.


Multiple times, I would have to start from scratch because it just painted itself into a corner, and I couldn't help, because I had no idea what I was doing either, the old saying of the blind leading the blind, nither of us were going to be able to debug the problem.


Another issue I ran into was the character limit for input, so the game came to a conclusion once I couldn't paste the whole code in anymore. I'm not sure if this is a limitation of the free Chat-GPT or not, but there we go. I could have seperated the code into different files, however, again I had no idea what I was doing, and I tried to go down this route with Chat-GPT to do it, however, it was unable, and ended up in a debug loop of hell.


Chat-GPT would also sometimes just stop when giving an output, so you'd say "continue" and it would continue, however, it was 50/50 if it had remembered what code it had written before it stopped, to what was coming next, it was a mess, and frustrating.


The easier part was the art, you just input some words, and get an outcome, though I will say, the mines look more like birthday cakes. I'm not a fan of using AI art for anything outside of personal projects, generally I am more than happy to pay an artist for their time. The words for the description, and in game were also generated by Chat-GPT, and that's probably one of it's better uses, even though it is a pack of lies.


In conclusion, the outcome is a playable game, it sort of matches the vision I had, and for that, it would be a great basis to pass onto a human as a proof of concept to build a game from, with a decent game loop, and have more of a purpose to it. Currently, it is bare bones, an experiment of a monkey brain, and a senile AI.


What did I learn from this experiment though? That AI could be a great tool for what I mentioned above, and for those with an understanding of programming to get it to do some of the more tedious work for you, but you would then be better off debugging it yourself, or getting someone else to look over the code, else you may also end up in debug hell.


You can check out the project below, and please give me your thoughts on this experiment, I am not looking for an ethical discussion, personally I believe the art, and programming would have been better if I had run it all past a human. The biggest ethical issue is shovelware, but that has always been an issue, asset flipping, and dodgy labour.



I would also like to invite @Olskoo to give his thoughts, as he saw the code! I may also release the code to supporters of Newgrounds in future.


Thank you for reading my essay, if there are any teachers, please give me a grade, I hope I pass.


Tags:

15

Comments

So what it seems, as someone who has never used Chat-GPT, is that it kinda suffers from basically short term memory loss but for AI.

Yep.

i didn't know what chatgpt was doing I had to stop it from trying to unlock the medals and post the scores a million times which would ban us from the server!

Remember that time they compressed Holly's memory and she became a genius but it shortened her lifespan to 2 minutes lol

Poor Holly!

How to Play
1. Start the game by clicking the "Start Game" button on the main menu.

already loving it! xD

edit: i thought it was a birthday cake, but.....
Game Over
Unfortunately, you lost the game.

That's something that often helps.

@Little-Rena is there a way i can access my own inventory? i can't seem to find it

Should show up when you press the i button, if it doesn't, idk lol

I've used Chat-gpt before to ask it to code something that was impossible, though it can help and probably can make a game.

Well, it made this game, so that proves that, just probably better if you know what you are doing.

On a different note, i'm also not a programmer and i have been learning how to use Unity since the murder of Flash. ChatGPT has been a really helpful tool. I have a friend who is a programmer and he helps me a lot, so i won't say it is a substitute, but for a bunch of things, ChatGPT has been great. You know when you're stuck in a problem and you try to google the solution, and then you see a bunch of similar questions in forums but none of them are exactly what you're facing, so you waste a bunch of time reading everything just to realize none of that was any useful, so you try and word it on a different way and you kind of repeat the process until you find a thing that is similar enough so you can apply parts of it on your problem? ChatGPT cuts through all of that because you can act as if it was a person that understands your problem, not just search for keywords.

Absolutly, I found it good for that during my experiment, and I was talking to it as if it were a human. I would also input my questions like "Shall we try..." as if it were a partner in this, which it was.

On a different note, i'm also not a programmer and i have been learning how to use Unity since the murder of Flash. ChatGPT has been a really helpful tool. I have a friend who is a programmer and he helps me a lot, so i won't say it is a substitute, but for a bunch of things, ChatGPT has been great. You know when you're stuck in a problem and you try to google the solution, and then you see a bunch of similar questions in forums but none of them are exactly what you're facing, so you waste a bunch of time reading everything just to realize none of that was any useful, so you try and word it on a different way and you kind of repeat the process until you find a thing that is similar enough so you can apply parts of it on your problem? ChatGPT cuts through all of that because you can act as if it was a person that understands your problem, not just search for keywords.

@Little-Rena thanks, it works. But it doesn't say it in the instructions. might be a good idea to state that in the author comments. Also hitting enter to open/close each planet UI was a try and error for me

A valid point, I thought it had put the controls in the instructions, I didn't read to correct anything it wrote, that would be cheating!

@Little-Rena makes us think... shouldn't we be paying a coder? :o
the discussion goes deeper and deeper...

chatcbt

I can't comment fully, but I think CBT might be preferable to this...

Seeing as how this is a project to try and make everything from AI, how come you didn't also use AI music if you don't mind me asking?

I couldn't find anything to make AI music for free, I found places that let me generate it, but not save it without paying.

@Little-Rena chatPEE

@Little-Rena
Ah ok, that makes sense.
I was wondering what was up.
Thanks for letting me know :)

No worries!

hey Rena, maybe you can use AI to finally finish the hat collab tee-hee

Secret medal hints? Pretty please :3

This essay is CERTIFIED A+++ Super Sand Legend. Enjoy your vacation!

@ToasterDude838 @Little-Rena man, this game whould be cooler using a chat-gpt idea

is the shitpost collab still happening, or is it canceled?

Still happening, I'm going to put it up sooooon

I don't know what shovelware is, but re the issues around AI it sounds like we pretty much agree.

ChatGPT really ain't all it's cracked up to be huh... I wonder how they've coded in continuity in it's programming, I mean I wonder if it's supposed to remember, or if there are say hardware limitations that prevent it from doing so, maybe they're not allowing it to hold too much information in memory, I suppose the amount of data it actually goes through to give an answer might be massively bigger than the answer it is in fact giving out...

I've tried asking it for help with certain code earlier too, that I couldn't find documented well enough elsewhere, and it couldn't give me anything really usable then, also HTML/JS, had a project where I was trying to make a player that could read text on a webpage via a browser's built-in functionality for that, AKA SpeechSynthesis, but just couldn't get something that worked entirely, asking it to troubleshoot and fix code just made it worse, tried from scratch a few times, maybe I wasn't detailed enough with my directives... it could make the functions work, but not the controls for it, which seems like an issue for other programmers too.

I do think AI's useful for reference if you somewhat know what you're working on too otherwise, easier to ask than to Google and try to find a relevant link, hope it never comes to the point devs are actually using AI to make entire games for them consistently, and that they're as good as the ones humans make... if AI can actually code something that's never been coded before, and fully understand the structure and effect of everything you ask it about, that's when I'll feel it really is AI, seems it's still very much a work in progress, which is kinda relieving...

Impressive you actually made this work anyway! Bugs or no. The idea's awesome. The result... shall leave a review in time!