Home  || Previous || Next

Design Decisions

For Document see Google.DOC

Use pre-existing designs or start from scratch?

Claudia’s:  Bucket Girl and the Sand Castle // Jump when hit bucket (sand jet pack) or float in bucket, paddle with spade. LucasArts Camera?

How do we make her jump?

What else do we need: Spade, animation of hitting head, environment, move cycle.

Is the spade controlled by the mouse? Where we hit her head – and she super jumps? Bucket Girl continuous running…

Or do we control Bucket Girl? and press button to super jump spade hit?

Trailing Different Camera Angles

Movement and JetPack Code

using UnityEngine;
using System.Collections;

public class Movement : MonoBehaviour {

public float movementSpeed = 10f;
public float rotationSpeed = 60f;
public string state = “grounded”;

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {

float horiz = Input.GetAxis(“Horizontal”) * rotationSpeed * Time.deltaTime;
transform.Rotate(0,horiz,0);
float vert = Input.GetAxis(“Vertical”) * movementSpeed * Time.deltaTime * 0.4f;
transform.Translate(0,0,vert);

if(Input.GetKey(“space”)) {

state = “jetpacking”;
}
else if(!Input.GetKey(“space”)) {

state = “grounded”;
}

if(state == “jetpacking”) {

transform.Translate(0, 1f, 0);
}

if(Input.GetKey(“r”)) {

Quaternion righting = Quaternion.Euler(0, 0, 0);
transform.rotation = righting;
}

}
}

Making the character stop rotating:

Screen Shot 2015-10-20 at 13.32.24

New code for movement:

Screen Shot 2015-10-20 at 13.32.35

Set higher speed for rotation, to make smoother movement, and larger jump speed to have more lift (but this is tamed by multiplying it by time.DeltaTime)

Screen Shot 2015-10-20 at 13.33.31

Adding a cool down – can’t jump twice under 2 seconds:

Screen Shot 2015-10-20 at 14.25.09 Screen Shot 2015-10-20 at 14.25.03

EDIT FOR CODE (with help from James)

Screen Shot 2015-10-22 at 12.25.13

Now there is a jump and cool down:
Screen Shot 2015-10-22 at 12.27.59 Screen Shot 2015-10-22 at 12.27.51

Trial different camera angles:

Trial Change in Tank controls to add mouse:
Screen Shot 2015-10-22 at 12.37.34

Use w to move forwards and mouse to control horizontal motions.

Claudia prefers mouse based control. Bobbie doesn’t. Bobbie is coding, so she will practice with control.

NEXT – Environment and Level Design

Reference Photos:

Can we visually show the sand bucket jet pack is powered up? Textures?

Flaring hair, settles when repowered.

Add incentives *sparkle* to lead people around level?

Creating Levels:

Level ScreenShots:

Feedback:

Path or shinney things to follow, as a tutorial level?

 

Home  || Previous || Next

Advertisements