Ask coding questions

← Back to all posts
Sprite not showing on browser even there are no errors!

Hi All!

For some reason I can't see the spacecraft when testing on browser (Tried them all from Chrome to Edge). There are no errors. My code is in this repo:

It supposed to show something like image 1, but it is showing like image 2.

Can please let me know where I went wrong?

P.S. This is for a milestone project. Please if you can help that would be great.

Thank you!

Answered by Baconman321 [earned 5 cycles]
View Answer

I'm assuming you drew the sprite? You do know that loading it does not draw it, you have to draw it, don't you? Ok you did, I don't know much about the drawing function, that's pretty much all I know :<