Update Checking:
Currently, my program connects to a URL and checks if a new version is available. If one is, it simply opens up a dialog saying a new version is out and to go download it...
Is there a way to have it automatically open the path to the newest version in the users browser? Or if it's not too confusing, have it auto download the latest update?
Web Start would certainly handle that. As for your program downloading the update itself, sure, you could download a new version as a stream from a socket. If you want it to auto-update though, the updater will have to run as a separate JVM process since you can't replace your jar file while you are running it.
Score/Record keeping:
I can make it save high scores during the single gaming session, but once the game exits and the user opens it back up, all the scores start at 0 again... I'm thinking the easiest way to do this is to have the highest score write to a .txt before exiting and on next run, retrieve the highest score from that .txt file again, that way it's never lost.
My concern with this, is someone cheating and just editing the value in the .txt file and bragging that they finished the game in 3 seconds. Is there a better way to do this?
You could write the file as binary instead of txt, but really if someone wants to fiddle with it they will. You could encrypt it, but do you really care that much?
Submitting scores online:
I know how to retrieve text from a URL, but how can you write to a URL if you don't have write permissions? I know a lot of websites have a "Submit" button which obvious takes in what people fill in and saves it. How can I take that same idea to log players high scores to my website?
Well, you will probably need to put a script up (php, perl, python, whatever your host allows) to accept and store the scores.
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 839
Posting Genius
Offline 6,761 posts
since May 2007