Map characters to elements or draw blocks using parsing a text file
问题 I wanna map given strings from a text file to blocks, I mean actually draw blocks. I already have a BLOCK class which works, with the following constructor: public class Block implements Collidable, Sprite, HitNotifier { private List<HitListener> hitListeners; private Color color; private Rectangle rectangle; /** * Instantiates a new collidable Block. * * @param rectangle a given rectangle * @param color the color of the block */ public Block(Rectangle rectangle, Color color) { this.color =