escalator-web/src/platform.js

17 lines
287 B
JavaScript
Raw Normal View History

2018-08-21 11:02:20 +02:00
class Platform {
constructor(x, y, width) {
this.x = x;
this.y = y;
this.width = width;
this.height = 0.02;
this.color = 'rgb(0, 255, 0)';
}
update() {
}
}
2018-08-21 16:38:06 +02:00
Platform.texture = new Image();
Platform.texture.src = "img/grass.png";