private static Map<String, Sound> sounds = new HashMap<String, Sound>();
private static Map<String, TextureAtlas> atlases = new HashMap<String, TextureAtlas>();
public static void loadAllResources() {
TextureAtlas atlas;
Texture.setEnforcePotImages(false);
// Imágenes
ResourceManager.loadResource("background", new Texture("backgrounds/farback.png"));
ResourceManager.loadResource("ship_bullet", new Texture("ship/bullet.png"));
ResourceManager.loadResource("shooter_bullet", new Texture("enemy/bullet.png"));
ResourceManager.loadResource("bomb", new Texture("items/bomb.png"));
ResourceManager.loadResource("shield", new Texture("items/shield.png"));
// Onscreen information
ResourceManager.loadResource("bomb_score", new Texture("items/bomb_score.png"));
ResourceManager.loadResource("missile_score", new Texture("items/missile_score.png"));
// Animaciones
atlas = new TextureAtlas(Gdx.files.internal("ship/ship.pack"));
ResourceManager.loadResource("ship", atlas);
ResourceManager.loadResource("ship", new Animation(0.15f, atlas.findRegions("ship")));
// Animación de nave pequeña
atlas = new TextureAtlas(Gdx.files.internal("enemy/small.pack"));
ResourceManager.loadResource("small_enemy", new Animation(0.15f, atlas.findRegions("small")));
// Animación para la roca
atlas = new TextureAtlas(Gdx.files.internal("enemy/stone.pack"));
ResourceManager.loadResource("stone", new Animation(0.15f, atlas.findRegions("stone")));
ResourceManager.loadResource("pursuer_enemy", ResourceManager.createAnimationFromSpriteSheet("enemy/pursuer.png", 6));
ResourceManager.loadResource("shooter_enemy", ResourceManager.createAnimationFromSpriteSheet("enemy/shooter.png", 6));
ResourceManager.loadResource("big_enemy", ResourceManager.createAnimationFromSpriteSheet("enemy/big.png", 6));
ResourceManager.loadResource("missile", ResourceManager.createAnimationFromSpriteSheet("items/missile.png", 16));
// Animación para las explosiones
atlas = new TextureAtlas(Gdx.files.internal("explosion/explosion.pack"));
ResourceManager.loadResource("explosion", new Animation(0.15f, atlas.findRegions("explosion")));
//ResourceManager.loadResource("block", new SpriteSheet(new Image("res/items/blocks1.png"), 32, 32, 2, 2));
// Sonidos
ResourceManager.loadResource("shoot", Gdx.audio.newSound(Gdx.files.internal("sounds/disparo.mp3")));