Class project

7/10/20

Inspiration:

- Rayman

-Lego Batman


- Simple controls

- 2.5D platform 

- Child friendly

- Pegi 7


30/11/20

Notes:

Timer till sunrise

Animal health power up

Enemies – ogres with garlic grenades, salt gun.

Levels – salt mine, flying as a bat, running away from humans

Puzzle level when in bat mode

The backgrounds will be 2D and characters 3D


Division of jobs:

-2D concept: Karen, Gabi

- Background art: Helen

-3D character modelling: Sean, Gabi, YiFan

-Coding: Sophie

-Level design: Sophie

-Asset compiling:


7/12/20

I am doing coding and level design for our project

The code that we need for the game:

Enemy movement - ogres going back and fourth

Player movement - vampire and bat

Player Health - health regen from eating animals

Garlic grenades damage health - 

Salt guns - using raycaster to detect player collision.

once character reaches the coffin that's the end of the level.

Timer- Countdown till sunrise

Scene management


level design

puzzle mode - 


3 levels:

Stage 1: A Village in a forest, Night time

Enemy: Villagers holding weapons - salt gun/holy water gun, garlic grenades, torches


Stage 2: Salt Mine

Enemy: Salt shards falling from the top of the mine (shards of different sizes) and Sunlight resulting from the shard gaps - use raycast in coding

Bat mode


Stage 3: Dungeon

Enemy: traps by ogres, sunlight


HealthBar:


using System.Collections;

using System.Collections.Generic;

using UnityEngine;

using UnityEngine.UI;


public class HealthBar : MonoBehaviour

{

    public Slider slider;

    public Gradient gradient;

    public Image fill;


    public void SetMaxHealth(int health)

    {

        slider.maxValue = health;

        slider.value = health;


        gradient.Evaluate(1f);

        fill.color = gradient.Evaluate(1f);

    }


    public void SetHealth(int health)

    {

        slider.value = health;

        fill.color = gradient.Evaluate(slider.normalizedValue);

    }

}

14/12/20
I edited Karen's main character to make it bend its knees so I could create an idle animation.

I asked for backgrounds to be removed so there was no white box around the assets when imported into the game. After getting no response I removed the main characters one myself so I could start the game.

15/12/20
Albert uploaded the player move script and a bat animation onto github. He also started removing backgrounds of assets when he is also doing coding and level design.

16/12/20
We had a zoom call with Kristaps. We changed the components on the character from 2D to 3D so it meets the specifications of the assignment, it was that due to not having 3D assets yet. 

Its hard being the level designer when I have the game open and the class doesn't speak on the call so I have to keep switching between pages to check the chat.

The difference between terrain and plain, you can sculpt terrains, you can make hills for the background.

18/12/20
We had a call with Kristaps today, only me and Helen were in the call. 

20/12/20
Karen made a healing animation


21/12/20
I messaged the group chat to ask for help. I said how I was struggling with adding health to the character when it collides with the sheep. I uploaded my version to GitHub and asked the others if they could help me. 


22/12/20
I tried  adding the healing animation video to play when the layer collides with the sheep. I keep getting the error that there's no definition for "play". I tried using a link https://docs.unity3d.com/2018.2/Documentation/ScriptReference/Video.VideoPlayer.html but I'm unsure what to put in my script that was relevant.

I found the reason why health wasn't being added to the player was due to having OntriggerEnter2D method when the sheep has a 3D collider on it. Easy mistake when using a script that was used in a 2D game.

23/12/20
I messaged the group chat for peoples email as I was struggling to upload a recent version of the game to GitHub because the file was too big, yet I zipped it. Jennifer is the only one who sent me her email.

24/12/20
I had to purchase an external hard drive because my laptop kept freezing and crashing due to no storage.

28/12/20
Some reason my game isn't working and needed to be put into safety mode. This removed the scene and game play. so when I took it out of safety mode I could still run the game. I transferred a recent zip to Jennifer and she said that there's no characters and that there are 72 errors while mine has 1.



