Skip to content

Commit 5d7fc59

Browse files
committed
Added living reward in basic example.
1 parent f7f2b35 commit 5d7fc59

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/python/basic.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
# If not specified default doom2 maps will be used and it's pretty much useles... unless you want to play doom.
4242
game.set_doom_scenario_path("../../scenarios/basic.wad")
4343

44-
# Set map to start (scenario .wad files can contain many maps).
44+
# Sets map to start (scenario .wad files can contain many maps).
4545
game.set_doom_map("map01")
4646

4747
# Sets resolution. Default is 320X240
@@ -74,6 +74,10 @@
7474
# Makes the window appear (turned on by default)
7575
game.set_window_visible(True)
7676

77+
78+
# Sets the livin reward (for each move) to -1
79+
game.set_living_reward(-1)
80+
7781
# Initialize the game. Further configuration won't take any effect from now on.
7882
game.init()
7983

0 commit comments

Comments
 (0)