O, rewriting the engine is a pain. Of course, I'm not a programmer, and I can't be objective, but maybe I can use a ready-made engine - for example, Defold, or use Raylib so as not to write an engine from scratch? In any case, good luck and success to you!