From 8df3848f0db84834b69194b60b792ae2bb8cc0ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?micha=C5=82?= Date: Mon, 18 Apr 2016 16:10:14 +0200 Subject: [PATCH] Added living reward in basic example. Former-commit-id: 5d7fc5998849ad629ef6873969843935011872c8 --- examples/python/basic.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/python/basic.py b/examples/python/basic.py index 2cef62f05..adc52cddb 100755 --- a/examples/python/basic.py +++ b/examples/python/basic.py @@ -41,7 +41,7 @@ # If not specified default doom2 maps will be used and it's pretty much useles... unless you want to play doom. game.set_doom_scenario_path("../../scenarios/basic.wad") -# Set map to start (scenario .wad files can contain many maps). +# Sets map to start (scenario .wad files can contain many maps). game.set_doom_map("map01") # Sets resolution. Default is 320X240 @@ -74,6 +74,10 @@ # Makes the window appear (turned on by default) game.set_window_visible(True) + +# Sets the livin reward (for each move) to -1 +game.set_living_reward(-1) + # Initialize the game. Further configuration won't take any effect from now on. game.init()