-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User-settable parameters proposals #52
Comments
Key bindings can (will) be adjusted in the menu. Sounds good otherwise. |
Great :) default_key_bindings = {
'move_forward': key.W,
'move_backward': key.S,
[…]
}
for control, default in default_key_bindings.items():
key_name = config.get('Controls', control)
key_code = getattr(key, key_name, None)
if key_code is None:
# Handles cases like pyglet.window.key._1
key_code = getattr(key, '_' + key_name, default) OK? |
Do it! |
global keyword is bad in pretty much every language (that I used), hence why I tried to move as much as I could into config object. Not sure about "from globals import *" tho? |
Only reason I can think of is if you import * you can't then set the imported variables, because they'll only be set in the local scope instead of at the globals.py module level. |
Yeah, just figured it out. You basically import everything from global into the local scope, so what was globals.SOME_VARIABLE is now local_scope.SOME_VARIABLE. Makes sense. |
@tfaris is right. That's why we lost all the settings that were using |
Damn. ok, so should i start editing like crazy on my end, or ... yeah, i want to keep the blocks that i did today, and toolset, but how can i update to what you have here? Or should i just wait a it more? |
I'm still working on this whole issue. Have you committed your changes? If not, do it. |
(Oh god, the last part of my previous message looked like I was trying to convince you to go to a retirement home ^^") |
LOL! No, it is ok! I have PyCharm installed now, going to use it for a week to see hwow i like it :D |
Sorry, I can't help you as I only use command line. I find it easier than any 3rd party client. You just do:
|
One major step: 3b66650. Only one thing left: move command-line parameters |
The goal of this proposal is to have more consistent settings. Settings that we change once and for all should be in game.cfg. Settings more likely to be changed should be changed in the menu, and for the moment using command-line parameters.
Proposals for game.cfg:
flat
&max_fog
).type
,hill_height
,flat
, &max_trees
.Proposals for the command-line parameters:
-something
with--something
.gamemode
should be choices instead of integer.gamemode
->game-mode
, likesave-mode
.hide-fog
,hillheight
,worldsize
, &maxtrees
.width
,height
,show-gui
,draw-distance
,fullscreen
,save-mode
&motion-blur
to game.cfg.The text was updated successfully, but these errors were encountered: