From 914168459cb40e9fe8b2f6795f30ecd43f368e58 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Thu, 7 Apr 2016 12:26:58 -0600 Subject: [PATCH] Started islands and items. --- images/island1.png | Bin 0 -> 1823 bytes images/sources/islands.pyxel | Bin 0 -> 1486 bytes loadGameManager.js | 5 ++++- prefabs/islandPrefab.js | 7 ++++++- 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 images/island1.png create mode 100644 images/sources/islands.pyxel diff --git a/images/island1.png b/images/island1.png new file mode 100644 index 0000000000000000000000000000000000000000..e1bd9bdbdb904facfab5588cd8bc9463ff0c11bf GIT binary patch literal 1823 zcmZux3rtgI6h61_6iUmAu_@Eu7_$Iovj(=gIOzq-25~^ya9a?yGm6z|U zrY<_2Geq3lF2e=`66|ynrB@_z(>clpL6Aq?93_<3l*&WF{eKFqE&I|xJ@@?Id7pbf z*QCBF63T@DAWBYBzYRbjkpKY?{bl7@vjKPm$?CX_qVAF2#*ccGVO&S;4YQOR(oQGv z^DI$4N8R=A^iA%J9Ss(OHFjY1*E_Fg9%l8phJTx1}>_cQ)9O93G%T&Spet<6grUPmI+A#gdq)=Mr4vVcX)1U_WRAmm&H=UWLXj>`9iYC*(l0C zsI3t{9c3qj3EzdGLnD_P_L#gVA||Bb>{G^1kIw5jRa-1^IrA0 zi5D24qX0}OQ!9&M&g;hoP=lO#b>f+<4pmOtxxGKr>!cN3Ydg9B#R3iFvz)_JYn^#W z)Di*rLj<@|A86#j7IV(>Te_y%es+k{ec+^{PPLdgayHCinDC;lmm>wZT?i-^%5;!J z8{Z?5h%#L008W$$Zld)8v&)p?b9S0f(aA6?-El@ zf^ERu;J0J+S+wDF{pgs;Zve7i{z(+JuDzfTazIzbPOt92j(Cgxu`Pp}M%811`qJqy zSU$5vu}m=4Q|*j^UaDUA^2BYGuUQxvPlz~2-rZDkPmHrg@a~63#`!EuuetSt0_%Ly zzCOR5VSnJF(d!lf+EL)VXjB%@R_gE#UV91)0tslOAPri4Mgsj-r6EZd0~R&`Y(1)`^JEYIE3`YGs0suG-r}m z#8-1%FZON5-(DX$^&1h3F`wA0BUuRpo^|3yw=dGO<9fYFoVPbN0QD| z%sqKyi)yz$iyz`Zmv6h%v<>kW=Mx5Nh#zNE$|tVG&c@Pun4Qn28SAVm^^zz0(2an7bqFEUi^$3n W$=AlH;DZJkPCYp>Rb3aaE&Uh0^s-q1 literal 0 HcmV?d00001 diff --git a/images/sources/islands.pyxel b/images/sources/islands.pyxel new file mode 100644 index 0000000000000000000000000000000000000000..49f52e33e573d6fcc9e5b98c45f4efb9ad2db1c0 GIT binary patch literal 1486 zcmZ`(X;70_6n*)UKms8^*fgVIsZ`pMm?AWakrE&vdqkz^KmbdODabBD&>?{A$`S!r z78lR}D#lQV0)i}Jp-M>vm6TmU5RfHMsYru=RA%~S&U-)ZJ#**2d+uR4!x7p5pirP9 zAZ6Fbc*=`Z7yv7905AZ6fRJD9{3HEIzeR)uACb6+BpPUgcdg)sL^Fk3QqNUR!U^NqM}XZFuSUi*3D*YTXHNZzIu} z!i5ypY5rh>NuH0s@ceo1f_uPg@sw;!_|$r#N7}b$i!$)T95sCKd{0a}UsA$;?EJ)Q znw>{wZ;DQ|nG``k*0khc?4R7d~L zb8ugmQv`p;OoJFV@G-nY)%z#B%c9xQDI3kLlMaHjxUgOf;XZ)h(nz4K_&o22%7HtwWN~x$LTTkrj#kvEqMF_|!mRQI zwD8^si1F3Le$RV7-3S3ttAL7PVnO~ftZ*_ZG?)#mg>0A87;X+~D)`lin&U1z55;S} z3Y3!KF5`st0RSaB+R^q#znr}2?AAiY(EBadnfW*H)W`uq%d_#2mvTi4QRgT_yDD>d z!hJ|&mp(6@uM%%gn-iS4zkEHgqb6GjZ_`!&oXd-E z4widGK*b}3d!zJz#@V2u3+N{(AXH^*K9xgTdHb8o4Md=0ledL-1rXlWD+Ro_*d`z) z5ReVwo&zfW2wq+BkrvPP11ML}m13V3f)0r%!>k3Fx*_q|2bISR3ll;e0SbX@NL_wF z;o%;#U_lyww$I^!Wqy@Qvjj2`Cy7z-V21I4RoV<7O7$U@o3cTd1{ZdCeRn9x&ofZA zR-s9jG{4Q9PCn#^+bNP=~p z$wXSEh}4;ujkI=0?b;{>W{c3s^1H?{(tZw9f27RSI3u4W8}}wn{uBc!6>yj zi9C7M@Xwt0n4(8AA9lr#R;Gk=V=h-0GGeM4cH})#p?yP$?`+BHgf3ISgKS(&tAGOR zsDitAkD)Od0SP$ruCN1Y#T3LeDNe)JgH~Hsg~fQz7~0=@X>sX_W9h7J7Dg~b#Y zV)PY%=%An9fP6j_4Rv7+IvSNW{le1igL{k@k}?f-s{055Bgk1S@t>)pc6L1vremJF zb;mX``PS{BSlAHv-jcW?!s##s7|t+A8~nc^DhhvbzO=`+%(aX8nI=>i?B_LI%Uj#$ aXWm7`7hN-)k)J*b4&Xqb$WceGCjJLW<6W5m literal 0 HcmV?d00001 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" +});