From a62d96ad0521b064e6ef61a6f80888e27966502b Mon Sep 17 00:00:00 2001 From: Andy Belle-Isle Date: Tue, 1 Oct 2019 02:01:20 -0400 Subject: [PATCH] Started texture based world definitions --- Assets/world/world1/layers/0/hitbox.png | Bin 0 -> 3972 bytes Assets/world/world1/layers/0/normal.png | Bin 0 -> 4196 bytes Assets/world/world1/layers/0/texture.png | Bin 0 -> 4573 bytes Assets/world/world1/layers/1/hitbox.png | Bin 0 -> 3972 bytes Assets/world/world1/layers/1/normal.png | Bin 0 -> 4196 bytes Assets/world/world1/layers/1/texture.png | Bin 0 -> 4573 bytes Assets/world/world1/layers/deco/normal.png | Bin 0 -> 4243 bytes Assets/world/world1/layers/deco/texture.png | Bin 0 -> 7285 bytes Makefile | 1 - Scripts/world.lua | 23 +++++++++- src/script.cpp | 7 ++- src/world.cpp | 25 +++++++++++ src/world.hpp | 47 ++++++++++++++++++++ 13 files changed, 100 insertions(+), 3 deletions(-) create mode 100644 Assets/world/world1/layers/0/hitbox.png create mode 100644 Assets/world/world1/layers/0/normal.png create mode 100644 Assets/world/world1/layers/0/texture.png create mode 100644 Assets/world/world1/layers/1/hitbox.png create mode 100644 Assets/world/world1/layers/1/normal.png create mode 100644 Assets/world/world1/layers/1/texture.png create mode 100644 Assets/world/world1/layers/deco/normal.png create mode 100644 Assets/world/world1/layers/deco/texture.png diff --git a/Assets/world/world1/layers/0/hitbox.png b/Assets/world/world1/layers/0/hitbox.png new file mode 100644 index 0000000000000000000000000000000000000000..0a9a37e8d2ccd31f3428e47d63d8a1cf45e35e46 GIT binary patch literal 3972 zcmeH}`BM|w7ROIQ5=cTID2qf8Fd#Z&j6x)`B^aWj5KzZ$M2L*+gRBb37C=A*L3EIP z5d<@%PoOM>CtHg$K8sC86jX!=2u~*ZP#9nU;dRT*UobySm0i`9zMq_X>zwcT-oBmU zEZRk*Fem^(v)^sEA3zCx#DNkC{W0cU9YzO)j9d zI<0QU%D?+Y7D=E^V7qlCt!?o@h` zq38IW(wuW+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HAB2gIQtPzS>_~HfuirnlInGSM=VvOUD->D8bUKebdr_37fe`KZtH(1B@X!WY0Xo5 zmE6)T*raAT1@2b6J!nj~kQI`8KD8}&Q;hPktWKF*;w6nQetHuVw)n9VUoiffDQl%3 zeu|p(Nx=+oZ~yZ0C)|H+aUugioLC+TRJ7s-Q(fqN?pDv?TN7mL7$QVA2+*a{9yO@4 zS(cnBLTBBKvP3XTg6Vrbv`y$=yJ zEQ!c%w0)6o3rU)2XZ%An;J0VdmK=Tn1z{0@TWY|@OcP~oibD?1Bs4NgyolnJI8Zi0 zqqRq?=kLezAnLSN-%T9z_f~Kixm^;{Vu`w!y&{AScdCvF28ZQmH$!+z0LapIwv^x@ z(4m+J2*bMgGeew2kZowfNlXVhAjyjE4I6Y@m;|`>xaeY|C;j>M8v{g1E6X5JPe1{r zX{rxErz4#fk}~;D7i4dYM(}(l0je$*F+g&&ukyssAXfAuMBO{*LhwEhP;?`f1Y)~s zznr7bZ8B`aV6pL>3uP7hfj8BP-hH*Xe%{5_#pa;8*+7dxS_xv}oGZW~k3rATYaydi zoe&jC{?l5Y}PS=hf2w<0Q<%q}N$+?37-1Nr0?PNI531bkIHvzJH>IS-1So3C+ zD}e4RH&b5aiWcq~ireBlMvvQMLX1$dISvOfyZ%RvN?&inqf-pZxeXS`*$_0Mw^Kws9u zTxKBoWBIL(4*8Nl831AVRQ?M8Qsk>3m=a$d^2HDTKrAy= literal 0 HcmV?d00001 diff --git a/Assets/world/world1/layers/0/normal.png b/Assets/world/world1/layers/0/normal.png new file mode 100644 index 0000000000000000000000000000000000000000..bc2ede6b17d6a7f2b5b0b8ab84643562b4db3b7d GIT binary patch literal 4196 zcmeHK`#+TH7GE>QFec*~nOu{oCe4m&N-@Gg<#H+~Hf17)lqPq%4JCyw)hCxtv}?0> zTgBdTE4J6^qO&oRWJ|<^Oq~?=6l&0U=AHZr=ZAAXJ)h5fX1(8Mt@S)>eb@86>pkP? z?yRapR{;Q3R~N@!0Ln-tfHE2VncL+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zis<;-x$|-9Owsh`sowd7xdrPQ?v6LNank++NOz-A literal 0 HcmV?d00001 diff --git a/Assets/world/world1/layers/0/texture.png b/Assets/world/world1/layers/0/texture.png new file mode 100644 index 0000000000000000000000000000000000000000..149273f21cadd69083c0a5dd759a708da706f465 GIT binary patch literal 4573 zcmeHKhg(z07N46yLO`m5h%7~P;n_d|Wf3HbET9IWtcVSwVt@n$DJmdvBML5}sH{|x zSO_RBt3ael+^ii8JxB|RiqZu_HSi{3eeZABZ})s(a%axD=giFS{ASMFU&&7Pit<|W z002cthi$t7kb_MG$l>6_&?c!HcFz0Q+L9e@ZS?{I{i!~_#{e+88gbRyfk)JS>Tw`z z|4JoS71dwK8LKbES04+mwp3}gR% z+T>VgxBZ*PZg17@Cnsz=JHp#5vEPc-Txv?z5t~*UT)&`@+8?KK#?BB|cTpu~IkorU z?UZvplV!09g{Rit{1`FFugm(d6E`XIehF)-##hU)jjXJoPQ%OW+jmtm7ba*0Z+UND z@Oo|4iM1B}J*lb&8EFQWRTR!^BppamSG<1un#KJbt&cONYggUiSmb8O)7ulPOl~wJ zB|mZs0)*8R)nzg-awympZWrqAUp=zSZsvq?R8{xlmn#zK*m&(xBir*ICZEi8o#Id< zkF=BIpEJf6x6Nwe&XyA^X>G#iC5LPf44-?wc`TXE9W(sW#L}?FlyMjr`&d5?A<3JF z!o;;pt{KRBPmhLniQ^ytM`5fTb88QW^K7$|E@~EXy#i5EVqC=>D-5kDzf;VK;+sv+ zAU^hicLZzK+=O|-9ob>O4L+ev*_KDa2O+>=Ul0Im4J1G0be7FYsKf_5lI-x^1RZtd zrQ?5?e}Sqc!FF!Jw*G#8$BqXB+rVRogO7RYo$?9x*0Xmck@qr`76YJMb66xxe(_Yhg1pk*gkY>0{r>QR?Yx&33VVDsT#TM9azK}F?%?qEkw|Y9Y&|E! z3yt?5!ozX?mA^Rx2JTiE=@OWIWrJrT#bb+Zj*gED-YS6dpH9n2EyN))KQ?yw+~}0Z zMGl~q--abeheVi>^S-d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Fy z6VJ|Os>dBKpN9#eAUx9$5Z7IbD_RfOtb5o<9;^qn4X*q&PO)J0GrhIfPh5d$8UW%6 zQd}Eku~#We7l7)v{e6rvE5ETvk#E3GRlt1lY@6j0kn;Ml4FK)b&LpAo7si9|LpB~@ z@GD#s-#LM?JL59PbfuOC@aBJHRBeH9RtxxT)lKWe48-J8;qP8kZ!yD02ryd>h;`bN zSil{rZt5LM9Qzq?H4$)IOM|2U8u<)3f^Sc-RZ8}r7UM680EGqNg75yYw8bDNTIdJE z&ZuH?vc2k!5#Rz%{_bUv4`BO;S~%}l`ZDB`LwCI};FB6)rs7!HR}oZfF@^_dU}!3< zde(7B2DHNpacRM#`f8+z+XX*vUU@~97(>Llrb;?U{uhOw$5)zPu)PejQzeJS_R-m% z?#!j;Z)2jP0EGazXsB9^_XlVJk4-nW#e}K?_HqQ&*0Ogk%)Tn|pm`oIiKkcL>MP`c z+cf~Zz1>RhHT)^rtOTd$(W!5-)fWJ|h5*o*7+I}H>(VTtMUON$QhhMLM(~VkN8JXv zNiu-Ki20e!%x96Xl3TM0zmmadO;txg_(FiHFHO}ri}0``t+SObu`_9~3`&Hy41iTM z{dZPYdW8eRz5oab6m+>{cS=R2D|Wtm!k%cpNW<1Y{`&NPe27w*B!B;2N&kZ4-y8XN fPW(MTNM^C7Pmf!)RBriAvJOW(r)>pWDQEu+vzMpw literal 0 HcmV?d00001 diff --git a/Assets/world/world1/layers/1/hitbox.png b/Assets/world/world1/layers/1/hitbox.png new file mode 100644 index 0000000000000000000000000000000000000000..0a9a37e8d2ccd31f3428e47d63d8a1cf45e35e46 GIT binary patch literal 3972 zcmeH}`BM|w7ROIQ5=cTID2qf8Fd#Z&j6x)`B^aWj5KzZ$M2L*+gRBb37C=A*L3EIP z5d<@%PoOM>CtHg$K8sC86jX!=2u~*ZP#9nU;dRT*UobySm0i`9zMq_X>zwcT-oBmU zEZRk*Fem^(v)^sEA3zCx#DNkC{W0cU9YzO)j9d zI<0QU%D?+Y7D=E^V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*R4>nc&nP>K~Sp2O{{i zHAB2gIQtPzS>_~HfuirnlInGSM=VvOUD->D8bUKebdr_37fe`KZtH(1B@X!WY0Xo5 zmE6)T*raAT1@2b6J!nj~kQI`8KD8}&Q;hPktWKF*;w6nQetHuVw)n9VUoiffDQl%3 zeu|p(Nx=+oZ~yZ0C)|H+aUugioLC+TRJ7s-Q(fqN?pDv?TN7mL7$QVA2+*a{9yO@4 zS(cnBLTBBKvP3XTg6Vrbv`y$=yJ zEQ!c%w0)6o3rU)2XZ%An;J0VdmK=Tn1z{0@TWY|@OcP~oibD?1Bs4NgyolnJI8Zi0 zqqRq?=kLezAnLSN-%T9z_f~Kixm^;{Vu`w!y&{AScdCvF28ZQmH$!+z0LapIwv^x@ z(4m+J2*bMgGeew2kZowfNlXVhAjyjE4I6Y@m;|`>xaeY|C;j>M8v{g1E6X5JPe1{r zX{rxErz4#fk}~;D7i4dYM(}(l0je$*F+g&&ukyssAXfAuMBO{*LhwEhP;?`f1Y)~s zznr7bZ8B`aV6pL>3uP7hfj8BP-hH*Xe%{5_#pa;8*+7dxS_xv}oGZW~k3rATYaydi zoe&jC{?l5Y}PS=hf2w<0Q<%q}N$+?37-1Nr0?PNI531bkIHvzJH>IS-1So3C+ zD}e4RH&b5aiWcq~ireBlMvvQMLX1$dISvOfyZ%RvN?&inqf-pZxeXS`*$_0Mw^Kws9u zTxKBoWBIL(4*8Nl831AVRQ?M8Qsk>3m=a$d^2HDTKrAy= literal 0 HcmV?d00001 diff --git a/Assets/world/world1/layers/1/normal.png b/Assets/world/world1/layers/1/normal.png new file mode 100644 index 0000000000000000000000000000000000000000..bc2ede6b17d6a7f2b5b0b8ab84643562b4db3b7d GIT binary patch literal 4196 zcmeHK`#+TH7GE>QFec*~nOu{oCe4m&N-@Gg<#H+~Hf17)lqPq%4JCyw)hCxtv}?0> zTgBdTE4J6^qO&oRWJ|<^Oq~?=6l&0U=AHZr=ZAAXJ)h5fX1(8Mt@S)>eb@86>pkP? z?yRapR{;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dNmOQD^Q{6=|4jl8p?4z zis<;-x$|-9Owsh`sowd7xdrPQ?v6LNank++NOz-A literal 0 HcmV?d00001 diff --git a/Assets/world/world1/layers/1/texture.png b/Assets/world/world1/layers/1/texture.png new file mode 100644 index 0000000000000000000000000000000000000000..149273f21cadd69083c0a5dd759a708da706f465 GIT binary patch literal 4573 zcmeHKhg(z07N46yLO`m5h%7~P;n_d|Wf3HbET9IWtcVSwVt@n$DJmdvBML5}sH{|x zSO_RBt3ael+^ii8JxB|RiqZu_HSi{3eeZABZ})s(a%axD=giFS{ASMFU&&7Pit<|W z002cthi$t7kb_MG$l>6_&?c!HcFz0Q+L9e@ZS?{I{i!~_#{e+88gbRyfk)JS>Tw`z z|4JoS71dwK8LKbES04+mwp3}gR% z+T>VgxBZ*PZg17@Cnsz=JHp#5vEPc-Txv?z5t~*UT)&`@+8?KK#?BB|cTpu~IkorU z?UZvplV!09g{Rit{1`FFugm(d6E`XIehF)-##hU)jjXJoPQ%OW+jmtm7ba*0Z+UND z@Oo|4iM1B}J*lb&8EFQWRTR!^BppamSG<1un#KJbt&cONYggUiSmb8O)7ulPOl~wJ zB|mZs0)*8R)nzg-awympZWrqAUp=zSZsvq?R8{xlmn#zK*m&(xBir*ICZEi8o#Id< zkF=BIpEJf6x6Nwe&XyA^X>G#iC5LPf44-?wc`TXE9W(sW#L}?FlyMjr`&d5?A<3JF z!o;;pt{KRBPmhLniQ^ytM`5fTb88QW^K7$|E@~EXy#i5EVqC=>D-5kDzf;VK;+sv+ zAU^hicLZzK+=O|-9ob>O4L+ev*_KDa2O+>=Ul0Im4J1G0be7FYsKf_5lI-x^1RZtd zrQ?5?e}Sqc!FF!Jw*G#8$BqXB+rVRogO7RYo$?9x*0Xmck@qr`76YJMb66xxe(_Yhg1pk*gkY>0{r>QR?Yx&33VVDsT#TM9azK}F?%?qEkw|Y9Y&|E! z3yt?5!ozX?mA^Rx2JTiE=@OWIWrJrT#bb+Zj*gED-YS6dpH9n2EyN))KQ?yw+~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XSN%DZ5{d=_dfC$3yTi1Fy z6VJ|Os>dBKpN9#eAUx9$5Z7IbD_RfOtb5o<9;^qn4X*q&PO)J0GrhIfPh5d$8UW%6 zQd}Eku~#We7l7)v{e6rvE5ETvk#E3GRlt1lY@6j0kn;Ml4FK)b&LpAo7si9|LpB~@ z@GD#s-#LM?JL59PbfuOC@aBJHRBeH9RtxxT)lKWe48-J8;qP8kZ!yD02ryd>h;`bN zSil{rZt5LM9Qzq?H4$)IOM|2U8u<)3f^Sc-RZ8}r7UM680EGqNg75yYw8bDNTIdJE z&ZuH?vc2k!5#Rz%{_bUv4`BO;S~%}l`ZDB`LwCI};FB6)rs7!HR}oZfF@^_dU}!3< zde(7B2DHNpacRM#`f8+z+XX*vUU@~97(>Llrb;?U{uhOw$5)zPu)PejQzeJS_R-m% z?#!j;Z)2jP0EGazXsB9^_XlVJk4-nW#e}K?_HqQ&*0Ogk%)Tn|pm`oIiKkcL>MP`c z+cf~Zz1>RhHT)^rtOTd$(W!5-)fWJ|h5*o*7+I}H>(VTtMUON$QhhMLM(~VkN8JXv zNiu-Ki20e!%x96Xl3TM0zmmadO;txg_(FiHFHO}ri}0``t+SObu`_9~3`&Hy41iTM z{dZPYdW8eRz5oab6m+>{cS=R2D|Wtm!k%cpNW<1Y{`&NPe27w*B!B;2N&kZ4-y8XN fPW(MTNM^C7Pmf!)RBriAvJOW(r)>pWDQEu+vzMpw literal 0 HcmV?d00001 diff --git a/Assets/world/world1/layers/deco/normal.png b/Assets/world/world1/layers/deco/normal.png new file mode 100644 index 0000000000000000000000000000000000000000..c0aab9434f4c0caaa4c23c47a3292c4602532406 GIT binary patch literal 4243 zcmeAS@N?(olHy`uVBq!ia0y~y5CAe68911L)Se6#D}peR2rGbfdS zL1SX=L|c!;4l+mMgO_TFvTJvAu&mh?As||KMN4F%(+bh3QiGjeoHH&>ShB-{YaJ`Q zz1V6#y>q*)c5pR4VDIQ&J$X_0lpp(-T~IpK{J3tBL zez3=1CaE$~)lOZ`^k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Hbqi{!^%rLBtN z?Rih7AJ|CT{*s$R=tg|g{?P`P4 zhS_4k3juYr#V}h8v&HZ!1OE%f@Imlc2ff~b$~$gqMXancoVrjDVOo>E=sqWDNZ-Jp pk$Bi=3+a?F^JxXhq?sV>G@xtma({hXr5drUx9{DSwbkXPe*>@n|FQr8 literal 0 HcmV?d00001 diff --git a/Makefile b/Makefile index dcbac2b..e586110 100644 --- a/Makefile +++ b/Makefile @@ -83,4 +83,3 @@ $(OUTDIR)/%.$(OBJEXT): $(SRCDIR)/%.$(SRCEXT) @rm -f $(OUTDIR)/$*.$(DEPEXT).tmp .PHONY: all remake clean cleaner resources - diff --git a/Scripts/world.lua b/Scripts/world.lua index 3b56d9a..40d7218 100644 --- a/Scripts/world.lua +++ b/Scripts/world.lua @@ -7,7 +7,6 @@ world = { Register = function(self) -- TODO make world have global textures to speed up rendering - self:registerMaterial("grass", { -- TODO combine both of these into 1 texture = { @@ -110,3 +109,25 @@ world = { --world:Generate() game.worldRegister(world) + +newWorld = { + Register = function(self) + self.unitSize = 8; + self:createLayer(0, { + texture = { file = "Assets/world/world1/layers/0/texture.png" }, + normal = { file = "Assets/world/world1/layers/0/normal.png" }, + hitbox = { file = "Assets/world/world1/layers/0/hitbox.png" } + }); + self:createLayer(1, { + texture = { file = "Assets/world/world1/layers/1/texture.png" }, + normal = { file = "Assets/world/world1/layers/1/normal.png" }, + hitbox = { file = "Assets/world/world1/layers/1/hitbox.png" } + }); + self:createDecoLayer(10, { + texture = { file = "Assets/world/world1/layers/deco/texture.png" }, + normal = { file = "Assets/world/world1/layers/deco/normal.png" }, + }); + end, + Generate = function(self) end +} +game.worldRegister(newWorld); diff --git a/src/script.cpp b/src/script.cpp index 6cda627..629baa9 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -134,7 +134,12 @@ void ScriptSystem::scriptExport(void) "setData", &World::setData, "registerMaterial", &World::registerMaterial, "setSize", &World::setSize, - "getSize", &World::getSize); + "getSize", &World::getSize, + + // New stuff + "unitSize", sol::property(&World::setUnitSize, &World::getUnitSize), + "createLayer", &World::registerLayer, + "createDecoLayer", &World::registerDecoLayer); game = lua["game"].get_or_create(); game.set_function("spawn", entitySpawn); diff --git a/src/world.cpp b/src/world.cpp index cd89a22..8cfd906 100644 --- a/src/world.cpp +++ b/src/world.cpp @@ -134,6 +134,8 @@ World::getSize() void World::generateMesh() { //const unsigned int voxelLength = 6; // 2 triangles @ 3 points each + if (!data.size()) + return; // Preallocate size of vertexes mesh = std::basic_string(); @@ -221,6 +223,29 @@ double World::getHeight(double x, double y, double z) return Y; } +/********* +* NEW * +*********/ +void World::registerLayer(float z, sol::object obj) +{ + if (obj.get_type() == sol::type::table) { + sol::table tab = obj; + solidLayers.push_back(SolidLayer(z, tab)); + } else { + throw std::string("Layer must receive a table"); + } +} + +void World::registerDecoLayer(float z, sol::object obj) +{ + if (obj.get_type() == sol::type::table) { + sol::table tab = obj; + drawLayers.push_back(Layer(z, tab)); + } else { + throw std::string("Layer must receive a table"); + } +} + /****************** * WORLD SYSTEM * diff --git a/src/world.hpp b/src/world.hpp index 9314fa6..acdb533 100644 --- a/src/world.hpp +++ b/src/world.hpp @@ -57,6 +57,41 @@ struct WorldMaterial } }; +class Layer +{ +private: + Texture texture; + Texture normal; + + float drawLayer = 0.0f; + +public: + + Layer(float z, sol::table tab) { + drawLayer = z; + if (tab["texture"] != nullptr) { + sol::object t = tab["texture"]; + texture = Texture(t); + } + if (tab["normal"] != nullptr) { + sol::object n = tab["normal"]; + normal = Texture(n); + } + } +}; + +class SolidLayer : public Layer +{ +private: + // hitbox something something +public: + SolidLayer(float z, sol::table tab) : Layer(z, tab) { + if (tab["hitbox"] != nullptr) { + std::cout << "hitbox: " << std::string(tab["hitbox"]) << std::endl; + } + } +}; + class World { friend class WorldSystem; @@ -72,6 +107,11 @@ private: std::unordered_map string_registry; std::vector registry; + // NEW + unsigned int unitSize; + std::vector solidLayers; + std::vector drawLayers; + protected: // RENDER std::basic_string mesh; @@ -115,6 +155,13 @@ public: /* PHYSICS */ double getHeight(double x, double y, double z); + + // NEW + unsigned int getUnitSize() {return unitSize;} + void setUnitSize(unsigned int u) {unitSize = u;} + + void registerLayer(float, sol::object); + void registerDecoLayer(float, sol::object); }; /** -- 2.39.5