Icon Changes
Made some changes so that the application now has a custom icon. Changes were only really made to DesktopLauncher.java and added the icon to the asset folder. The other two files edited weren't actually changed.
This commit is contained in:
parent
d114083688
commit
9a31d7b078
4 changed files with 10 additions and 4 deletions
BIN
core/assets/spritesheets/icon.jpg
Normal file
BIN
core/assets/spritesheets/icon.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
|
@ -2,6 +2,7 @@ package com.game;
|
|||
|
||||
import com.badlogic.gdx.ApplicationAdapter;
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
|
||||
import com.badlogic.gdx.graphics.GL20;
|
||||
import com.badlogic.gdx.graphics.OrthographicCamera;
|
||||
import com.badlogic.gdx.graphics.Texture;
|
||||
|
@ -9,6 +10,9 @@ import com.badlogic.gdx.graphics.g2d.SpriteBatch;
|
|||
import com.game.Misc.Vars;
|
||||
import com.game.States.StateManager;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
public class Game extends ApplicationAdapter {
|
||||
|
||||
private float accum;
|
||||
|
@ -27,7 +31,6 @@ public class Game extends ApplicationAdapter {
|
|||
cam.setToOrtho(false, Vars.SCREEN_WIDTH, Vars.SCREEN_HEIGHT);
|
||||
hudCam = new OrthographicCamera();
|
||||
hudCam.setToOrtho(false, Vars.SCREEN_WIDTH, Vars.SCREEN_HEIGHT);
|
||||
|
||||
sm = new StateManager(this);
|
||||
}
|
||||
|
||||
|
|
|
@ -2,6 +2,8 @@ package com.game.Misc;
|
|||
|
||||
import com.badlogic.gdx.math.Vector2;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
* Created by Ash on 08/02/2016.
|
||||
*/
|
||||
|
@ -20,8 +22,6 @@ public class Vars {
|
|||
public static final float TILESIZE = 64f;
|
||||
public static final Vector2 SCROLLSPEED = new Vector2(150, 0);
|
||||
|
||||
|
||||
|
||||
// Filter bits
|
||||
public static final short BIT_RED = 2;
|
||||
public static final short BIT_GREEN = 4;
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
package com.game.desktop;
|
||||
|
||||
import com.badlogic.gdx.Files;
|
||||
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
|
||||
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
|
||||
import com.badlogic.gdx.graphics.PixmapIO;
|
||||
import com.game.Game;
|
||||
import com.game.Misc.Vars;
|
||||
|
||||
|
@ -13,5 +15,6 @@ public class DesktopLauncher {
|
|||
config.width = Vars.SCREEN_WIDTH;
|
||||
config.height = Vars.SCREEN_HEIGHT;
|
||||
config.resizable = Vars.RESIZABLE;
|
||||
config.addIcon("spritesheets/icon.jpg", Files.FileType.Internal);
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue