1 / 19
A Bouncing Ball
190 likes | 345 Vues
A Bouncing Ball. Presented by Quentin Ochem. University.adacore.com. {X = 0, Y = 100}. {X = 0, Y = 0}. {X = -100, Y = 0}. {X = 100, Y = 0}. {X = 0, Y = -100}. References to the graphical library. Declaration of a shape object with an initial value. Parameter value given by name.
Télécharger la présentation
A Bouncing Ball
An Image/Link below is provided (as is) to download presentation
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.
Content is provided to you AS IS for your information and personal use only.
Download presentation by click this link.
While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
During download, if you can't get a presentation, the file might be deleted by the publisher.
E N D
Presentation Transcript
A Bouncing Ball Presented by Quentin Ochem University.adacore.com
{X = 0, Y = 100} {X = 0, Y = 0} {X = -100, Y = 0} {X = 100, Y = 0} {X = 0, Y = -100}
X is a float, so it needs a floating point literal (0.0) not integer (0)
If the ball gets out of the boundaries, then invert the step
Variable are declared likename : type;
elsif introduces an alternative
These parenthesis are OK (although useless and not Ada-stylish)
More Related