item
Some checks failed
Build Dusk / run-tests (push) Failing after 1m31s
Build Dusk / build-linux (push) Failing after 1m8s
Build Dusk / build-psp (push) Failing after 1m32s

This commit is contained in:
2026-01-25 15:01:25 -06:00
parent e1d7b7308f
commit f71c271c97
17 changed files with 480 additions and 51 deletions

View File

@@ -1,6 +1,7 @@
module('platform')
module('input')
module('scene')
module('item')
-- Default Input bindings.
if PLATFORM == "psp" then
@@ -34,8 +35,17 @@ else
inputBind("q", "cancel")
inputBind("z", "ragequit")
end
end
end
sceneSet('map')
print("Backpack:", BACKPACK)
print('Has Potion?', inventoryItemExists(BACKPACK, 1))
inventoryAdd(BACKPACK, 1, 3)
print('Has Potion?', inventoryItemExists(BACKPACK, 1))
inventoryRemove(BACKPACK, 1)
print('Has Potion?', inventoryItemExists(BACKPACK, 1))
print('Potion Count:', inventoryGetCount(BACKPACK, 1))
print('Is Backpack Full?', inventoryIsFull(BACKPACK))
-- sceneSet('map')
-- mapLoad('map/testmap/testmap.dmf')