Finishing prototype

Tomorrow I have to pass documentation for my mobile development game. Development name “Carlos”.

Basic idea for the game is to move from place A to place B – but that is not so easy to do! There is labyrinth a.. and a evil sphere.. fine! I had no idea for the game, ok!

Well not simple enough to be build in less than a week, anyway. This was great background for developing simple Android Framework that will allow me to develop something more sophisticated in the future.

Last changes for lightning, music  and labyrinth model  and tomorrow documentation..

fingers crossed,

Ok, adding music is really easy!

what we need is variable

1
private MediaPlayer mp;

then in onCreate method

1
2
  mp = MediaPlayer.create(this, R.raw.run);
  mp.start();

and done!

you can as well add

1
2
mp.stop();
mp.pause();

Leave a Reply

Your email address will not be published. Required fields are marked *