From a6f449bb930711778f5e54a48439a12a6055030b Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Tue, 30 Jun 2026 16:21:47 -0500 Subject: [PATCH] example building 2 --- assets/meshes/chunks/chunk_0_0_0_0.dmf | Bin 372 -> 28932 bytes assetsraw/chunks/chunk_0_0_0.json | 2169 +++++++++++++++++++++++- src/dusk/rpg/rpg.c | 15 +- 3 files changed, 2171 insertions(+), 13 deletions(-) diff --git a/assets/meshes/chunks/chunk_0_0_0_0.dmf b/assets/meshes/chunks/chunk_0_0_0_0.dmf index d20086a71c0d575f88ef9dd03eb699d2b11abce2..ceceabbafa1a9d1fca2b65714bf4c5559ddd7dd3 100644 GIT binary patch literal 28932 zcma)-!Hpx!5ky-D-Dv_%paYUhfS{WInm`k1LYcyo>}XTk6xGYk)Woli1b+d&M8A#5 zmpz!~{OdpeKK^nX$AAC2{;_BN?H8W^`1x;GT#G6HNo1$V?KAiLX#YK@jr`vH=p&N0(F#S4p_#oKjVZr{Z@KI#347e*IW&)aof zZr{Z@&h(z*h0%qTx9hsxzKe5Q>Al1YqYEo<*LAsl7w0(Y{rTtdbNF3c-ea-yc3qd- zcX5tedT-)|(S?<_>$=>&i*wx5dlxT^F08y=*X8zIoa2$+hj?LhVdd?*F1PRE93#C$ zyfC`3@^)R9+jnt}XL_IFh0%qTx9hsxzKe6b()$uGj4rIaUDxIIU7X{c-nV#RbYbP~ zx-Pfx;v6-1iWf!~R{!61U2flnF9ukA=5t052QFa;-&x#`h{r#!>vFI-?SRdF;%*dbWe-$=>&i*wBMPVvI%!phrq zU2flHO^JE&IpW`6-x)Y?2^+~qvPdr$XZ-r$`^M#9oa&z3uj?GZb**zHyT-cVS_d}P z1sm()oS8evy5U-<%h4rQU2;dxtL~9M(?foyFuJgBU6+Gh;&qN&dT-)|(S?<_>$=>& zi*wx5dlxT^F08y=*X8zIoa2$+hj?LhVdd?*F1PRE93#C$yfC`3@^)R9+jnt}XL_IF zh0%qTx9hsxzKe6b()$uGj4rIaU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Ax9)#djH7N3iA+}~Ol?zl2X)^%MD#$oUHbbrtDJMkE@-(t~S z>|596e%r-3MzSGZ7+qL-kEZK#`!3EgbKVp$EOr)e*LAsl7w7n-_aj~yU06MD*LAsl z7w0(Bdx{rE7gpY`>vH=p&T*yp5-*G{th`;<<@Q~i<5=_K{m}PqF}lZM#~-v9sr delta 29 lcmZp9#Q24Y%f;7?fsuiML5N`@*Vl=~;uGHqOy0)s2LOQ82`T^p diff --git a/assetsraw/chunks/chunk_0_0_0.json b/assetsraw/chunks/chunk_0_0_0.json index 91eceb33..2269f4cb 100644 --- a/assetsraw/chunks/chunk_0_0_0.json +++ b/assetsraw/chunks/chunk_0_0_0.json @@ -2,25 +2,2182 @@ "meshes": [ { "file": "house_5_3.dmf", - "pos": [ 1, 1, 0 ] + "pos": [ + 1, + 1, + 0 + ] } ], - "tiles": [ { - "pos": [ 0, 0, 0 ], + "pos": [ + 0, + 0, + 0 + ], "type": 1, "tile": 0 }, { - "pos": [ 1, 0, 0 ], + "pos": [ + 1, + 0, + 0 + ], "type": 1, "tile": 0 }, { - "pos": [ 0, 1, 0 ], + "pos": [ + 2, + 0, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 3, + 0, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 4, + 0, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 5, + 0, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 6, + 0, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 7, + 0, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 8, + 0, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 9, + 0, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 10, + 0, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 11, + 0, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 12, + 0, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 13, + 0, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 14, + 0, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 15, + 0, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 0, + 1, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 6, + 1, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 7, + 1, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 8, + 1, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 9, + 1, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 10, + 1, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 11, + 1, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 12, + 1, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 13, + 1, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 14, + 1, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 15, + 1, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 0, + 2, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 6, + 2, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 7, + 2, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 8, + 2, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 9, + 2, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 10, + 2, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 11, + 2, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 12, + 2, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 13, + 2, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 14, + 2, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 15, + 2, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 0, + 3, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 6, + 3, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 7, + 3, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 8, + 3, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 9, + 3, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 10, + 3, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 11, + 3, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 12, + 3, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 13, + 3, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 14, + 3, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 15, + 3, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 0, + 4, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 1, + 4, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 2, + 4, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 3, + 4, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 4, + 4, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 5, + 4, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 6, + 4, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 7, + 4, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 8, + 4, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 9, + 4, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 10, + 4, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 11, + 4, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 12, + 4, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 13, + 4, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 14, + 4, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 15, + 4, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 0, + 5, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 1, + 5, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 2, + 5, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 3, + 5, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 4, + 5, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 5, + 5, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 6, + 5, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 7, + 5, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 8, + 5, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 9, + 5, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 10, + 5, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 11, + 5, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 12, + 5, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 13, + 5, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 14, + 5, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 15, + 5, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 0, + 6, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 1, + 6, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 2, + 6, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 3, + 6, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 4, + 6, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 5, + 6, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 6, + 6, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 7, + 6, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 8, + 6, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 9, + 6, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 10, + 6, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 11, + 6, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 12, + 6, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 13, + 6, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 14, + 6, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 15, + 6, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 0, + 7, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 1, + 7, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 2, + 7, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 3, + 7, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 4, + 7, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 5, + 7, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 6, + 7, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 7, + 7, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 8, + 7, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 9, + 7, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 10, + 7, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 11, + 7, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 12, + 7, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 13, + 7, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 14, + 7, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 15, + 7, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 0, + 8, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 1, + 8, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 2, + 8, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 3, + 8, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 4, + 8, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 5, + 8, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 6, + 8, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 7, + 8, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 8, + 8, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 9, + 8, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 10, + 8, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 11, + 8, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 12, + 8, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 13, + 8, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 14, + 8, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 15, + 8, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 0, + 9, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 1, + 9, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 2, + 9, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 3, + 9, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 4, + 9, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 5, + 9, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 6, + 9, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 7, + 9, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 8, + 9, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 9, + 9, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 10, + 9, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 11, + 9, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 12, + 9, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 13, + 9, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 14, + 9, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 15, + 9, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 0, + 10, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 1, + 10, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 2, + 10, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 3, + 10, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 4, + 10, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 5, + 10, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 6, + 10, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 7, + 10, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 8, + 10, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 9, + 10, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 10, + 10, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 11, + 10, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 12, + 10, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 13, + 10, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 14, + 10, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 15, + 10, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 0, + 11, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 1, + 11, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 2, + 11, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 3, + 11, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 4, + 11, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 5, + 11, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 6, + 11, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 7, + 11, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 8, + 11, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 9, + 11, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 10, + 11, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 11, + 11, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 12, + 11, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 13, + 11, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 14, + 11, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 15, + 11, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 0, + 12, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 1, + 12, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 2, + 12, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 3, + 12, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 4, + 12, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 5, + 12, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 6, + 12, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 7, + 12, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 8, + 12, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 9, + 12, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 10, + 12, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 11, + 12, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 12, + 12, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 13, + 12, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 14, + 12, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 15, + 12, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 0, + 13, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 1, + 13, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 2, + 13, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 3, + 13, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 4, + 13, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 5, + 13, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 6, + 13, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 7, + 13, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 8, + 13, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 9, + 13, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 10, + 13, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 11, + 13, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 12, + 13, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 13, + 13, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 14, + 13, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 15, + 13, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 0, + 14, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 1, + 14, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 2, + 14, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 3, + 14, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 4, + 14, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 5, + 14, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 6, + 14, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 7, + 14, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 8, + 14, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 9, + 14, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 10, + 14, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 11, + 14, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 12, + 14, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 13, + 14, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 14, + 14, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 15, + 14, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 0, + 15, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 1, + 15, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 2, + 15, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 3, + 15, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 4, + 15, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 5, + 15, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 6, + 15, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 7, + 15, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 8, + 15, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 9, + 15, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 10, + 15, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 11, + 15, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 12, + 15, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 13, + 15, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 14, + 15, + 0 + ], + "type": 1, + "tile": 0 + }, + { + "pos": [ + 15, + 15, + 0 + ], "type": 1, "tile": 0 } ] -} +} \ No newline at end of file diff --git a/src/dusk/rpg/rpg.c b/src/dusk/rpg/rpg.c index fb4d9a42..a9448dd0 100644 --- a/src/dusk/rpg/rpg.c +++ b/src/dusk/rpg/rpg.c @@ -35,6 +35,7 @@ errorret_t rpgInit(void) { assertTrue(entIndex != 0xFF, "No available entity slots!."); entity_t *ent = &ENTITIES[entIndex]; entityInit(ent, ENTITY_TYPE_PLAYER); + ent->position = (worldpos_t){ 10, 2, 0 }; RPG_CAMERA.mode = RPG_CAMERA_MODE_FOLLOW_ENTITY; RPG_CAMERA.followEntity.followEntityId = ent->id; { @@ -48,7 +49,7 @@ errorret_t rpgInit(void) { entity_t *npc = &ENTITIES[npcIndex]; entityInit(npc, ENTITY_TYPE_NPC); npcSetMoveType(npc, NPC_MOVE_TYPE_PATH); - npc->position = (worldpos_t){ 3, 3, 0 }; + npc->position = (worldpos_t){ 8, 8, 0 }; npc->interact.type = ENTITY_INTERACT_PRINT; npc->interact.data.message = "hello world"; { @@ -58,12 +59,12 @@ errorret_t rpgInit(void) { if(ci != -1) entitySetChunk(npc, (uint8_t)ci); } - npcpath_t *path = &npc->data.npc.moveData.path; - path->positions[0] = (worldpos_t){ 3, 3, 0 }; - path->positions[1] = (worldpos_t){ 10, 3, 0 }; - path->positions[2] = (worldpos_t){ 10, 10, 0 }; - path->positions[3] = (worldpos_t){ 3, 10, 0 }; - path->count = 4; + // npcpath_t *path = &npc->data.npc.moveData.path; + // path->positions[0] = (worldpos_t){ 3, 3, 0 }; + // path->positions[1] = (worldpos_t){ 10, 3, 0 }; + // path->positions[2] = (worldpos_t){ 10, 10, 0 }; + // path->positions[3] = (worldpos_t){ 3, 10, 0 }; + // path->count = 4; // All Good! errorOk();