Jump to content

  • Log In with Google      Sign In   
  • Create Account

Dialock

Member Since 25 Jan 2012
Offline Last Active Yesterday, 08:25 PM

Topics I've Started

Monogame Xamarin Back Button Fun?

15 September 2014 - 10:11 PM

So I've made a game.  It works great on my phone and on emulators.  It even closes properly.  So to complete the package I'm trying to give the back button the functionality the user would expect.  But FML.

 

I start with:

 

    public class Activity1 : Microsoft.Xna.Framework.AndroidGameActivity
    {
        TempleMain game;


        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);  


            TempleMain.Activity = this;


            Vibrator v = (Vibrator)GetSystemService(Context.VibratorService);


            game = new TempleMain(v);
            SetContentView(game.Window);
            game.Run();
        }

and throw in 

 

        public override void OnBackPressed()
        {
            base.OnBackPressed();
            if (game != null)
                game.BackButton();
        }

Nada.

 

Now, I'm thinking that AndroidGameActivity inherits from Androids Activity yet does not override Activity's OnBackPressed() thus not giving me proper access????....  

 

Am I using activities wrong?  Game compiles and runs just fine.  And the home button does what you would expect without my help.

 


Getting analog art to digital

05 April 2014 - 09:12 PM

I'm a programmer with no artistic skill/patience with a friend who draws.  My friend is just starting to learn Gimp/Photoshop with a drawing tablet. She is still quite uncomfortable with the whole process as paper is her preferred medium.  We would like to use her art for a game though.  Is there any guidance you could offer for getting her art "digitized"?

 

Note that we do have a scanner that could conceivably copy her art. (residential quality)

 

I guess I'm asking is all art for games done electronically?  Does she need to suck it up and learn Photoshop (which is fine! We just don't wont to wait another year...etc. for her skills to translate.)


PARTNERS