如何在 Java 6 中实现游戏板的图像映射类型接口
我在学校的小组项目是实施一种垄断风格,学生可以购买课程并在各个广场上着陆并在棋盘上移动。这不是一个普通的方形板,所以我们想知道是否有人对我们如何实现图像映射或类似的东西有任何想法,以创建许多不在完美正方形中的可点击区域。我附上了游戏板的图像。只需要一种开始方式,不需要大量代码或任何我们都非常了解 java 的东西。如果有人有任何想法那就太好了。
董事会的图片在这里。
My group project at school is to implement a style of monopoly in which students can buy courses and land on various squares and move around the board. This is not a regular square board so we were wondering if anyone had any ideas on how we would implement an image map or something like it to create many clickable regions not in a perfect square. I have attached the image of the game board. Just a way to start is needed, not lots of code or anything as we all know java pretty well. If anyone has any ideas that would be great.
Image of board is here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Java 图像映射可以具有多边形可点击区域。像往常一样,Sun 有一个优秀教程。
Java image maps can have polygonal clickable regions. As usual, Sun has an excellent tutorial.