Author: Colin Price

Story-Writing-Coding
With the WeeBee Engine
Book 1

My First Name My Memory Stick

Making a Scene

Load

File > Open > scene1.cde

1. Add a big tree at a place with coordinates 70, 10 like this
add(bigtree,70,10);

2. Now add a rock at coordinates 50, 10 like this
add(rock,50,10);

3. Now add a flower at coordinates 30, 20 like this
add(flower,30,20);

4. Now choose three other items of scenery and add them to your scene where you like. Try to make it beautiful.

Save

Jumping

Continue adding code

1. Add Grog to your scene, where you want him to be, e.g.
add(grog,50,10);

2. Now make him jump by adding this line of code
grog.jump();

3. Now make him jump again by adding this line of code
grog.jump(50);

4. Investigate and Experiment! Change the number 50 in the jump() function and see what happens.

Save

Spinning

Continue adding code

1. Add this line of code to make Grog spin
grog.spin();

2. Now add this line of code and see what happens
grog.spin(10);

3. Investigate and Experiment! Change the number 10 in the spin() function and see what happens.

4. Add this line of code and find out what it does
grog.flip();

Save

Flying Around

Continue adding code

1 Let’s get Grog to fly up into the sky
grog.flyto(70,50);

2. Now let him fly back to the ground
grog.flyto(20,15);

3. Now you choose two other places for your Grog to fly to.
Write code to get him there.

Save

More Moving Around

Continue adding code

1 Add this line of code and see what it does
grog.leapto(70,30);

2. Now find out what this does
grog.walkto(20);

3. Now find out what this does
grog.runto(50);

4. Finally find out what this does
grog.hopto(20);

Save

Changing Appearance

Continue adding code

1. Add this line of code to make FGroggrow
grog.grow(1.5);

2. Now add these two lines of code and see what happens
grog.rest();
grog.shrink(0.5);

3. Investigate and Experiment! Change the numbers in the grow and shrink functions and see what happens.

Save

Talking and Thinking

Continue adding code

1. Here’s how Grog can say something which appears as text
grog.says(“Howdy Partner”);

2. Grog can also express his thoughts on screen. Add these lines
grog.rest();
grog.thinks(“I don’t like that dragon”);

3. Investigate and Experiment! Write you own text. What do you want Grog to say? Perhaps something about his world? What do you think he wants to tell you ?

Save

Emotions == Feelings

Continue adding code

1. The WeeBees can show emotions. Try this
grog.feels(happy);

Here is a list of the emotions our WeeBees can show
happy
sad
puzzled
excited
scared
worried
angry
surprised
content

2. Choose an emotion from this list and code it to see what it does. Try several emotions. Which emotions do you like? Remember these!

Save

Putting it all Together

Load

File > Open > scene2.cde

1. Add scenery to create an attractive scene.

2. Choose one actor and add it to the scene. Then use what you have learned so far to make an animation. There should be lots of action, and perhaps some speech. Your actor could recount what it is doing.

Save

What I have learned so far

1. I can add scenery and a character to the scene

2. I can make my character jump

3. I can make my character spin

4. I can make my character fly to a location (X,Y)

5. I can make my character leap to a location (X,Y)

6 I can make my character walk and run to a location (X)

7. I can make my character grow and shrink

8. I can make my character talk and think

9. I can make my character show an emotion

10. I can make my character pick up a prop

#

#