3

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

Community
  • 1
  • 1
Anonymous181
  • 1,863
  • 6
  • 24
  • 27

1 Answers1

4

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.
Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045
  • Exactly this is what I needed Point 2, though will take time for me to understand that example, too new to that stuff so a bit complicated :( – nIcE cOw May 09 '12 at 03:53