Add start of ship rendering
This commit is contained in:
parent
4a253b0184
commit
704c82838a
15 changed files with 199 additions and 13 deletions
15
js/world/module.mjs
Normal file
15
js/world/module.mjs
Normal file
|
@ -0,0 +1,15 @@
|
|||
export default class Module {
|
||||
constructor(x, y, {
|
||||
name = 'Unnamed Module',
|
||||
type = 'block',
|
||||
mass = 1,
|
||||
...properties
|
||||
}) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.name = name;
|
||||
this.type = type;
|
||||
this.mass = mass;
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue