(sorry for bad english).So I made an android shooting game with a bit of rpg and storytelling made by an ai every gameplay is unique through the ai generation.The thing is i want to port it to windows with the same code if possible. The code is mostly based on java. So can i use the same code for the port? If yes, how?
You need to provide information about what engine / framework / sdk you are using. If you are using something like GameMaker Studio all you have to do is click Windows in the target build platform list instead of Android. If you aren’t using a game engine that supports multiple platforms you may have to redo all the java code related to UI and input yourself to work on Windows, but it is impossible to say without knowing more about how your project is set up.