Skip to content

Kraiden/Create-a-Game-Source

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create-a-Game-Source

Source code for the Create a Game tutorial series found here: Watch Series

Post tutorial series fixes:

  • Problem: Sfx volume incorrect after choosing to play again
  • Solution: Add this method to the AudioManager class:
  void OnLevelWasLoaded(int index) {
  	if (playerT == null) {
  		if (FindObjectOfType<Player> () != null) {
  			playerT = FindObjectOfType<Player> ().transform;
  		}
  	}
  }
  • Problem: Player being awarded score multiple times for single enemy death:
  • Solution: In TakeHit method of Enemy class, replace "if (damage >= health) {" with "if (damage >= health && !dead) {"

About

Source code from my Create a Game tutorial series.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%