Write a game engine? I'd suggest you just use one. And how powerful are those features? Anyway, Among US(mobile game) was made with Unity game engine.
Uhm, I didn't say I was planning to write a game engine lol