Explorar el Código

Allow entity selection by clicking the bottom name

tags/v0.0.1
Fen Dweller hace 5 años
padre
commit
6ee89ad272
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      macrovision.js

+ 2
- 0
macrovision.js Ver fichero

@@ -530,6 +530,8 @@ function displayEntity(entity, view, x, y) {
bottomName.id = "bottom-name-" + entityIndex;
bottomName.innerText = entity.name;

bottomName.addEventListener("click", () => select(box));

world.appendChild(bottomName);
entityIndex += 1;



Cargando…
Cancelar
Guardar