Animate this image in a way that
If you are not pressing a button, the skeleton should not moveand should just be facing you.
If you press the right arrow key or “d” then it should move tothe right.
If you press the left arrow key or “a” then it should move tothe left.
If you press the up arrow key or “w” then it should move up.
If you press the down arrow key or “s” then it should movedown.
If it gets to the edge of the canvas, it should keep walking butnot move.
When you have this working, save it asskeleton.html andskeleton.js.
Please USE JAVASCRIPT FOR ANIMATION PART:
Here is the png file needed for the program.
D 3855
Animate this image in a way that If you are not pressing a button, the skeleton should not move and should just be facin
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am