Skip to content

Commit 9388c95

Browse files
committed
add Inheritance example
1 parent ff0b0e5 commit 9388c95

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

src/data/examples/en/11_Objects/04_Inheritance.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ function draw() {
2424
class SpinArm {
2525
constructor(x, y, s) {
2626
this.x = x;
27-
this.y = y;
28-
this.speed = s;
29-
this.angle = 0.0;
27+
this.y = y;
28+
this.speed = s;
29+
this.angle = 0.0;
3030
}
3131

3232
update() {
@@ -47,11 +47,11 @@ class SpinArm {
4747

4848
class SpinSpots {
4949
constructor(x, y, s, d) {
50-
this.x = x;
51-
this.y = y;
52-
this.speed = s;
50+
this.x = x;
51+
this.y = y;
52+
this.speed = s;
5353
this.dim = d;
54-
this.angle = 0.0;
54+
this.angle = 0.0;
5555
}
5656

5757
update() {

src/data/examples/es/11_Objects/04_Inheritance.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ function draw() {
2424
class SpinArm {
2525
constructor(x, y, s) {
2626
this.x = x;
27-
this.y = y;
28-
this.speed = s;
29-
this.angle = 0.0;
27+
this.y = y;
28+
this.speed = s;
29+
this.angle = 0.0;
3030
}
3131

3232
update() {
@@ -47,11 +47,11 @@ class SpinArm {
4747

4848
class SpinSpots {
4949
constructor(x, y, s, d) {
50-
this.x = x;
51-
this.y = y;
52-
this.speed = s;
50+
this.x = x;
51+
this.y = y;
52+
this.speed = s;
5353
this.dim = d;
54-
this.angle = 0.0;
54+
this.angle = 0.0;
5555
}
5656

5757
update() {

src/data/examples/zh-Hans/11_Objects/04_Inheritance.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ function draw() {
2424
class SpinArm {
2525
constructor(x, y, s) {
2626
this.x = x;
27-
this.y = y;
28-
this.speed = s;
29-
this.angle = 0.0;
27+
this.y = y;
28+
this.speed = s;
29+
this.angle = 0.0;
3030
}
3131

3232
update() {
@@ -47,11 +47,11 @@ class SpinArm {
4747

4848
class SpinSpots {
4949
constructor(x, y, s, d) {
50-
this.x = x;
51-
this.y = y;
52-
this.speed = s;
50+
this.x = x;
51+
this.y = y;
52+
this.speed = s;
5353
this.dim = d;
54-
this.angle = 0.0;
54+
this.angle = 0.0;
5555
}
5656

5757
update() {

0 commit comments

Comments
 (0)