-
Advertisement

Philip Borgstr
Member-
Content count
15 -
Joined
-
Last visited
Community Reputation
338 NeutralAbout Philip Borgstr
-
Rank
Member
-
Beginners Guide to User Testing With Children
Philip Borgstr reviewed Marko Nemberg's article in Game Design and Theory
-
-
-
You Don't Need to Hide Your Source Code
Philip Borgstr reviewed JulieMaru-chan's article in Business and Law
-
For a Career in Gaming, are Game Design Degrees Worth It?
Philip Borgstr reviewed BriceMo's article in Career Development
-
-
Writing Fast Code: Introduction To Algorithms and Big-O
Philip Borgstr reviewed Secretmapper's article in General and Gameplay Programming
-
Why your Games are Unfinished, and What To Do About It
Philip Borgstr reviewed Secretmapper's article in Business and Law
-
How to Make Accurate Time Estimates
Philip Borgstr reviewed gdarchive's article in Production and Management
-
Advice For Aspiring Indie Game Developers
Philip Borgstr reviewed x4000's article in Career Development
-
Telling an Immersive and Full Story with Mobile App Games
Philip Borgstr reviewed terrywilson's article in Game Design and Theory
-
New visual console for java - Graphsole
Philip Borgstr replied to Philip Borgstr's topic in Engines and Middleware
It is no longer released under the GPL license, I have released it under the BSD clause 3 aka New BSD License instead. Hope you enjoy using it :) -
Hello my fellow game developers! I just wanted to announce I have recently released an console library for java called Graphsole. It is released using GPL but if you want it with some other license just ask me by my e-mail. It is made with swing and works like an glove. Note: only runs on JDK(1.7+) Feel free to try out :)
-
package com.philipborg.aol; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.Properties; import com.badlogic.gdx.Gdx; public class Settings { public static boolean soundEnabled = true; public final static String file = "AOL/settings.txt"; static Properties prop = new Properties(); public static void load() { BufferedReader in = null; try { in = new BufferedReader(new InputStreamReader(Gdx.files.external( file).read())); prop.load(in); soundEnabled = Boolean.parseBoolean(prop.getProperty( "soundEnabled", "true")); Gdx.app.log("Settings - load", "Loaded settings"); } catch (Throwable e) { // Switches to default Gdx.app.log("Settings - load", "Could not load settings"); } finally { try { if (in != null) in.close(); save(); } catch (IOException e) { } } } public static void save() { BufferedWriter out = null; try { out = new BufferedWriter(new OutputStreamWriter(Gdx.files.external( file).write(false))); prop.setProperty("soundEnabled", Boolean.toString(soundEnabled)); prop.store(out, "AOL SETTINGS"); out.close(); } catch (Throwable e) { } finally { try { if (out != null) out.close(); } catch (IOException e) { } } } } This LibGDX code somehow only works on desktop. I want it to work on Android as well since I do not really care about HTML support.This code is my full settings class and is in it's native form. What do I need to do to make it work on Android?
-
Advertisement