i’m developing a game based on Galaga. The structure of the game is basically the same but the space ships don’t shoot, it is based on collisions. The problem that i have is when i download the APK in my phone and use the gyroscope my space ship only moves to the right and surpasses the screen but when i tried to move it to the left the space ship get stuck in the middle of the screen. Also i am having problems with the collisions since at the first moment that a space ship enemy is generated the game detects it as a collision.
If you can help me with that i really appreciate it. If you need the code to check something just let me knows.
Thanks in advance.
I tried a lot of things. A partner told me that a solution would be pass the margins of my cell phone screen to the code so that the ship stays within it, but it didn’t work either