Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • c22027697/group-project
1 result
Show changes
Commits on Source (2)
...@@ -16,6 +16,7 @@ global current_level ...@@ -16,6 +16,7 @@ global current_level
gas_starttime = "" gas_starttime = ""
time_penalty = False time_penalty = False
def list_of_items(items): def list_of_items(items):
time.sleep(0.1) time.sleep(0.1)
new_list = "" new_list = ""
...@@ -381,7 +382,9 @@ def main(): ...@@ -381,7 +382,9 @@ def main():
if location_boileroom["valve_open"]: if location_boileroom["valve_open"]:
gastime = current_time - gas_starttime gastime = current_time - gas_starttime
gastime_left = 180 - gastime.total_seconds() gastime_left = 180 - gastime.total_seconds()
if gastime_left < 0: if time_penalty:
gastime_left = gastime_left - 300
if gastime_left <= 0:
print("OH NO! The floor was filled with gas and you died") print("OH NO! The floor was filled with gas and you died")
break break
# Display game status (room description, inventory etc.) # Display game status (room description, inventory etc.)
......
from items import * from items import *
from map import * from map import *
inventory = [item_key] inventory = []
# Start game at the centre # Start game at the centre
current_room = locations["centre"] current_room = locations["centre"]
......