May 19, 2021
Directional Controller – JavaScript Idea Series
Comments
(0)
May 19, 2021
Directional Controller – JavaScript Idea Series
I am currently a provider of technical training and support in the electronic manufacturing industry. My prior training and work experience as a teacher, network administrator, web design, and instructional design make me well prepared to design it, develop it, and deliver it. I am a father of five, a US Army veteran, and I enjoy playing the guitar as well as performing in local community theater. 
Legend 99 posts
Followers: 155 people
(0)

This idea is about creating a directional controller or perhaps a joystick, if you prefer. This idea requires four objects to serve as directional buttons – I used triangles. I also created a small red ball and a box to serve as a boundary for the ball movement.
Each button has essentially the same code with a slight modification based on the direction of movement and size of directional boundary which is a 200 x 400 pixel rectangle in this example. Use the buttons to move the ball around the box.

I would like to hear what sorts of project ideas you have for this concept.

Preview Project

<—— JavaScript Idea Series

0 Comments
Add Comment