item
This commit is contained in:
@@ -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')
|
||||
Reference in New Issue
Block a user