O
O
olegivanchenko802017-02-27 18:08:13
JavaScript
olegivanchenko80, 2017-02-27 18:08:13

Canvas: synchronous circular movement, perhaps?

Is it possible and how best to implement the movement of objects in a circle (very similar to the solar system, with only one orbit and 3 planets) - with equal speeds,
i.e. the "planets" are moving uniformly from their positions at the same speed...
the only problem is understanding how to place these planets and how to make them move along the edge of the circle.
2rf4gus.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Pushkarev, 2017-02-27
@olegivanchenko80

HTML (taken from here )
Canvas (taken from here )

X
xmoonlight, 2017-02-27
@xmoonlight

Take Crafty.js and it's done in 5 minutes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question