You must hand in by using git
bitbucket.org,
gitlab.com, or
github.com,
git push your local repo to the above remote repo.
node_modules/
.gitignore file.
Send a mail to <nmla@iba.dk> with:
handin <subjectname>'
in the subject line of your mail
On the basis of the code from today's lesson please place 10 or more moving disks on a 500 x 600 canvas. They must all move linearly and bounce when hitting the wall. They must have different colors, and different sizes. Their trajectories and their speeds must be randomized.
Hand in as jsanimN0.js, and jsanimN0.html
On the basis of the code from today's lesson please place 10 or more moving disks on a 500 x 600 canvas. They must all move linearly and bounce when hitting the wall. They must have different colors, and different sizes. Their trajectories and their speeds must be randomized.
The above is equivalent to the previous assignment. Now you must change the coding, so that when a moving disk hits another disk, the bigger disk swallows the the smaller disk, and its area grows with the area of the swallowed disk. When there is but one disk left, the animation must stop, and an appropriate message must appear.
Hand in as jsanimN1.js, and jsanimN1.html
Copy the results of the previous assignment so that
jsanimN1.js becomes jsanimN2.js, and
jsanimN1.html becomes jsanimN2.html.
Change the moving objects so that half of them are squares or rectangles and the other half remain disks (circles). When they move around, occasionally one hits another. The assignement is the same as the previous one. The shape with the larger area swallows the smaller and grows proportionately. When one shape is left the animation must stop with an appropriate message.
Hand in as jsanimN2.js, and jsanimN2.html