图像平铺的缓冲图像 [英] Buffered Image for Image Tiles
本文介绍了图像平铺的缓冲图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想创建一个游戏,我想要有许多图像拼贴,它们会响应箭头键。我应该使用BufferedImage创建每个单独的磁贴吗?
I want to create a game where I want to have many image tiles which will respond to the arrow keys. Should I use BufferedImage to create every individual tile?
请参阅: Java游戏区域难度
推荐答案
RobotChase
是基于图块的游戏,使用 BufferedImage
以这种方式。替代方案包括:
RobotChase
is a tile-based game that uses BufferedImage
in this way. Alternatives include these:
- 实施
图标
界面,如引用的示例所示此处。 - 将组件的文本设置为合适的Unicode字形,如图所示< a href =https://sites.google.com/site/drjohnbmatthews/buttons\"rel =nofollow noreferrer>此处。
- Implement the
Icon
interface, as shown in the examples cited here. - Set a component's text to a suitable Unicode glyph, as shown here.
这篇关于图像平铺的缓冲图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文