| Index: nacltoons/data/res/sample_game/level1.def
|
| diff --git a/nacltoons/data/res/sample_game/level1.def b/nacltoons/data/res/sample_game/level1.def
|
| index cdc12352c5ddaa10113f591f549a4ff1d5f2a51e..2a99ca89bd98fb9fe8a8098a2145d84468196411 100644
|
| --- a/nacltoons/data/res/sample_game/level1.def
|
| +++ b/nacltoons/data/res/sample_game/level1.def
|
| @@ -12,6 +12,7 @@ sprites:
|
| - { pos: [ 200, 480 ], image: star_image, tag: STAR1, sensor: true }
|
| - { pos: [ 200, 240 ], image: star_image, tag: STAR2, sensor: true }
|
| - { pos: [ 420, 90 ], image: star_image, tag: STAR3, sensor: true }
|
| + - { pos: [ 550, 250 ], image: star_image, sensor: true }
|
|
|
| shapes:
|
| # create three ramps for the ball to roll down
|
| @@ -21,11 +22,15 @@ shapes:
|
|
|
| - { type: line, color: [ 0, 50, 230 ], start: [ 20, 240 ], finish: [ 200, 50 ] }
|
|
|
| - # create a box
|
| - - { type: line, start: [ 500, 200 ], finish: [ 500, 300 ] }
|
| - - { type: line, start: [ 500, 300 ], finish: [ 600, 300 ] }
|
| - - { type: line, start: [ 600, 300 ], finish: [ 600, 200 ] }
|
| - - { type: line, start: [ 600, 200 ], finish: [ 500, 200 ] }
|
| + # Create a box made of 4 lines.
|
| + - { type: compound, pos: [ 500, 200 ],
|
| + children: [
|
| + { type: line, start: [ 0, 0 ], finish: [ 0, 100 ] },
|
| + { type: line, start: [ 0, 100 ], finish: [ 100, 100 ] },
|
| + { type: line, start: [ 100, 100 ], finish: [ 100, 0 ] },
|
| + { type: line, start: [ 100, 0 ], finish: [ 0, 0 ] },
|
| + ]
|
| + }
|
|
|
| # create a dynamic line anchored to the world at a fixed point.
|
| - { type: line, start: [ 220, 50 ], finish: [ 620, 50 ], dynamic: true, anchor: [ 420, 50 ] }
|
|
|