diff --git a/vmlib/worlds/default/template/level.json b/vmlib/worlds/default/template/level.json index 9cb49b9f..3866363e 100644 --- a/vmlib/worlds/default/template/level.json +++ b/vmlib/worlds/default/template/level.json @@ -1,4 +1,4 @@ { - "enu_version": "v0.1.99-194-g239e6a93", + "enu_version": "v0.1.99-212-g8c783bf2", "format_version": "v0.9.2" } \ No newline at end of file diff --git a/vmlib/worlds/default/template/scripts/build_t7qa1f1xjzdlt.nim b/vmlib/worlds/default/template/scripts/build_t7qa1f1xjzdlt.nim index aaa00e0c..d43c2276 100644 --- a/vmlib/worlds/default/template/scripts/build_t7qa1f1xjzdlt.nim +++ b/vmlib/worlds/default/template/scripts/build_t7qa1f1xjzdlt.nim @@ -25,6 +25,8 @@ Welcome to level `{level_name()}` of world `{world_name()}`. - [Load Tutorial]() +- [Load Examples]() + - [Reset Level]() """ diff --git a/vmlib/worlds/tutorial/tutorial-1/level.json b/vmlib/worlds/tutorial/tutorial-1/level.json index 565f2a00..3866363e 100644 --- a/vmlib/worlds/tutorial/tutorial-1/level.json +++ b/vmlib/worlds/tutorial/tutorial-1/level.json @@ -1,4 +1,4 @@ { - "enu_version": "v0.1.99-207-g2ba00e00", + "enu_version": "v0.1.99-212-g8c783bf2", "format_version": "v0.9.2" } \ No newline at end of file diff --git a/vmlib/worlds/tutorial/tutorial-1/scripts/build_x7imlkqz4ux9l.nim b/vmlib/worlds/tutorial/tutorial-1/scripts/build_x7imlkqz4ux9l.nim index dcc1cec3..482fdad9 100644 --- a/vmlib/worlds/tutorial/tutorial-1/scripts/build_x7imlkqz4ux9l.nim +++ b/vmlib/worlds/tutorial/tutorial-1/scripts/build_x7imlkqz4ux9l.nim @@ -27,7 +27,7 @@ If you're not new, here are some other things to do: - [Help](https://ē.nu/docs/intro.html). Help! -- [Load Examples](). See some other things you can build with Enu. +- [Load Examples](). See some other things you can build with Enu. - [Load Inky: Isolation](). `Inky: Isolation` is a simple game made with Enu. You can see how it was built in diff --git a/vmlib/worlds/tutorial/tutorial-2/data/build_z4u2d6n7c4bur/build_z4u2d6n7c4bur.json b/vmlib/worlds/tutorial/tutorial-2/data/build_z4u2d6n7c4bur/build_z4u2d6n7c4bur.json index 07a61ec2..3171f697 100644 --- a/vmlib/worlds/tutorial/tutorial-2/data/build_z4u2d6n7c4bur/build_z4u2d6n7c4bur.json +++ b/vmlib/worlds/tutorial/tutorial-2/data/build_z4u2d6n7c4bur/build_z4u2d6n7c4bur.json @@ -20,7 +20,8 @@ [[0.0, 1.0, 0.0], [1, "black"]], [[1.0, 0.0, 0.0], [1, "black"]], [[1.0, 3.0, 0.0], [1, "black"]], - [[0.0, 2.0, 0.0], [1, "black"]] + [[0.0, 2.0, 0.0], [1, "black"]], + [[2.0, 0.0, 0.0], [1, "black"]] ] } } diff --git a/vmlib/worlds/tutorial/tutorial-2/level.json b/vmlib/worlds/tutorial/tutorial-2/level.json index b177e772..3866363e 100644 --- a/vmlib/worlds/tutorial/tutorial-2/level.json +++ b/vmlib/worlds/tutorial/tutorial-2/level.json @@ -1,4 +1,4 @@ { - "enu_version": "v0.1.99-205-g6f51bcb6", + "enu_version": "v0.1.99-212-g8c783bf2", "format_version": "v0.9.2" } \ No newline at end of file diff --git a/vmlib/worlds/tutorial/tutorial-2/scripts/bot_oy8kjgw7cmn5x.nim b/vmlib/worlds/tutorial/tutorial-2/scripts/bot_oy8kjgw7cmn5x.nim index a4becd2f..73972d60 100644 --- a/vmlib/worlds/tutorial/tutorial-2/scripts/bot_oy8kjgw7cmn5x.nim +++ b/vmlib/worlds/tutorial/tutorial-2/scripts/bot_oy8kjgw7cmn5x.nim @@ -1,28 +1,30 @@ color = green let hellos = [ - "Stop! You've been pre-selected for an exclusive timeshare offer!", - "Wait! I want to talk to you about the first rule of Fight Club!", - "Excuse me! Do you have a moment to talk about the Flying Spaghetti Monster?", - "Leeeroooooy Jeeeenkins!" + "Phil? Hey, Phil? Phil! Phil Connors? Phil Connors, I thought that was you!", + "I got friends of mine who live and die by the actuarial tables and I say, Hey! It's all one big crapshoot anyhoo.", + "Tell me, have you ever heard of single premium life? Cause I think that really could be the ticket for you.", + "Hey, hey! Now, don't you tell me you don't remember me because I sure as heckfire remember you.", + "Do you have life insurance? Because if you do you could always use a little more. Am I right or am I right or am I right? Right? Right?" ] let goodbyes = [ - "Never mind. You probably wouldn't understand.", - "Pleasure doing business with you.", - "Wait... who are you?", + "Uh, I gotta get going. Uh, it's good to see you, Phil.", + "Whoa-ho-ho! Watch out for that first step! It's a doozy!", + "Where are we going?", + "Phil, this is the best day of my life." ] - wander: speed = 3 forward 2..10 turn -45..45 - + - chase: speed = 6 turn player forward 5 - + - caught: say "" sleep 2 @@ -31,19 +33,24 @@ let goodbyes = [ loop: nil -> wander - (go_home, give_up) -> wander - caught -> go_home as give_up + (go_home, wander_home) -> wander + caught -> go_home + if start_position.far(20): - wander -> go_home - if player.near(10) and - start_position.near(30): - - # chase if the player is near and we're not too far from home base - (wander, go_home) ==> chase: - # this will be called once the command switches + # `go_home`, but we want to be able to interrupt and + # switch to `chase` if the player is near. Alias to + # `wander_home`, which switches the same as `wander`. + wander -> go_home as wander_home + + if player.near(10) and start_position.near(30): + # `chase` if the player is near and we're not too far + # from home base + (wander, wander_home) ==> chase: + # this will be called when the command switches say cycle(hellos) + if player.far(20): - chase -> go_home as give_up + chase -> go_home + if player.near(3): chase -> caught - \ No newline at end of file diff --git a/vmlib/worlds/tutorial/tutorial-2/scripts/build_z4u2d6n7c4bur.nim b/vmlib/worlds/tutorial/tutorial-2/scripts/build_z4u2d6n7c4bur.nim index 3098c2cc..8014572b 100644 --- a/vmlib/worlds/tutorial/tutorial-2/scripts/build_z4u2d6n7c4bur.nim +++ b/vmlib/worlds/tutorial/tutorial-2/scripts/build_z4u2d6n7c4bur.nim @@ -3,16 +3,6 @@ lock = true turn 180 let blurb = "Here are some things you can build with Enu. Play with their code, or build something new from scratch." -let menu = """ - -- [Load Tutorial]() - Leave this level and load the Enu tutorial. - -- [Load Inky: Isolation]() - Load `Inky: Isolation`, a simple game made with Enu. - -- [Clear Changes and Reset Examples]() - Reset and reload this level. Be careful, all of your changes will be lost. - -""" - let text = \""" # Examples @@ -20,7 +10,7 @@ let text = \""" {blurb} - Load Tutorial -- Load `Inky: Isolation` +- Load Default World - Clear Changes and Reset Examples """ @@ -31,12 +21,14 @@ let more = \""" {blurb} -- [Load Tutorial]() - Leave this level and load the Enu tutorial. +- [Load Tutorial]() - Leave this level and load the Enu tutorial. -- [Load Inky: Isolation]() - Load `Inky: Isolation`, a simple game made with Enu. +- [Load Default World](). - [Clear Changes and Reset Examples]() - Reset and reload this level. Be careful, all of your changes will be lost. +- [Load Inky: Isolation]() - Load `Inky: Isolation`, a simple game made with Enu. + """ say text, more, height = 4, width = 3 diff --git a/vmlib/worlds/tutorial/tutorial-3/level.json b/vmlib/worlds/tutorial/tutorial-3/level.json index 358a07d8..3866363e 100644 --- a/vmlib/worlds/tutorial/tutorial-3/level.json +++ b/vmlib/worlds/tutorial/tutorial-3/level.json @@ -1,4 +1,4 @@ { - "enu_version": "v0.1.99-201-g2c6fd644", + "enu_version": "v0.1.99-212-g8c783bf2", "format_version": "v0.9.2" } \ No newline at end of file