start renamed
This commit is contained in:
parent
a2cd885c7f
commit
233ab81967
|
@ -12,11 +12,11 @@ class Levels
|
|||
# "test",
|
||||
# --- introduction
|
||||
"steps", # ok
|
||||
"start", # ok
|
||||
"jump", # ok
|
||||
"move", # ok
|
||||
"electro", # ok
|
||||
"elevate", # ok
|
||||
"jump", # ok
|
||||
"fall", # ok
|
||||
# # --- easy
|
||||
"blocks", # ok
|
||||
"throw",
|
||||
|
|
40
coffee/levels/fall.coffee
Normal file
40
coffee/levels/fall.coffee
Normal file
|
@ -0,0 +1,40 @@
|
|||
|
||||
# 00000000 0000000 000 000
|
||||
# 000 000 000 000 000
|
||||
# 000000 000000000 000 000
|
||||
# 000 000 000 000 000
|
||||
# 000 000 000 0000000 0000000
|
||||
|
||||
module.exports =
|
||||
name: "fall"
|
||||
scheme: "red"
|
||||
size: [7,7,13]
|
||||
help: """
|
||||
$scale(1.5)mission:
|
||||
get to the exit!
|
||||
|
||||
jump on the stones to reach it
|
||||
|
||||
you can attach to a stone when falling
|
||||
if you move into its direction
|
||||
"""
|
||||
player:
|
||||
coordinates: [3,6,4]
|
||||
orientation: minusZdownY
|
||||
exits: [
|
||||
name: "exit"
|
||||
active: 1
|
||||
position: [0,0,3]
|
||||
]
|
||||
create: ->
|
||||
|
||||
s = world.size
|
||||
|
||||
world.addObjectAtPos 'Wall', world.decenter 0,0,1 - s.z/2
|
||||
world.addObjectAtPos 'Wall', world.decenter 0,0,3 - s.z/2
|
||||
world.addObjectAtPos 'Wall', world.decenter 0,0,6 - s.z/2
|
||||
world.addObjectAtPos 'Wall', world.decenter 0,1,10 - s.z/2
|
||||
world.addObjectAtPos 'Wall', world.decenter 1,0,10 - s.z/2
|
||||
world.addObjectAtPos 'Wall', world.decenter -1,0,10 - s.z/2
|
||||
world.addObjectAtPos 'Wall', world.decenter 0,-1,10 - s.z/2
|
||||
|
|
@ -7,21 +7,22 @@
|
|||
|
||||
module.exports =
|
||||
name: "jump"
|
||||
scheme: "red"
|
||||
size: [7,7,13]
|
||||
help: """
|
||||
jump on the stones
|
||||
to reach the exit.
|
||||
scheme: "default"
|
||||
size: [7,5,11]
|
||||
help: """
|
||||
$scale(1.5)mission:
|
||||
get to the exit!
|
||||
|
||||
you can attach
|
||||
to a stone
|
||||
when falling
|
||||
if you move
|
||||
into its direction.
|
||||
to get to the exit,
|
||||
jump on the stone
|
||||
to jump,
|
||||
press "$key(jump)" while moving
|
||||
to move, press "$key(move forward)" or "$key(move backward)"
|
||||
to turn, press "$key(turn left)" or "$key(turn right)"
|
||||
"""
|
||||
player:
|
||||
coordinates: [3,6,4]
|
||||
orientation: minusZdownY
|
||||
coordinates: [1,0,4]
|
||||
orientation: minusXupY
|
||||
exits: [
|
||||
name: "exit"
|
||||
active: 1
|
||||
|
@ -29,13 +30,7 @@ module.exports =
|
|||
]
|
||||
create: ->
|
||||
|
||||
s = world.size
|
||||
|
||||
world.addObjectAtPos 'Wall', world.decenter 0,0,1 - s.z/2
|
||||
world.addObjectAtPos 'Wall', world.decenter 0,0,3 - s.z/2
|
||||
world.addObjectAtPos 'Wall', world.decenter 0,0,6 - s.z/2
|
||||
world.addObjectAtPos 'Wall', world.decenter 0,1,10 - s.z/2
|
||||
world.addObjectAtPos 'Wall', world.decenter 1,0,10 - s.z/2
|
||||
world.addObjectAtPos 'Wall', world.decenter -1,0,10 - s.z/2
|
||||
world.addObjectAtPos 'Wall', world.decenter 0,-1,10 - s.z/2
|
||||
world.addObjectAtPos 'Wall', world.decenter 0,0,-2
|
||||
world.addObjectAtPos 'Wall', world.decenter 0,0,-4
|
||||
world.addObjectAtPos 'Wall', world.decenter 0,0, 1
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
|
||||
# 0000000 000000000 0000000 00000000 000000000
|
||||
# 000 000 000 000 000 000 000
|
||||
# 0000000 000 000000000 0000000 000
|
||||
# 000 000 000 000 000 000 000
|
||||
# 0000000 000 000 000 000 000 000
|
||||
|
||||
module.exports =
|
||||
name: "start"
|
||||
scheme: "default"
|
||||
size: [7,5,11]
|
||||
help: """
|
||||
to get to the exit,
|
||||
jump on the stones.
|
||||
|
||||
"w" or "d" to move.
|
||||
"a" or "s" to turn.
|
||||
"space" to jump.
|
||||
"""
|
||||
player:
|
||||
coordinates: [1,0,4]
|
||||
orientation: minusXupY
|
||||
exits: [
|
||||
name: "exit"
|
||||
active: 1
|
||||
position: [0,0,3]
|
||||
]
|
||||
create: ->
|
||||
|
||||
world.addObjectAtPos 'Wall', world.decenter 0,0,-2
|
||||
world.addObjectAtPos 'Wall', world.decenter 0,0,-4
|
||||
world.addObjectAtPos 'Wall', world.decenter 0,0, 1
|
||||
|
Loading…
Reference in New Issue
Block a user