Thursday, 28 March 2013

Priorities

High
 
Health aspect of gameplay:
  • Script including gradual health decrease including sharp decrease/death on impact for water, Alistair's trees and falling off cliff and health restoration on consuming fruit
  • Something on screen to show the players health. GUI Text should be fine for now.
Basic level AI gameplay:
  • GUI Text brought up when character controller is within vicinity of AI model explaining to player which part to find next
 


Medium
 
To reach our target of 5 different hallucination giving plants:
  • Only two (could get away with just one) more fruit plants need to be modelled (though the more we have the better c:)



Low

Aesthetic:
  • AI rigged and animated (texturing and rigging done - needs refinement and to be animated)
  • House pod textures fixed (mostly done)
  • Lighting adjustments (half done?)
  • Additional models in environment (Grass, bushes, trees, wreckage etc)
  • Skybox lines fixed
  • Refinement of some models (e.g. less boxy mangrove tree with better texturing)
  • Splash particle effect for bottom of waterfall
  • Shadows of fish/monsters/things in water - Particle system
  • Bubbles in swamp water
  • Getting the water less reflective to make the water look more murky
  • Fruit model (maybe untextured if we texture it in Unity?)
  • Seal off area?
  • Textured circuit board model
  • More models of parts


Completed

Explorable working environment
Refinement of models needing refinement (lily pads & mangrove tree)
Fish particle system in water
Start screen
Getting basic working prototype completed(Working script allowing the player to get fruit and trigger a hallucination effect - Having problems changing this via camera effects, will try with lighting instead - Place holder fruit added to Unity (basic sphere)
Script for whether parts are visible and picking up parts
Sound - background and effects
Changed waterfall texture to falling water instead of splash image.
Made models: clock, glass cup, toilet roll, girder debris, crates




Thought this might be helpful? Feel free to leave a comment or edit this with anything I've missed out or you feel should be a higher/lower priority :)

Wednesday, 27 March 2013

Picking Up Stuff Script!

using UnityEngine;
using System.Collections;
public class PickupObject : MonoBehaviour
{

 public int distanceToTestFor = 10;
 private int foodLayerMask = 1 << 8;  // food layer is on 8, so create a bitmask
 private Vector3 OFF_SCREEN_POSITION = new Vector3(0, -100, 0 );

 // Use this for initialization
 void Start () {

 }

 // Update is called once per frame
 void Update ()
 {
  RaycastHit hit;

  if ( Input.GetMouseButtonDown( 0 ) )
  {
   // cast a ray from the current screen position into the game world
   // to test if it hits an object that we can pick up
 
   if ( Physics.Raycast(Camera.main.ScreenPointToRay( Input.mousePosition ),out hit, distanceToTestFor, foodLayerMask ))
   {
//    hit.transform.position = OFF_SCREEN_POSITION; - this is only needed if you want to respawn the food
//    hit.transform.gameObject.SendMessage("Respawn");
  
    Destroy( gameObject );
   }
 
  }

 }

}

This is the script to be able to actually click on the food (plants) and be able to pick them up. We could use the pool of objects manager script from our coding lessons to respawn the food, but with this code, we will only be able to have lots of food sources which will then be "destroyed" when clicked on.  

I have put up the excersise we did in the coding session today on Dropbox, called excersise10.2, hopefully you will be able to see what we did with all the codes and that.

Plant Animations Update

Found a good way to animate the plants in todays coding session. Instead of animating the fruit disappearing in Maya and then splitting the animation in Unity we can have the plants modeled without fruit then make a sphere/capsule/etc in Unity (for the time being) with a transparent diffuse material and in animations lower the alpha so that the fruit will fade out after being clicked on. Should be easy to incorporate into the code as well.

If we have time we could model textureless (but UV mapped) fruit which could then have a transparent diffuse texture made in unity and applied to it so it looks more intersting than just a simple shape :)

Updated the lily pads - removed the fruit in the centre and added more polys so they are more rounded and look less like dog beds

Also made a circuit board which could be used as one of the parts to be picked up. This probably won't be used however as it'll be easier to use transparent/difuse in Unity which will work with the hallucinations better and could be replaced by a planar map with alpha channel as this would use less polys