GameDev on js | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

GameDev on js

Помогите сделать круг с положением по центру canvas (это я сделал, но все же тоже реализуйте пж) есть четыре кнопки, при нажати и на одгу из них ( например кнопка down) позиция круга меняется на 5 Px,также с другими кнопками/сторонами! Просто опыта нет,сделал анимацию бесконечного передвижения и отталкивания, а с кнопками на изменение позиции не получается (Кто ответит подпишусь) https://code.sololearn.com/W90YJj233LLj/?ref=app https://code.sololearn.com/W3P7gp3cne7i/?ref=app

22nd Nov 2018, 6:30 PM
Владислав Шевченко
Владислав Шевченко - avatar
2 Answers
+ 6
I’m afraid i can’t help. Hopefully someone else can. Translated to English: Help to make a circle with the position in the center of the canvas (I did this, but still implement the pj) there are four buttons; There is simply no experience, I made animation of infinite movement and repulsion, and with the buttons on changing the position it does not work (Who will answer subscribe) https://code.sololearn.com/W90YJj233LLj/?ref=app https://code.sololearn.com/W3P7gp3cne7i/?ref=app
22nd Nov 2018, 10:20 PM
Jax
Jax - avatar
+ 1
Jax, I do this code, you can look at it if you want https://code.sololearn.com/WwNl1TtgPG3D/?ref=app
23rd Nov 2018, 3:55 PM
Владислав Шевченко
Владислав Шевченко - avatar