public static Sprite getSprite(String name) {
        if (spritesheet == null)
            load();
        if (sprites == null)
            sprites = new HashMap<String, Sprite>();
        if (sprites.containsKey(name))
            return sprites.get(name);
        Rectangle rect = getRect(name);
        if (rect == null)
            return null;
        Sprite sprite = new Sprite(name, rect);
        sprites.put(name, sprite);
        return sprite;
    }