The first prompt
Asset Creation - The Full Hue
How the files are organized (at beginning based on provided template):
Template:
http://git.prototyping.id/andrea/svelteP5Play
src = all the code files go there
App.svelte = the main component files, open this first
main.js = we don't touch this
public = any images will go here
index.html = we don’t touch this either
package.json = lists the dependencies
P5play vs p5.js - Use cases
Use p5play for anything that needs physics: the player, platforms, enemies, and tar puddles. Use p5.js drawing functions (image(), tint(), drawingContext) for the glow effects, color overlays, and background parallax.
My questions/prompts and their answers (most done in claude)
Note: this is not everything only the things I found useful to jot down, claude did not save our conversation history so I cannot refer back to it fully. Additionally, I ensured to check all the code that was being implemented and asked/researched any code which was generated which I could not understand. If it was too complex I would ask the AI to write the code in simpler terms or “easier code”
- Why we use svelte-spa-router@3.3.0
- What a store is in svelte
- Within stores this is what a writable is
- why we have to add p5 to every file at the top
- designing platforms
- how we read the level
- If I want to add a caveat font
- Jumping bug
- The behavior of the key controls is unideal right now. Keys get "stuck" the character keeps moving right even after I release the key and the left key stops working. The jumps are sometimes not registred on keypress too. Can you help me refine the controls.
- I want like a couple of sentences that give a lesson for each level. So basically eveyrhtime the player collects a fragment a sentence pops up and at the end they get a screen with a cool takeaway or maybe just the color psychology description and how it corresponds to emotion. Can you set me up for that?
- make the show complete quote last longer at the end of the level. or add a continue our journey button that directly takes you to the next level. also we need a way for the player to go back to the level select screen from the game maybe clicking a key or button?
- Fixing the double jump
- the game works pretty well now however the rest of the browser screen is kind of boring which ruins the immerssion. I would like the browser background to be black, for the main game screen to be a little more centered. and mayber adding the title of the game static above the game along with maybe some cute decoration as the background like blinking dots resebling stars but in the hex codes that the game centers around.
- once a player completes all the levels I want them to stop receiving damage so that they can go back throguh all the levels and look at the artwork maybe get rid of the enemies and tar allowing them to go through and play again without obstacles.
- after a player clicks back to home once they have cleared all levels I want them to be redirected to a home screen that tells them they can go throguh the world again but now in color and with no sorrows something like "youve brought all the color back, go throguh the world again, now in full color and without sorrows (obstacles) take your time to view the scenery and learn about your hues" functionallity will remain the same just this will be the new home screen upon winning the game