Results 1 to 4 of 4
  1. #1
    denno is offline Member
    Join Date
    Mar 2011
    Posts
    19
    Rep Power
    0

    Default Best way to save high scores

    I was just wondering what the best way would be to store high scores for my small Java game.

    I have thought of just saving it into an external txt file, and having that read in each time the game is started, but this makes it too easy for the high scores to be modified, or accidentally deleted.

    I don't know how important it is that the high scores can't be modified using a text editor, this is a uni assignment and there is no mention of that fact, only that we need to store high scores and reload them each time the game is started, but I would like to be able to do it so it's a little more secure and can't be tampered with :).

    Any ideas are greatly appreciated.

    Cheers
    Denno

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default

    I think you can use cooks for this purpose.
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,240
    Rep Power
    19

    Default

    Check out the preferences API.

    @Petr: cooks?

    db

  4. #4
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

Similar Threads

  1. How to get scores from user in Canvas J2ME?
    By elenora in forum CLDC and MIDP
    Replies: 0
    Last Post: 04-04-2011, 09:57 AM
  2. Replies: 0
    Last Post: 03-05-2011, 08:06 AM
  3. Replies: 0
    Last Post: 03-01-2011, 12:48 PM
  4. Replies: 4
    Last Post: 02-15-2011, 11:05 PM
  5. Golf Scores Project
    By Gecko in forum New To Java
    Replies: 5
    Last Post: 03-02-2010, 07:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •