Add a sprite, transfer with keys, Javascript instance?

Add a sprite, transfer with keys, Javascript instance?

[ad_1]

Add a sprite, transfer with keys, Javascript instance? – Recreation Growth Stack Alternate







Recreation Growth Stack Alternate is a query and reply website for skilled and impartial recreation builders. It solely takes a minute to enroll.

Signal as much as be part of this neighborhood

Anyone can ask a query

Anyone can reply

The perfect solutions are voted up and rise to the highest

Requested

Seen
4 occasions

$begingroup$

I’ve a small picture (30×30 px) I wish to use as a sprite on a Javascript display to indicate college students what Javascript can do. (They wish to create video games.) How do I hyperlink the picture file to my Javascript program so I can work with the picture as a sprite and, say, use keystrokes to maneuver it round? I don’t want any animations. A easy Javascript code instance would assist. Thanks from a beginner. –Jon

Jonathan Titus is a brand new contributor to this website. Take care in asking for clarification, commenting, and answering.
Try our Code of Conduct.

$endgroup$

You will need to log in to reply this query.

lang-js

 

[ad_2]

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Scroll to Top