kvittore [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=60106 chatgpt_chase <p> <table><tr><td> <a href="/bbs/?pid=122449#p"> <img src="/bbs/thumbs/pico8_chatgpt_chase-1.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=122449#p"> chatgpt_chase</a><br><br> by <a href="/bbs/?uid=60106"> kvittore</a> <br><br><br> <a href="/bbs/?pid=122449#p"> [Click to Play]</a> </td></tr></table> </p> <p>My second ChatGPT game.<br /> I will note any changes I made to its code but otherwise, all code and comments were created by ChatGPT with prompts in order listed.</p> <h3>Prompts:</h3> <ul> <li>Pico-8 basic game code</li> <li>Add player using pset, with movement control</li> <li>Add enemy at random spot at the edge of the screen, enemy should attack player within 30 pixels</li> <li>Player shoots at enemy using pset</li> <li>Enemy moves toward middle of screen</li> <li>What should I add to my game? <ul> <li>It told me to add player and enemy health text display and something to happen when player or enemy dies</li> </ul></li> <li>Add health display</li> <li> <p>How can I improve this code?</p> <ul> <li> <p>It said:</p> <ul> <li> <p>Add more enemy types, each with their own behavior and appearance. For example, you could add a faster enemy that moves towards the player even if they are not close, or a stronger enemy that takes more hits to defeat.</p> </li> <li> <p>Add obstacles and power-ups that the player can interact with. For example, you could add walls that the player can hide behind, or health packs that restore the player's health.</p> </li> <li> <p>Add a scoring system that rewards the player for defeating enemies and completing objectives. You could also add a high score table to keep track of the best players.</p> </li> <li> <p>Add a level system with progressively harder challenges. For example, you could add more enemies, stronger enemies, or tougher objectives as the player progresses through the game.</p> </li> <li>Add sound effects and music to enhance the gameplay experience. For example, you could add a background music track, and sound effects for player movements, enemy attacks, and projectile impacts.</li> </ul> </li> </ul> </li> </ul> <h3>Changes:</h3> <p>Line 34, Added cls()<br /> Lines 36-39, fixed button assignment. was 0123 now 2301<br /> Lines 54 and 55, swapped sin and cos<br /> Lines 67 and 78, replaced chatgpt's comments for &quot;something to happen&quot; with _init()<br /> Lines 88 and 89, swapped sin and cos<br /> Lines 95 and 96, swapped sin and cos<br /> Line 115, text position was (64,0) now (0, 10)</p> https://www.lexaloffle.com/bbs/?tid=50668 https://www.lexaloffle.com/bbs/?tid=50668 Thu, 15 Dec 2022 03:43:03 UTC