The smart Trick of Dino Game 72 That Nobody is Discussing
While in the constructor for cactus, we take the location and just randomly choose a sprite from the predefined list of cacti.We would like our frame to switch every single a hundred milliseconds, which is why we’re dividing elapsedTime.inMilliseconds by 100. This division will give us a double and we have only integer frame numbers so we use flo