Skip to content

Correct Ball and Wall Velocity at the init, and make the code more readable

Juraj Oravec requested to merge (removed):bug_init_diffivulty into master

By default, the gameWidget sets the speed to 0.125 for both Ball and Wall.
This is done with a magic number and can be considered as a safe guard to always init a member variable. Instead set the velocity according to the "default" difficulty. (Changing the magic number would also work, until some change in the speeds or default difficulty)

Merge request reports