cleanup logging

bottom-bar
Ivory 2023-01-11 03:37:13 -05:00
parent 0aed4f8625
commit 6bec854463
3 changed files with 6 additions and 12 deletions

View File

@ -176,16 +176,15 @@ public abstract class SceneGraph implements IScene {
FileOutputStream file = new FileOutputStream("SAVE_DATA.TXT"); FileOutputStream file = new FileOutputStream("SAVE_DATA.TXT");
ObjectOutputStream out = new ObjectOutputStream(file); ObjectOutputStream out = new ObjectOutputStream(file);
ArrayList<GameObject> toSave = getNonTransientObjects(); ArrayList<GameObject> toSave = getNonTransientObjects();
System.out.println("=== [ SAVING ] ===");
dump(toSave); dump(toSave);
out.writeObject(toSave); out.writeObject(toSave);
out.close(); out.close();
file.close(); file.close();
} catch (NotSerializableException e) { System.out.println("=== [ SAVED ] ===");
System.out.println("HEY");
e.printStackTrace();
} catch (Exception e) { } catch (Exception e) {
System.out.println(e); e.printStackTrace();
System.out.println("=== [ FAILED ] ===");
} }
saveFlag = false; saveFlag = false;
} }

View File

@ -75,8 +75,6 @@ public class BuildTab extends Tab implements ISelectionChangeListener, IMouseCap
public static void registerBuildable(Class<? extends IBuildable> clazz) { public static void registerBuildable(Class<? extends IBuildable> clazz) {
try { try {
System.out.println("Its fine");
BuildableMetadata annotation = clazz.getAnnotation(BuildableMetadata.class); BuildableMetadata annotation = clazz.getAnnotation(BuildableMetadata.class);
if(annotation == null) { if(annotation == null) {
System.out.println(clazz + " has no buildable data annotation"); System.out.println(clazz + " has no buildable data annotation");

View File

@ -57,14 +57,11 @@ public class Assets {
public static final SimpleShader flat; public static final SimpleShader flat;
static { static {
System.out.println("START ASSETS"); System.out.println("=== [ LOADING ASSETS ] ===");
flat = new SimpleShader("res/shaders/flat.vert", "res/shaders/flat.frag"); flat = new SimpleShader("res/shaders/flat.vert", "res/shaders/flat.frag");
System.out.println("SHADERS LOADED");
atlas = new Texture("res/textures.png"); atlas = new Texture("res/textures.png");
System.out.println("ATLAS LOADED");
System.out.println("CREATE SPRITES");
whiteBox = new Sprite(atlas, 0, 88, 8, 8); whiteBox = new Sprite(atlas, 0, 88, 8, 8);
defaultTerrain = new Sprite[] { defaultTerrain = new Sprite[] {
@ -320,6 +317,6 @@ public class Assets {
sndCancel = new Sound("res/sounds/leohpaz/retro-rpg-menu-sounds/098_Unpause_04.ogg").setVolume(0.8f); sndCancel = new Sound("res/sounds/leohpaz/retro-rpg-menu-sounds/098_Unpause_04.ogg").setVolume(0.8f);
sndGlassTap = new Sound("res/sounds/p0ss/interface-sounds/click5.ogg").setVolume(0.2f); sndGlassTap = new Sound("res/sounds/p0ss/interface-sounds/click5.ogg").setVolume(0.2f);
System.out.println("END ASSETS"); System.out.println("=== [ ASSETS LOADED ] ===");
} }
} }