cleanup logging
parent
0aed4f8625
commit
6bec854463
|
|
@ -176,16 +176,15 @@ public abstract class SceneGraph implements IScene {
|
|||
FileOutputStream file = new FileOutputStream("SAVE_DATA.TXT");
|
||||
ObjectOutputStream out = new ObjectOutputStream(file);
|
||||
ArrayList<GameObject> toSave = getNonTransientObjects();
|
||||
|
||||
System.out.println("=== [ SAVING ] ===");
|
||||
dump(toSave);
|
||||
out.writeObject(toSave);
|
||||
out.close();
|
||||
file.close();
|
||||
} catch (NotSerializableException e) {
|
||||
System.out.println("HEY");
|
||||
e.printStackTrace();
|
||||
System.out.println("=== [ SAVED ] ===");
|
||||
} catch (Exception e) {
|
||||
System.out.println(e);
|
||||
e.printStackTrace();
|
||||
System.out.println("=== [ FAILED ] ===");
|
||||
}
|
||||
saveFlag = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -75,8 +75,6 @@ public class BuildTab extends Tab implements ISelectionChangeListener, IMouseCap
|
|||
|
||||
public static void registerBuildable(Class<? extends IBuildable> clazz) {
|
||||
try {
|
||||
System.out.println("Its fine");
|
||||
|
||||
BuildableMetadata annotation = clazz.getAnnotation(BuildableMetadata.class);
|
||||
if(annotation == null) {
|
||||
System.out.println(clazz + " has no buildable data annotation");
|
||||
|
|
|
|||
|
|
@ -57,14 +57,11 @@ public class Assets {
|
|||
public static final SimpleShader flat;
|
||||
|
||||
static {
|
||||
System.out.println("START ASSETS");
|
||||
System.out.println("=== [ LOADING ASSETS ] ===");
|
||||
flat = new SimpleShader("res/shaders/flat.vert", "res/shaders/flat.frag");
|
||||
System.out.println("SHADERS LOADED");
|
||||
|
||||
atlas = new Texture("res/textures.png");
|
||||
System.out.println("ATLAS LOADED");
|
||||
|
||||
System.out.println("CREATE SPRITES");
|
||||
whiteBox = new Sprite(atlas, 0, 88, 8, 8);
|
||||
|
||||
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);
|
||||
sndGlassTap = new Sound("res/sounds/p0ss/interface-sounds/click5.ogg").setVolume(0.2f);
|
||||
|
||||
System.out.println("END ASSETS");
|
||||
System.out.println("=== [ ASSETS LOADED ] ===");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue