Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Images not showing

A topic by m.southern created Oct 13, 2019 Views: 589 Replies: 3
Viewing posts 1 to 2

I'm new here and to the game development world. My game is a class assignment. I loaded the game and it plays fine. However, my images and sounds are not working. They are all in the assets folder that I uploaded. Is there something different I should be doing? My professor only said to have them in the folder before I compressed it to upload. Any advice would be much appreciated.  I searched for help with this but all the posts seem to be one to three years old. 

Moderator

If I'm reading this correctly, your index.html is in the same folder as the assets (named gamefinal), yet you give the relative path to the pictures as e.g. "gamefinal/stars.jpg". It should be just "stars.jpg".

Thank you!!! That worked. Now to fix all the images.

Moderator

Oops, I forgot to say you could more easily move index.html out of the gamefinal folder. You can still put them in an archive together just fine..

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.