开发者

How to reference a touch using Hash Code?

开发者 https://www.devze.com 2023-02-25 03:04 出处:网络
I am making a 2d physics platform game. I am controlling the main character using left,right and jump buttons. I am however having trouble handling multiple touches. I have read about the hash code to

I am making a 2d physics platform game. I am controlling the main character using left,right and jump buttons. I am however having trouble handling multiple touches. I have read about the hash code to reference each touch and hence figure out what button or combination of buttons is being pressed. I am not able to find an example implementation of this hash code though.

Can someone point me to an example that shows how to use the hash code? If you have a suggestion on anyother way to implement the 开发者_JAVA百科controls that will be appreciated too.

Thanks

Abhinav


See answers to this question:

In cocos2d how do you implement a touch hash code and reference it later?

0

精彩评论

暂无评论...
验证码 换一张
取 消