Skip to content

JeongBC/Escape-SpaceShip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Escape-SpaceShip

This game is Fps escape game. player use gun and time slow ability.


Scene

main menu

stage 1

enemy type - robot / use take gun script and

stage 2

enemy type - zombie , robot / use navagent that can chase player.

end scene

use shake camera script and change camera position script


Important code(script)

slowMotion script

this slow motion code active when player input right mouse down. slow time first and fast time more and more to normal time speed.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class slowMotion : MonoBehaviour {
	public AudioSource playerSound;
	public AudioClip slowSound;
	public float slowdownFacotr = 0.05f;
	public float slowdownLength = 2f;


	void DoSlowmotion()
	{
		Time.timeScale = slowdownFacotr;
		Time.fixedDeltaTime = Time.timeScale * .02f;

	}
	// Update is called once per frame
	void Update () 
	{
		Time.timeScale += (1f / slowdownLength) * Time.unscaledDeltaTime;
		Time.timeScale = Mathf.Clamp (Time.timeScale, 0f, 1f);
		if (Input.GetButtonDown ("Fire2")) {
			playerSound.PlayOneShot (slowSound);
			DoSlowmotion ();
		}
	}
}

Play Game

how to play

Move - W A S D / Shoot gun - left mouse / Ability - right mouse / Jump - space

Download link

Google Drive: Download Game

Goal

  1. Go ammor room and take weapon
  2. Kill enemy
  3. Escape from Space Shuttle

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published