
[ad_1]
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Anybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
Asked
Viewed
6 times
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.
lang-js
[ad_2]