Skip to content

Commit

Permalink
✍🏻 GameCreator UI for Mining/Inventory in #8 #7
Browse files Browse the repository at this point in the history
  • Loading branch information
Gizmotronn committed Nov 18, 2021
1 parent 5d17259 commit a781f5a
Show file tree
Hide file tree
Showing 4,783 changed files with 8,997,359 additions and 158,938 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified Alien World/.DS_Store
Binary file not shown.
Binary file modified Alien World/Assets/.DS_Store
Binary file not shown.
21 changes: 17 additions & 4 deletions Alien World/Assets/CharacterController/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,31 @@
using System.Collections.Generic;
using UnityEngine;

[System.Serializable]
public class Player : MonoBehaviour {
public int health = 5;
public int experience = 40;
public int currency = 1000;

public QuestGoal questGoal;

[SerializeField] public int questCurrentAmount;

public Quest quest; // Turn this into a list/array to add multiple quests at a time (or there can be multiple types of quests). This isn't necessarily to avoid having to deal with lists, but since there will be different quest types we obviously need to have them set as different variables, not in the same list
// public NPCQuest npcquest; // an e.g.

public void QuestBattle () {
// Scaffolding for the battle system
health -= 1;
experience += 2;
currency += 5;
if (quest.isActive) {
quest.goal.EnemyKilled();
if(quest.goal.IsReached()) {
experience += quest.experienceReward;
currency += quest.currencyReward;
quest.Complete();
}
}
}

public void GatherMaterial() {
questCurrentAmount++;
}
}
8 changes: 8 additions & 0 deletions Alien World/Assets/Gizmos.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Alien World/Assets/Gizmos/GameCreator.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Alien World/Assets/Gizmos/GameCreator/Actions.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
117 changes: 117 additions & 0 deletions Alien World/Assets/Gizmos/GameCreator/Actions/actions0.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
117 changes: 117 additions & 0 deletions Alien World/Assets/Gizmos/GameCreator/Actions/actions1.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a781f5a

Please sign in to comment.