Home  >  Q&A  >  body text

android - 游戏开发中关于布局的小问题

我尝试使用wpf或android开发一些小游戏,发现了一些布局上的小问题。
比如一些塔防游戏,他的布局应该是grid式,但是发射的子弹是四面八方都可以发射,这应该是canves布局吧,植物大战僵尸的植物摆放,应该是grid布局,但其中有一种星星植物,它也是四面八方发射星星。但是两者在同一个场景下,是怎么结合起来的呢?请提供思路,谢谢大家!

大家讲道理大家讲道理2709 days ago449

reply all(2)I'll reply

  • 迷茫

    迷茫2017-04-18 09:07:52

    These games should not be made using UI frameworks like wpf.
    You need to understand the process of 2D game production. It is recommended to take a look at unity or cocos2d.

    reply
    0
  • 黄舟

    黄舟2017-04-18 09:07:52

    The direction of launch has nothing to do with the layout, shouldn't it be a matter of collision check?

    reply
    0
  • Cancelreply