Add zooming

This commit is contained in:
asraelite 2018-03-03 13:29:14 +00:00
parent 56a09f98c5
commit b02675f4fb
12 changed files with 156 additions and 29 deletions

View file

@ -3,6 +3,9 @@ export default class Module {
name = 'Unnamed Module',
type = 'block',
mass = 1,
// Fuel
filled = false,
fuelCapacity = 0,
...properties
}) {
this.x = x;
@ -10,6 +13,7 @@ export default class Module {
this.name = name;
this.type = type;
this.mass = mass;
// Fuel
this.fuel = filled ? fuelCapacity : 0;
}
}