Add right click edit grid interaction
This commit is contained in:
parent
2fbabc785e
commit
548fb99c8b
9 changed files with 65 additions and 28 deletions
|
@ -1,7 +1,6 @@
|
|||
import {canvas, context} from './index.mjs';
|
||||
import {images as assets} from '../assets.mjs';
|
||||
import * as world from '../world/index.mjs';
|
||||
import * as edit from './edit.mjs';
|
||||
import {state} from '../game/index.mjs';
|
||||
|
||||
export function render() {
|
||||
|
@ -24,7 +23,7 @@ function renderShip(ship) {
|
|||
ship.modules.forEach(m => {
|
||||
let [mx, my] = [m.x, m.y];
|
||||
if (state.editing) {
|
||||
|
||||
|
||||
}
|
||||
context.drawImage(m.currentImage, m.x, m.y, 1, 1);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue