Add start of ship rendering
This commit is contained in:
parent
4a253b0184
commit
704c82838a
15 changed files with 199 additions and 13 deletions
|
@ -20,6 +20,10 @@ export function changeView(view) {
|
|||
if (view == 'title') {
|
||||
root.append(modules.title());
|
||||
}
|
||||
|
||||
if (view == 'game') {
|
||||
root.append(modules.game());
|
||||
}
|
||||
}
|
||||
|
||||
export function measureText(msg, font) {
|
||||
|
|
|
@ -33,3 +33,9 @@ export function title() {
|
|||
|
||||
return shadow;
|
||||
}
|
||||
|
||||
export function game() {
|
||||
let shadow = root();
|
||||
|
||||
return shadow;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue