+ 1

Help

Why is the blue cube moving fast? And this is provided that the variable DX is equal to 1, which in the end should not speed up the blue cube so much https://code.sololearn.com/WtGC0dkn9lLw/?ref=app

8th Apr 2021, 12:30 PM
Alexander Sokolov
Alexander Sokolov - avatar
4 Answers
+ 1
because you do not use the timestamp argument available in the callback function function passed in the requestAnimationFrame function call ^^ that's the minimum to handle how fast move anything animated by this way (you cannot expect any animation cross browser/device speed without handling this ;P)
8th Apr 2021, 11:48 PM
visph
visph - avatar
0
https://code.sololearn.com/WrQV9llKA7b0/# here is the problem. the dx and dy is too high
17th Nov 2021, 4:37 PM
Jackson Jameson
Jackson Jameson - avatar
0
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { int x = 89; Console.WriteLine(x); } } } Help me in c, sir. Try it yuor self
17th Oct 2022, 10:49 AM
Bobby Devarapu
Bobby Devarapu - avatar
- 1
How many age to start this app
5th Jun 2021, 3:01 PM
Nikhil Choudhary