HTML/JS/CSS Isometric Grid with semi-transparent click-through tiles

后端 未结 3 1678
后悔当初
后悔当初 2021-02-03 13:17

I\'m trying to create a web app/game that uses a side-on \'isometric\' view and transparent tiles. I can display them ok (but not great) using a PHP formula that just sets each

3条回答
  •  北荒
    北荒 (楼主)
    2021-02-03 13:51

    Since this is a tile based game, maybe you should just determine which tile the user is interacting with by using a simple formula. Use some javascript to determine the coordinates of a click or other action. then do some arithmetic to figure out what tile to act on. Does that make sense?

    Otherwise, I agree with bobince. You're approach probably won't work easily.

提交回复
热议问题