Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Buffered Image for Image Tiles

Tags:

java

image

swing

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?

Refer to: Java Game Playing Area Difficulty

like image 918
Anonymous181 Avatar asked Dec 30 '25 18:12

Anonymous181


1 Answers

RobotChase is a tile-based game that uses BufferedImage in this way. Alternatives include these:

  • Implement the Icon interface, as shown in the examples cited here.
  • Set a component's text to a suitable Unicode glyph, as shown here.
like image 166
trashgod Avatar answered Jan 02 '26 08:01

trashgod



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!