- Home /
Converting Game(Code structure and input controls) PC to Mobile
I'm ready to make my PC game a mobile game but i have hundreds of scripts . and the input are all key based.
I would just like to know is there is any documentation anywhere that states what aspects of the code structure must be revamped in order to successfully convert a PC game to Mobile.
I have never owned a smart phone so i'm lost here.
is anyone could point me in the right direction I would be grateful .
If you do not own a smartphone / tablet, then it will be hard to convert your pc to a mobile game. Although Unity supports multi-platform really well on a technical level, you will need to run tests on actual devices.
If I'd have to make a step-by-step summary of what to do..
1) Redesign all your panels, interfaces and interactions to be mobile friendly. Take into consideration your screen will be smaller, there is no keyboard (at least not during gameplay) and positioning of buttons should be based on peoples fingers (e.g. you don't want an important button in gameplay in the middle, since that way the person can't see his screen when he presses it.
2) Recode the redesign (it's important to separate these two steps, because on-the-go changing of code while you're not done with the re-design, will scramble your brain and project).
3) Redesign your models, textures to low poly / low res. Adjust/change shaders.
I'd like to add that people often underestimate the difference between PC and mobile game development. Remember that your target group, the interaction and the capabilities of the device are completely different.
my game is a space sim. there is only one level , "levels" are just skyboxes that are changed during gameplay and objects that are enabled and disabled.
I will need to change all the input controls to recognise touch input. On screen buttons will be needed .
the ship can be button controlled or controlled by the tilting of the phone itself ?.
the game is about 600 $$anonymous$$b as is .
so the immediate issues are shaders , input and GUI ?
my ships arent over 2000 verts, still too many verts for mobile ?
Converting an existing game to a mobile platform is a big project. High-res textures and high-poly models will make your cellphone/tablet lag, so they must be set to lower resolution (redesigned). You will have to do a lot of optimization in code and graphics, since cells can't handle nearly as many calls in update. You should also keep in $$anonymous$$d that a mobile game running just below the cells performance ceiling will drain the battery in no time. Unity does however lower the quality when you build for cells, but you still need to optimize. And not to demotivate you even further, 600 $$anonymous$$b is quite a lot for a mobile game. You should reduce the amount of textures maybe? Lover quality of Audio or reduce their lenght.
Sound, Video and Textures are holding most of your $$anonymous$$b! Check these if you need to reduce size.
Shaders (Unity has special material shaders for mobiles), shadows (live shadows are not recommended at all), high poly models and high res textures put the biggest load on the processor. simplifiy these to increase performance.
And finally: Good Luck! Hope I didnt demotivate you too much!
Your answer
Follow this Question
Related Questions
How to launch a Standalone Unity Application PC/Osx by clicking on a hyperlink in any browser ? 0 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
C# to Unity script question ? 4 Answers
converting javascript to c# 1 Answer