Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Level Completion Tracking Array #95

Merged
merged 3 commits into from
Apr 16, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Game/LifeQuest/Scripts/Inventory GUI/PlayerInventory.gd
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const SlotClass = preload("res://Scripts/Inventory GUI/Slot.gd")
const ItemClass = preload("res://Scripts/Inventory GUI/Items.gd")
#const for inventory slots
const INVENTORYSLOTS = 15

#initial inventory data
var inventory ={
0: ["Iron Sword", 1],
Expand All @@ -14,6 +15,18 @@ var inventory ={
3: ["Large Health Potion", 5],
#can add more starting items
}

#level completion data (Each time you beat a level, increment the count)

var levels = {
0: ["Level1" , 0], # Should be unlocked by default
1: ["Level2", 0], # Unlock if Level1 count > 0
2: ["Level3", 0], # Unlock if Level2 count > 0

# ...
# N: ["Level(n+1)", 0], # Unlock if Leveln count > 0
}

var equip = {
#0: [ , ],

Expand Down