jamesmurdza / copernicator

Javascript canvas-based animation to draw the orbits of the planets in relation to another planet.
1 stars 0 forks source link

Fix sprite images #1

Open jamesmurdza opened 1 year ago

jamesmurdza commented 1 year ago

In copernicus.js, the remote asset URLs are broken. Change them to reference local assets in an assets folder.

ellipsis-dev[bot] commented 1 year ago

To have BitBuilder create a Pull Request with the implementation, the user who created the issue (@jamesmurdza) can comment below with "LGTM". If the plan is inaccurate, edit the issue description and write a comment with "replan".


Implementation Steps

  1. Create assets directory
    • Create a new directory named assets at the root of the repository. This directory will be used to store the local copies of the sprite images.
  2. Download sprite images
    • Download the sprite images 'yellow_ball.png', 'green_ball.png', and 'blue_ball.png' from the remote asset URLs. Save these images in the newly created assets directory.
  3. Update asset URLs in copernicus.js
    • In the preload function in copernicus.js, update the game.load.baseURL to point to the local assets directory. The new line should look like this: game.load.baseURL = './assets/';

Generated with :heart: by www.bitbuilder.ai. Questions? Check out our the documentation.

jamesmurdza commented 1 year ago

lgtm

ellipsis-dev[bot] commented 1 year ago

Sorry, BitBuilder couldn't generate a pull request for you. Please try again later. (wflow_1Pj1fVk0JiBkjfel) :robot:

jamesmurdza commented 1 year ago

😭

ellipsis-dev[bot] commented 1 year ago

Sorry, BitBuilder couldn't generate a pull request for you. Please try again later. (wflow_ZubE1pLFmG3TJezI) :robot: