diff --git a/images/island1.png b/images/island1.png new file mode 100644 index 0000000..e1bd9bd Binary files /dev/null and b/images/island1.png differ diff --git a/images/sources/islands.pyxel b/images/sources/islands.pyxel new file mode 100644 index 0000000..49f52e3 Binary files /dev/null and b/images/sources/islands.pyxel differ diff --git a/loadGameManager.js b/loadGameManager.js index 8a89b1b..7a9d588 100644 --- a/loadGameManager.js +++ b/loadGameManager.js @@ -7,7 +7,8 @@ G.map = []; // List of island objects, generated/loaded and saved at game start, G.inventory = []; G.stats = { money: 100, - inventory: 5, // Maximum number of different things the inventory can hold. + inventory: 3, // Maximum number of different things the inventory can hold. + hold: 20, // Maximum number of each individual kind of thing in the inventory. speed: 1, hull: 1, popularity: 0, @@ -15,5 +16,7 @@ G.stats = { crew: 1, energy: 10 } +G.itemSheet = new Image(); +G.itemSheet.src = "images/items_sheet.png"; function loadGameManager () {} diff --git a/prefabs/islandPrefab.js b/prefabs/islandPrefab.js index 724dff9..91d43ee 100644 --- a/prefabs/islandPrefab.js +++ b/prefabs/islandPrefab.js @@ -1 +1,6 @@ -function islandPrefab() {} \ No newline at end of file +function islandPrefab() {} + +var pr_island = OS.P.Add("Island", { + solid: true, + imageSrc: "images/island.png" +});