In this app I use new for me conception Entity-Component-System Entities: monster, door, player. Components: collisions. motions., Systems - arrays doors, monsters, dialogs, subscribed by events and change properties of entities.
It was very interesting to make a trip up the stairs. For this I do two meshes for collisions. One with gorizontal surfaces, and another with vertical for optimization. Vertical surfaceses for player and monsters, gorizontal only for player.
I also made a calculation of the coordinates of a player nearby, so as not to update the animation of monsters that are far away.
The main desire was that you can play on the phone. And it ran pretty fast. I haven’t inserted the animation yet … I don’t quite know how to optimize further. )))
Since this is a hobby, then appreciate what is. ) Thank you.
P.S Sorry for illiterate English, without a description, I can’t post the work .