more assets have been added to the Pods intorior, decorative ones to make it more homely.
so far we have a transparent Glass, Tolet role and an Alarm Clock which is the essential stuff at the moment.
JJ Made the glass
Alistair Made the clock
JJ Made the toilet roll.
Friday, 10 May 2013
Update
Alistair has added a crosshair so that the mouse locks in at the centre of the screen and made assets
JJ has edited sound effects and made assets
Alice has added a health bar, but we are having problems trying to get it so the health gradually decreases, goes up on eating a fruit and goes down on being near the tree's dealing damage or in the water.
I have added extra lighting to the pod and other areas like the AI and cave. Edited the waterfall texture so its showing water falling instead of a spray effect. I found some more sounds and added them to the game however only the ones attached to the first person controller are currently working and we'll need to add the door and eating effects to the code. Added in the assets JJ and Alistair made. Added code for a pause menu but it doesn't completely work with our current code/properly.
Play a sound on Click code
I've found two codes where you click an object and a sound will play:
System.Media.SoundPlayer player = new System.Media.SoundPlayer(@"c:\mywavfile.wav"); < change this part to whatever sound we want
player.Play();
player.Play();
private void Button_Click(object sender, EventArgs e)
{
using (var soundPlayer = new SoundPlayer(@"c:\Windows\Media\chimes.wav")) {
soundPlayer.Play(); // can also use soundPlayer.PlaySync()
}
}
{
using (var soundPlayer = new SoundPlayer(@"c:\Windows\Media\chimes.wav")) {
soundPlayer.Play(); // can also use soundPlayer.PlaySync()
}
}
More Sound
More sound has been added, edited in Adobe Audition so we have out desired effects. also colaboreted with Rebecca Toop with her Audeo files she added, so now we have a sound for when the player eats and walks and so on.
also creating geniral 3D objects for inside the Pod at the moment since it looks qite bear in some arias.
also creating geniral 3D objects for inside the Pod at the moment since it looks qite bear in some arias.
Health Bar Code
- using UnityEngine;
using System.Collections;
public class PlayerHealth : MonoBehaviour {
public int maxHealth = 100;
public int curHealth = 100;
public float healthBarLength;
// Use this for initialization
void Start () {
healthBarLength = Screen.width /2;
}
// Update is called once per frame
void Update () {
AddjustCurrentHealth(0);
}
void OnGUI(){
GUI.Box (new Rect(10,10, healthBarLength, 20), curHealth + "/" + maxHealth);
}
public void AddjustCurrentHealth(int adj)
{
curHealth += adj;
if(curHealth <0)
curHealth = 0;
if(curHealth > maxHealth)
curHealth = maxHealth;
if(maxHealth <1)
maxHealth = 1;
healthBarLength =(Screen.width /2) * (curHealth / (float)maxHealth);
}
}
I put this code in and the health bar is being shown in the top left hand corner of the screen. I am having trouble at the moment getting it to decrease everytime you go near Alisairs tree's or if you go in the water. It probably needs an if, else statement, Cat when your are next in i'll show you what happens and you might be able to help me get it to work :- )
Yeah the unityanswers this code came from doesnt have any solutions I doubt we are actually going to get this to work
Yeah the unityanswers this code came from doesnt have any solutions I doubt we are actually going to get this to work
Wednesday, 8 May 2013
Meeting 08/05/2013
We've discussed adding a pause screen since our game relies heavily on time. We could also use the AI code to make enemies which could appear when you eat a certain plant. We could also have objects which cause damage that disappear when a certain plant is eaten meaning the player will have to memorise where these are and avoid the area they are in adding more layers of gameplay.
Tasks:
Alistair: Unity adjustments
Cat + Alice: Adding health code, GUI text, AI GUI text code, copying AI code for enemies
(You guys will need to split this between you)
JJ: Adjusting volume of sound effects in Audition and saving as .wav's
Toop: Make enemies/harmful objects?
Tasks:
Alistair: Unity adjustments
Cat + Alice: Adding health code, GUI text, AI GUI text code, copying AI code for enemies
(You guys will need to split this between you)
JJ: Adjusting volume of sound effects in Audition and saving as .wav's
Toop: Make enemies/harmful objects?
A.I Update ( Textureing )
Has JJ was having truble with textueing the A.I I volanterd to do the textureing as you can see by the UV map this it have the best in the world but it needed to be done so I got the detail out where it was needed and it looks ok.
Below are some of the images of the A.I in maya and a rendered picture at the bottom of this post.
Tarrain Update
Here are three of the plants that will make you screen change colour below is one of the three changes.
Below is when you would eat the Blue flower.
Above is a view of the canyon.
Above is the A.I textured in the enviroment.
Here are some fish underwater.
This is the inside of the pod that has had some lights added and also the texture of the mirror has been remove and the textures being in the right place has been conpleted and as you can see it looks alot of frindly and the last textures.
Subscribe to:
Posts (Atom)