Albert has uploaded his version of the game. he tried publishing it on GitHub but due to file size I suggested he WeTransferred it.

Jennifer is going to try making a level due to mine not working. 
She has asked in the group chat how to make mountains and hills, I told her the steps to add a terrain and using paint terrain you can build mountains by clicking on it and to use shift to make them smaller. 

I managed to get the component "healing animation" into the component but it still doesn't play when the player collides with the sheep



I downloaded Alberts version. Amazing. after running it I clicked on the player to check out the components. Then unity crashed and forced closed and said there's no fix available.
I reopened it and started adding the Sheep in there for the player to get more health.

To render the sheep I have to install the sprite renderer package. but to do this I need to sign in. I tried signing in multiple times and its still asking me to sign in..
I managed to download 2D sprite package which allowed me to cut out the sprite and place it within Alberts game. I copied my code over so that the player can gain health.




2/1/21

I started adding Gabis home page. however, whenever i tried opening a script or composing a new script my unity keeps freezing 

3/1/21
When  tried opening my project I got a message saying there was compiling errors and I had to enter in safety mode. I fixed my error in the CoffinOpen script where I made a mistake of referencing a game object from my 2D game. Once I fixed the error my unity project started working properly again and it allowed me to view the scene and game.


4/1/21
My coffin idles but doesn't open when triggered. I message the chat for help and Jennifer replied asking for the game. 

Alberts sent me a recent version of his game with props and postprocessing. So I asked him if he wanted me to add what I've done to his new version or he adds what he has done to my version that I sent him. I've updated Alberts game and sent a copy to him and others that provided their email. 


6/1/21
Albert has sent me his version with gradients in the UI elements so it is more visible. However he added it to what was from his old game not the one I updated so I will move what he done to the recent and ask him to update my version next time.
I check in on Jennifer to see if she managed to get the coffin animation to play when collided. 
I watched videos on how to pause the game. So that when the healing animation plays it would pause.

I noticed a few of Alberts enemies has 2D rigidbody so I fixed those and turned the ogres into prefabs.

I managed to fix the coffin animations and get the game to pause when the healing animation plays and asked the group chat for their emails so I can send it. Level 1 now fully works. I'm still waiting on blood bags so the player has a goal to collect collectables.

I tried exporting to build the game but there was multiple errors.

8/1/21
I asked the group for someone to make a heart to go next to the health slider as the current asset was supposed to be the collectable. Therefore I edit the image to add a red background as when I tried taking a slice out of sprite editor it overlapped with the other health bar design next to it.

11/1/21
We started making a presentation slide show. I had to redownload that game project I sent to the other due to the edited version I was working on for the collectables to work made the health slider to not go down when attacked by an enemy, so I reloaded my previous version to do the screen recording for the presentation. 
The game failed to build due to errors there were about 25 errors and I now got them down to 5, I managed to fix this by going in console to find that Alberts script referenced rigidbody2D still so I changed those and removed scenes that weren't in use. Now I exported the game and can send it to the others.
I used OBS to screen record. However the recent recording was extremely laggy but was fine during gameplay.
I messaged the chat to ask if anyone made a game won screen. 
I zipped my project and sent it to the others
unfortunately I resulted in hiding the collectables because I couldn't get it to work.
Helen sends me the won page so I add it into the game.

12/1/21
When the timer runs out it goes to the start menu
I changed the colour of the time left font to black to stand out more and added Helen's game won image. Then I sent it to the others as well as the presentation.




Resources:
Github - https://github.com/AlbertD31/GameprojectDMD/branches
How to pause the game for x seconds - https://answers.unity.com/questions/9878/freeze-game-using-timetimescale-0-wait-3-secs-and.html [accessed 6/1/21]

Comments

Popular posts from this blog

3D unity game