How to put pictures into game?

liongirl
24 Jan 2020, 23:08

I've seen squiffy games that have pictures in them... How to put pictures in?


Bluevoss
25 Jan 2020, 14:05

You can use this command...

<img src="pictureName.jpg" alt=">Sorry, image not found<" height=200 width=200>

(and this one is good if you are using an image from a variable (i.e. changing a character or image))...

<img src={variableJpg} alt=">Sorry, image not found<" height=200 width=200>

You'll need to determine the pixel height and width - most photo editor tools (including Microsoft Paint) will determine this nicely.