Package view.utilz
Class LoadSave
java.lang.Object
view.utilz.LoadSave
Classe utilizzata per caricare i file immagine e i font personalizzati
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static Font
static final String
static final String
static final String
static final String
static final String
static final String
static Font
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Color
getDarkenedColor
(int rgb) Metodo utilizzato per disegnare le ombre sui livelli, scurisce un colorestatic BufferedImage
getSpriteAtlas
(String fileName) static BufferedImage[]
static BufferedImage[][]
loadAnimations
(String path, int rowIndex, int colIndex, int width, int height) Lo utilizziamo per caricare le spritesstatic void
Carica i vari font personalizzati nelle rispettive variabili
-
Field Details
-
MENU_LOGO
- See Also:
-
STARS_SPRITE
- See Also:
-
PLAYER_SPRITE
- See Also:
-
LEVEL_SPRITE
- See Also:
-
ICON
- See Also:
-
BUB_LEVEL_TRANSITION
- See Also:
-
PAUSE_BACKGROUND
- See Also:
-
BOB_BUBBLE_SPRITE
- See Also:
-
EXTEND_SPRITE
- See Also:
-
SPECIAL_BUBBLE_SPRITE
- See Also:
-
WATER_SPRITE
- See Also:
-
FIRE_SPRITE
- See Also:
-
LIGHTNING_SPRITE
- See Also:
-
ZEN_CHAN_SPRITE
- See Also:
-
MAITA_SPRITE
- See Also:
-
INVADER_SPRITE
- See Also:
-
MONSTA_SPRITE
- See Also:
-
DRUNK_SPRITE
- See Also:
-
HIDEGONS_SPRITE
- See Also:
-
SUPERDRUNK_SPRITE
- See Also:
-
AVATAR_1
- See Also:
-
AVATAR_2
- See Also:
-
AVATAR_3
- See Also:
-
AVATAR_4
- See Also:
-
AVATAR_5
- See Also:
-
AVATAR_6
- See Also:
-
AVATAR_7
- See Also:
-
AVATAR_8
- See Also:
-
AVATAR_9
- See Also:
-
AVATAR_10
- See Also:
-
AVATAR_11
- See Also:
-
SAVE_BUTTON
- See Also:
-
X_BUTTON
- See Also:
-
ERASER_BUTTON
- See Also:
-
ENEMIES_BUTTON
- See Also:
-
PLAYER_BUTTON
- See Also:
-
CHANGE_LVL_BUTTON
- See Also:
-
EDIT_BUTTON
- See Also:
-
HEART_LIFE_BUTTON
- See Also:
-
QUIT_BUTTON
- See Also:
-
QUIT_BUTTON2
- See Also:
-
RESTART_BUTTON
- See Also:
-
START_BUTTON
- See Also:
-
START_BUTTON2
- See Also:
-
EDITOR_BUTTON
- See Also:
-
CREATE_BUTTON
- See Also:
-
MAITA_FIREBALL
- See Also:
-
HIDEGONS_FIREBALL
- See Also:
-
INVADER_LASER
- See Also:
-
DRUNK_BOTTLE
- See Also:
-
FOOD_SPRITE
- See Also:
-
POWERUP_SPRITE
- See Also:
-
HAPPY_END
- See Also:
-
HEART_SPRITE
- See Also:
-
PARENTS_HUGGING_SPRITE
- See Also:
-
CHARACTER_KISSING
- See Also:
-
JEQO_FONT
-
NES_FONT
-
-
Constructor Details
-
LoadSave
public LoadSave()
-
-
Method Details
-
getSpriteAtlas
- Parameters:
fileName
- Percorso del file immagine- Returns:
- l'immagine come tipo
BufferedImage
-
loadAnimations
public static BufferedImage[][] loadAnimations(String path, int rowIndex, int colIndex, int width, int height) Lo utilizziamo per caricare le sprites- Parameters:
path
- percorso del filerowIndex
- quante righe sono presenticolIndex
- quante colonne sono presentiwidth
- larghezza di un frameheight
- altezza di un frame- Returns:
- tutti i frame dell'animazione in una matrice bidimensionale di tipo
BufferedImage
-
importSprites
- Returns:
- Un array do tipo
BufferedImage
contenente le sprites delle tiles dei livelli
-
loadCustomFont
public static void loadCustomFont()Carica i vari font personalizzati nelle rispettive variabili -
getDarkenedColor
-