From 84f024d62cf19251e58f91d6bc5f50409fcf8cfa Mon Sep 17 00:00:00 2001 From: walterhiggins Date: Sat, 9 Feb 2013 15:08:20 +0000 Subject: [PATCH] box example doc updated --- docs/api.md | 5 +++++ src/main/javascript/drone/drone.js | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/docs/api.md b/docs/api.md index c50e307..cb5fd1c 100644 --- a/docs/api.md +++ b/docs/api.md @@ -114,6 +114,11 @@ Example ------- To create a black structure 4 blocks wide, 9 blocks tall and 1 block long... + box(blocks.black, 4, 9, 1); + +... or the following code does the same but creates a variable that can be used for further methods... + + var drone = new Drone(); drone.box(blocks.black, 4, 9, 1); ![box example 1](img/boxex1.png) diff --git a/src/main/javascript/drone/drone.js b/src/main/javascript/drone/drone.js index 21e0f89..ad44eb0 100644 --- a/src/main/javascript/drone/drone.js +++ b/src/main/javascript/drone/drone.js @@ -121,6 +121,11 @@ Example ------- To create a black structure 4 blocks wide, 9 blocks tall and 1 block long... + box(blocks.black, 4, 9, 1); + +... or the following code does the same but creates a variable that can be used for further methods... + + var drone = new Drone(); drone.box(blocks.black, 4, 9, 1); ![box example 1](img/boxex1.png)