1. Download our Official Android App: Forums for Android!

Apps How to implement Android Game UI?

Discussion in 'Android Development' started by Tianmaru, Aug 19, 2017.

?

How to implement Android Game UI?

  1. Custom View with separate Game View

    0 vote(s)
    0.0%
  2. Directly drawn on the Game View

    0 vote(s)
    0.0%
  3. None of both! Instead use...

    0 vote(s)
    0.0%
  1. Tianmaru

    Tianmaru Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    4
    Joined:
    Aug 19, 2017

    Aug 19, 2017
    4
    0
    5
    Hey Android Developers! :)

    I want to create a game for android - and so do many others, I know :D
    To process the user input for character movement I want to make a virtual DPAD, but I really can't decide, if it should be implemented as a custom DPAD view object with the main game surface view object behind it, or if it should be directly drawn to the surface view.
    Maybe there is a third and even better way to do it?

    Help is appreciated!
    Tianmaru
     

    Advertisement

  2. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,440
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,440
    10,724
    1,988
    Male
    Software developer
    South West of England
    I'd draw it on the game view
     
    Tianmaru likes this.
  3. Tianmaru

    Tianmaru Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    4
    Joined:
    Aug 19, 2017

    Aug 19, 2017
    4
    0
    5
    Wow, didn't expected such a fast reply, thank you!
    So if i want to add, for example, an action button too, do I use multi touch to control dpad and button individually?
     
  4. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,440
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,440
    10,724
    1,988
    Male
    Software developer
    South West of England
    Sounds like a great plan.
     
  5. Tianmaru

    Tianmaru Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    4
    Joined:
    Aug 19, 2017

    Aug 19, 2017
    4
    0
    5
    What could possibly go wrong? :thinking::oops:
     

Share This Page

Loading...