From 0781649227b4ed04f6a850e3ca4a84f1ce80da1f Mon Sep 17 00:00:00 2001 From: bleeptrack Date: Thu, 11 Feb 2021 11:19:22 +0100 Subject: [PATCH] grey cli hints in level description --- levels/intro/init | 3 +++ scenes/level.gd | 3 +++ 2 files changed, 6 insertions(+) diff --git a/levels/intro/init b/levels/intro/init index ded6150..c87f667 100644 --- a/levels/intro/init +++ b/levels/intro/init @@ -7,6 +7,9 @@ You've been accepted to time travel school! Yay! It's your first day! Your teach "To do anything with a time machine, you first need to initialize it! Go ahead, try it!" +[cli] +Instead of playing a card, you can slo type 'git init' directly into your terminal! + [setup] rm -rf .git diff --git a/scenes/level.gd b/scenes/level.gd index 72d7d2f..8877f1d 100644 --- a/scenes/level.gd +++ b/scenes/level.gd @@ -28,6 +28,9 @@ func load(path): description = monospace_regex.sub(description, "\n [code]$1[/code]", true) description = description.split("---") + var cli_hints = "\n\n[color=#787878]"+config.get("cli", "")+"[/color]" + description[0] = description[0] + cli_hints + congrats = config.get("congrats", "Good job, you solved the level!\n\nFeel free to try a few more things or click 'Next level'.") cards = Array(config.get("cards", "").split(" ")) if cards == [""]: