mariocraft987 / bark-coding

A Blockly Based coding language
https://bark.dumorando.com
BSD 2-Clause "Simplified" License
10 stars 18 forks source link

sprite squashing #80

Open breakfast-for-dinner opened 3 months ago

breakfast-for-dinner commented 3 months ago

I have found a bug!

Description when i upload a new sprite costume, it squashes it to become the size of the dog costume.

How to Reproduce

  1. open editor
  2. go to "costumes" tab
  3. click "choose file"
  4. select file
  5. look at project player!

Expected Behavior not to squash

Screenshots Screenshot from 2024-04-02 14-38-30 Screenshot from 2024-04-02 14-38-40 Screenshot from 2024-04-02 14-39-49 Screenshot from 2024-04-02 14-39-57 Screenshot from 2024-04-02 14-40-02

rubiidev18alt commented 3 months ago

Hi there! 😊

Thank you for raising the issue about sprite squishing. I understand how frustrating it can be when sprites don’t look quite right in the project.

To address this, I recommend resizing the sprites to match the original image size while ensuring they fit within the 480x360 project screen. This way, the sprites won’t be squished, and they’ll maintain their proportions.

Feel free to give it a try, and let me know if you need any further assistance. We’re here to help!

Best regards, Your friendly neighborhood developer 🌟

nmsderp commented 3 months ago

Hi there! 😊

Thank you for raising the issue about sprite squishing. I understand how frustrating it can be when sprites don’t look quite right in the project.

To address this, I recommend resizing the sprites to match the original image size while ensuring they fit within the 480x360 project screen. This way, the sprites won’t be squished, and they’ll maintain their proportions.

Feel free to give it a try, and let me know if you need any further assistance. We’re here to help!

Best regards, Your friendly neighborhood developer 🌟

what the ai generated message was that

breakfast-for-dinner commented 3 months ago

HAHAH I WAS THINKING THE SAME THING

dumorando commented 2 months ago

Hi there! 😊

Thank you for raising the issue about sprite squishing. I understand how frustrating it can be when sprites don’t look quite right in the project.

To address this, I recommend resizing the sprites to match the original image size while ensuring they fit within the 480x360 project screen. This way, the sprites won’t be squished, and they’ll maintain their proportions.

Feel free to give it a try, and let me know if you need any further assistance. We’re here to help!

Best regards, Your friendly neighborhood developer 🌟

someone got a little lazy


the reason for this is because in sketch.js it has a constant image width and height

let imgWidth = 72.54920959472656; // Initial width of the image
let imgHeight = 96.26698303222656; // Initial height of the image

i tried to set those values to the newly loaded images values in e92deb4 but it didnt work so i reverted it
whoops