\$\begingroup\$

I have a small image (30×30 px) I want to use as a sprite on a Javascript screen to show students what Javascript can do. (They want to create games.) How do I link the image file to my Javascript program so I can work with the image as a sprite and, say, use keystrokes to move it around? I do not need any animations. A simple Javascript code example would help. Thank you from a newbie. –Jon

Jonathan Titus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

\$\endgroup\$

1

You must log in to answer this question.