Find an Image for the Background of your game
1. Upload an Image to Repl
- Find the downloaded images. Need help?
- Open the asset folder in repl, click:
code > client > asset
- Click and drag your files into this folder. Make sure your files are named something very easy and obvious (it is best to not use spaces or symbols), for example “zombies.png” or “shark.png”. You will resize the images within the code, so don’t worry if it seems to big or small right now.
2. Go into the
preload function in
game.js and add a new image named after the new character set.
drawBackground function in the