diff --git a/columbus/env.py b/columbus/env.py index 2e09ad7..0821186 100644 --- a/columbus/env.py +++ b/columbus/env.py @@ -46,7 +46,7 @@ def parseObs(obsConf): class ColumbusEnv(gym.Env): metadata = {'render.modes': ['human']} - def __init__(self, observable=observables.Observable(), fps=60, env_seed=3.1, master_seed=None, start_pos=(0.5, 0.5), start_score=0, speed_fac=0.01, acc_fac=0.04, die_on_zero=False, return_on_score=-1, reward_mult=1, agent_drag=0, controll_type='SPEED', aux_reward_max=1, aux_penalty_max=0, aux_reward_discretize=0, void_is_type_barrier=True, void_damage=1, torus_topology=False, default_collision_elasticity=1, terminate_on_reward=False, agent_draw_path=False, clear_path_on_reset=True, max_steps=-1, value_color_mapper='tanh'): + def __init__(self, observable=observables.Observable(), fps=60, env_seed=3.1, master_seed=None, start_pos=(0.5, 0.5), start_score=0, speed_fac=0.01, acc_fac=0.04, die_on_zero=False, return_on_score=-1, reward_mult=1, agent_drag=0, controll_type='SPEED', aux_reward_max=1, aux_penalty_max=0, aux_reward_discretize=0, void_is_type_barrier=True, void_damage=1, torus_topology=False, default_collision_elasticity=1, terminate_on_reward=False, agent_draw_path=False, clear_path_on_reset=True, max_steps=-1, value_color_mapper='tanh', width=720, height=720): super(ColumbusEnv, self).__init__() self.action_space = spaces.Box( low=-1, high=1, shape=(2,), dtype=np.float32) @@ -54,14 +54,14 @@ class ColumbusEnv(gym.Env): observable = parseObs(observable) observable._set_env(self) self.observable = observable - self.title = 'Untitled' + self.title = 'Columbus Env' self.fps = fps self.env_seed = env_seed self.joystick_offset = (10, 10) self.surface = None self.screen = None - self.width = 720 - self.height = 720 + self.width = width + self.height = height self.visible = False self.start_pos = start_pos self.speed_fac = speed_fac/fps*60 diff --git a/configs/Example_Units.yaml b/configs/Example_Units.yaml index c5ba7d7..b7bc6ca 100644 --- a/configs/Example_Units.yaml +++ b/configs/Example_Units.yaml @@ -6,7 +6,7 @@ name: "DEFAULT" # ct: 100ct = Full Width / Height # rx: pixels relative to width # ry: pixels relative to height -# au: 1au = 36px +# au: 1au = 36px (https://knowyourmeme.com/memes/absolute-unit) # # When no unit is given, we use the folowing defaults # (compatible with legacy behavior)