简体   繁体   English

移动设备友好型游戏?

[英]Mobile device friendly games?

What does it mean ? 这是什么意思 ?
What do I have to take care of for that ? 为此我需要注意什么?
I am programming a game in AS3 that can be played with "mouse clicks" only. 我正在用AS3编写一个只能通过“鼠标单击”播放的游戏。 Is that mobile device friendly already ? 该移动设备是否已经友好? Or is that "Touch Friendly" ? 还是“触摸友好”?

I guess: 我猜:

// touch / mobile un-friendly
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUp);

// touch / mobile friendly
stage.addEventListener(MouseEvent.CLICK, onMouseClick);

It should work for simple interactions. 它应该适用于简单的交互。 If you want something more complex (gestures, etc) you have to use touch events ( http://help.adobe.com/en_US/as3/dev/WS1ca064e08d7aa93023c59dfc1257b16a3d6-7ffe.html ). 如果您想要更复杂的东西(手势等),则必须使用触摸事件( http://help.adobe.com/zh_CN/as3/dev/WS1ca064e08d7aa93023c59dfc1257b16a3d6-7ffe.html )。 For more performance on mobile I suggest you use a framework like Starling ( http://gamua.com/starling/ ). 为了获得更多的移动性能,建议您使用Starling( http://gamua.com/starling/ )之类的框架。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM