Fourth lab

On last lab, I followed a tutorial to create a basic game. This lab is made to play that game on a mobile.

Setup

Once more, I have an iphone and a mac (great …). I then had to emulate android on it, and that actually worked pretty find … until one point. Let’s see what happened.

  • What I had to do

I of course followed the instruction of the lab to prepare the entire environment. It was a bit long on my computer, but it worked find ! Indeed, wa had to go to build setting and to switch platform to Android and then to change the player settings?

  • What I messed up

My only main mistake what to delete the ‘user.keystore’ on my desktop that actually enables to build the android app (it had been configure thought the player settings). I took me long to understand this “missing password” error.

  • Mobile input

Then, I build the application and I started it in the emulator. Great !

  • A fail about gyroscope on emulator

I had no possibility to emulate the gyroscope as it was depicted in the lab. I started to look on the internet and saw it was only on the last version and very strangely, I had a quite older one ! So I installed a new bluestack version, the same one used in the lab tutorial.

Moreover, from time to time, bluestack did not wanted to launch :

GitHub Logo

In any case, it still did not worked. The version used by our teachers must have been on PC. Here is what I should find vs what I had :

GitHub Logo GitHub Logo

As you can see, there is no menu to enable a gyroscope. The application cannot be used for this need. Summary : do not use bluestack on mac for this lab !

  • A solution : use an android phone

Then, the ones with a combo iphone-mac tried together to find a solution (version, other simulator, …). However, it then seemed simpler to simply … borrow someone else’s phone !

I then followed again the tutorial, about building the game on a plugged phone and it worked find !

  • Final result

I let you have a look on this video :

https://github.com/AdrienTriquet/Rool-a-ball---mobile

Index

Next :

Tenth lecture Fifth lab

List :

Index lecture, Index lab