JSController 介绍
JSController 实现一组类用于简化构建游戏控制 UI 的方法:
- 完全采用 UIKit 编写
- All controls are both delegate based and/or pollable.
- D-Pad class with full 8 directions, background and direction images can be swapped out
- Push Button class with configurable background images
- Analogue stick class that uses a normalized -1.0 to 1.0 scale and supports inverted Y axis. Background and handle images can be swapped out.
- Can be used within Interface Builder, just drag a UIView onto your XIB and set it’s class as JSDPad, JSButton or JSAnalogueStick. You can set it’s delegate from within interface builder as well as its position and size.
JSController 官网
https://github.com/jasarien/JSController
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。