-
Notifications
You must be signed in to change notification settings - Fork 0
/
present.js
40 lines (30 loc) · 905 Bytes
/
present.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/****************************************************
* present.js
*
****************************************************/
class Present {
y = random(height);
speed = 2;
x = width;
height = 32;
width = 32;
/****************************************************
* Show the present image by using image() from p5,
* together with x, y, width and height
* @custom
****************************************************/
show() {
}
/****************************************************
* Make the present start outside of the canvas to the right and
* move to the left.
* Use x and speed.
****************************************************/
update() {
}
/****************************************************
* Here you want the reindeer to hit the present
****************************************************/
hits(reindeer) {
}
}