-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
124 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"enu_version": "v0.1.99-190-gd71a4a25", | ||
"enu_version": "v0.1.99-200-gaf9f01a9", | ||
"format_version": "v0.9.2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
vmlib/worlds/tutorial/tutorial-2/data/build_uu8u87ua76wp0/build_uu8u87ua76wp0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"id": "build_uu8u87ua76wp0", | ||
"start_transform": { | ||
"basis": [ | ||
[1.0, 0.0, 0.0], | ||
[0.0, 1.0, 0.0], | ||
[0.0, 0.0, 1.0] | ||
], | ||
"origin": [-22.0, 0.0, 98.0] | ||
}, | ||
"start_color": "black", | ||
"edits": { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"enu_version": "v0.1.99-168-g6dbf6334", | ||
"enu_version": "v0.1.99-200-gaf9f01a9", | ||
"format_version": "v0.9.2" | ||
} |
2 changes: 2 additions & 0 deletions
2
vmlib/worlds/tutorial/tutorial-2/scripts/build_uu8u87ua76wp0.nim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
turn left | ||
level_menu(me, show_restart = false) |
79 changes: 60 additions & 19 deletions
79
vmlib/worlds/tutorial/tutorial-2/scripts/build_zdvcvo11pyd20.nim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,67 @@ | ||
let copy = """ | ||
proc restart* = | ||
player.flying = false | ||
sleep() | ||
player.open_sign = nil | ||
player.position = start_spot | ||
player.rotation = 180 | ||
|
||
proc stop_playing* = | ||
player.playing = false | ||
player.running = false | ||
|
||
# Inky: Isolation | ||
proc level_menu*(me: Build, show_restart = true) = | ||
let blurb = "`Inky: Isolation` is a simple survivial game created in Enu. You can see how it was made in the video [Inky: Isolation. A 90 minute game built with Enu and Nim](https://youtu.be/9e9sLsmsu_o)" | ||
|
||
let copy = \""" | ||
`Inky: Isolation` is a simple survivial game created in Enu. You can see how it was made in the video [Inky: Isolation. A 90 minute game built with Enu and Nim](https://youtu.be/9e9sLsmsu_o) | ||
# Inky: Isolation | ||
Click to [RESTART](nim://restart()) | ||
{blurb} | ||
""" | ||
right 3 | ||
- CLICK TO OPEN MENU | ||
var sign1 = say(copy, more = copy, width = 4, height = 2, size = 200) | ||
up 1 | ||
left 3 | ||
turn 180 | ||
down 1 | ||
""" | ||
|
||
me.right 3 | ||
|
||
var sign2 = say(copy, more = copy, width = 4, height = 2, size = 200) | ||
left 3 | ||
let sign1 = me.say(copy, width = 4, height = 2, size = 200) | ||
me.up 1 | ||
me.left 3 | ||
me.turn 180 | ||
me.down 1 | ||
|
||
let sign2 = me.say(copy, width = 4, height = 2, size = 200) | ||
me.left 3 | ||
|
||
forever: | ||
let return_action = if show_restart: | ||
"- [RETURN TO START](<nim://restart()>)" | ||
else: | ||
"" | ||
|
||
let toolbar_action = if player.playing: | ||
"- [SHOW TOOLBAR AND STOP PLAYING](<nim://player.playing = false;player.running = false;player.open_sign = nil>)" | ||
else: | ||
"" | ||
|
||
let more = \""" | ||
# Menu | ||
{blurb} | ||
{toolbar_action} | ||
{return_action} | ||
- [LOAD TUTORIAL](<nim://load_level("tutorial-1", "tutorial")>) | ||
- [CLEAR CHANGES AND RESET LEVEL](<nim://reset_level()>) | ||
""" | ||
sign1.more = more | ||
sign2.more = more | ||
sleep 1 | ||
|
||
level_menu(me) | ||
|
||
proc restart = | ||
sign1.open = false | ||
sign2.open = false | ||
player.position = start_spot | ||
player.rotation = 180 | ||
player.playing = true |