Release – v0.09

Summary

While not radically different visually, I, and a couple contributors (Onionnion and Horst), made some big changes to documentation and making sure we adhere to PEP 8 styling standards. Another major addition would be the support for multi-platforms. Linux should now be able to save/load games and pause/clear the screen. Game wise, I’ve put in some unique items for you guys to find! There’s one for each type of equipment! If you manage to find all at once and equip them, send me a screenshot and I’ll make another unique based on your input! Give this release a run through. v0.1 is going to need to be super stable with all basic functionality (shops/markets!) implemented so send any bugs or suggestions my way or submit an issue on github. Thank you everyone for your support!

Changelist

  • Full adjustment to PEP 8 code style.
  • Added unique equipment.
  • Non-Windows operating system support (Linux confirmed).
  • Updated README.txt to be a little clearer.

Known Issues

  • No change to existing issues. See github in the future.

Download

Windows Only Executable: 0.09

Source

Advertisements
Tagged , ,

7 thoughts on “Release – v0.09

  1. Onionnion says:

    Cool, Horst is German and that’s what I’m learning.

  2. I was just looking through the code, and I noticed that the stuff for saving the game repeats a lot.

    If you wanted to make it smaller, you could replace:

    if os.name == "nt":  # WINDOWS
                if os.path.exists(home_dir+"\saves\\"+saved_file+".bin"):
                    print "Loading game..."
                    f = open(home_dir+'\saves\\'+saved_file+'.bin', 'rb')
                    player = cPickle.load(f)
                    worldmap = cPickle.load(f)
                    f.close()
                    print "...Done!"
                    raw_input("Press \"Enter\" to continue...")
                    return True
                elif saved_file == 'c' or saved_file == 'C':
                    return False
                else:
                    continue
            else:  # UNIX
                if os.path.exists(home_dir+"/saves/"+saved_file+".bin"):
                    print "Loading game..."
                    f = open(home_dir+'/saves/'+saved_file+'.bin', 'rb')
                    player = cPickle.load(f)
                    worldmap = cPickle.load(f)
                    f.close()
                    print "...Done!"
                    raw_input("Press \"Enter\" to continue...")
                    return True
                elif saved_file == 'c' or saved_file == 'C':
                    return False
                else:
                    continue
    

    with:

    if os.name == "nt":  # WINDOWS
                path_separator = "\\"
            else:
                path_separator = "/"
            if os.path.exists(home_dir + path_separator + "saves" + path_separator + saved_file + ".bin"):
                print "Loading game..."
                f = open(home_dir + path_separator + "saves" + path_separator + saved_file + '.bin', 'rb')
                player = cPickle.load(f)
                worldmap = cPickle.load(f)
                f.close()
                print "...Done!"
                raw_input("Press \"Enter\" to continue...")
                return True
            elif saved_file == 'c' or saved_file == 'C':
                return False
            else:
                continue
    

    (Unless I copy-pasted something incorrectly, anyway. :p)

    • Ah, sorry about the indenting…

    • Dale Everett says:

      I was literally thinking about how atrocious the code was when writing that and thought about having some kind of replacement like that, but once it worked, I left it alone to work on loading! Great suggestion, I’ll get it put in by the end of this weekend. Also we should have v0.1 early next week. Maybe XD

      • You can also do it with the code just above that.

        Also, instead of elif saved_file == 'c' or saved_file == 'C': you could use elif saved_file.lower() == "c": and avoid having to check for both.

        • Dale Everett says:

          Made the changes to have the entire function use the path separator option. Reduced that by at least half. Thanks!

          Also, I think it’s possible to use square brackets around code to get it displayed in a good format:

          print "This is a test!"
          

          That used “code lang=python” with square brackets around it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: