ソースを参照

Allow entity selection by clicking the bottom name

tags/v0.0.1
Fen Dweller 5年前
コミット
6ee89ad272
1個のファイルの変更2行の追加0行の削除
  1. +2
    -0
      macrovision.js

+ 2
- 0
macrovision.js ファイルの表示

@@ -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;



読み込み中…
キャンセル
保存