From f636d0c6d346ecedaea247b01692d9c04255f1db Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 27 Jul 2019 16:32:48 +0200 Subject: [PATCH] feat: add new HUD elements --- .../assets/gui/emblem_speedster.png | Bin 0 -> 664 bytes sonic-radiance.love/assets/gui/status_bar.png | Bin 3007 -> 7117 bytes sonic-radiance.love/assets/gui/status_bar.xcf | Bin 2826 -> 2314 bytes .../game/modules/world/actors/player.lua | 5 ++++- 4 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 sonic-radiance.love/assets/gui/emblem_speedster.png diff --git a/sonic-radiance.love/assets/gui/emblem_speedster.png b/sonic-radiance.love/assets/gui/emblem_speedster.png new file mode 100644 index 0000000000000000000000000000000000000000..d4e2a73433696797d9af06571eb974c7a9227e5a GIT binary patch literal 664 zcmV;J0%!e+P)eSad^gZEa<4bO1wgWnpw>WFU8GbZ8()Nlj2!fese{00Hnx zL_t(Y$F-L+OT$1IhM!A|;G{(m#Gy{j)Xhne{sO1C2#)UkD|YYL(fbjl;N+%DoD3*J zMN}MwLWx6i<&xa>u8n<{Hp!Rw;k`R@--(;}9hYP{PVrC__k^pa=>ys);%TtlsM7}- z%G3oGri3O?rw`i}lV2#*O_A2b6`%~qsV~R}T!t2aI&2k?4QzrgfG${qWWt3JaK615w-) zi-i9HQ)%_2Wp8oDZQ3Scp5JKXzas>7bVc^9(0vnRHivVqaGpP?s{~o`tt=XSSnA5= z(FB;~7h7ybGuyXxwm}ffhIErEBz(L6%>E4j$6Wax3|mFu0<9%+r)KB#|$h?#kBZ%UjctP^hZ50Zl8Y%U6mG4WwV+4AOP~JJ#fkvd29YXgG zR4Xt=a()VXN9#k&u)QNVKV7mP#>a4SXofBWtLJ6d$zkT{Y%#)nxO;_<=k?}Lhm~85 zpxjqZk&C3|A+8JaY7@iz?4D0z7t9J=6|6vN9oS&b&Re}CLz#wopQ6J|AXn$z^f_1T y=dioiB4ibi_t`=pPE#6RkaG@QC#F>(y8ZxRy%eo}LvbV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=v)-y%sm(P5zj7X-*Qe;jcdSOmK1gjA z|55Y@)jb`&T)JWH_pMH|c4*_R9yO|VYIEg=_zy1=@GOPZJ8Sv%;te_SZ*t1{%aU=m z2Xz;AoAtWYu)Xrr=yuyOZEMeXQne3^x9`1spJ#>x4Xd=PdtP*iG9CM*W*K;~>fS;k zvtQY5)|zc2qaoX_?3hL&SJ2}Mg5K(}fYhBUQvG@3dcvv4otC+ae}_@@wctFt%IW#C zhiHINZR{Rc9nNp=?{_Tw`2%wHUtO-}#Z<0CU_>6eH__i*jC~%M^yv`@?;_qf@olsA z>7m6_F&OU|1)E{Mb%rbU6^#8H-sf=ur2_m`fF}an2=M*@9|&;Xqr5(kB#ia^5eMNp zUVqNx0J_awVE|_X+~4>9dYIx7ec+ z44P8YG_9t{P?I#HZc$3TO0((}x~)#b-_U8~rxy(Cybj}9^6(Eeu5ZF^hcT;#T7Ad#ea4EecnbQ%F>8f zqKLQ)Q#7O&ffuCKt^-A5Do!(El44?wdc-Ef$p!l@OJlsD$WHX#oz9WGUm4;ZoWqBc*vAtHmY6CB!Afr6&$lcER+xsmU)JV%rQizmXMH;kU(#HrIwHxeu9Kd zGxW=Oh5 J2`@hre*$1eQFs6V diff --git a/sonic-radiance.love/game/modules/world/actors/player.lua b/sonic-radiance.love/game/modules/world/actors/player.lua index 8db95ee..5bc4d66 100644 --- a/sonic-radiance.love/game/modules/world/actors/player.lua +++ b/sonic-radiance.love/game/modules/world/actors/player.lua @@ -10,6 +10,8 @@ function Player:new(world, x, y, z, id) self:cloneSprite() self.guiborder = game.gui.newBorder(424, 20, 6) + self.emblem = love.graphics.newImage("assets/gui/emblem_speedster.png") + self.status = love.graphics.newImage("assets/gui/status_bar.png") end function Player:updateStart(dt) @@ -75,8 +77,9 @@ function Player:draw() end function Player:drawHUD(id) - love.graphics.print(id .. " test", 4, 4) love.graphics.draw(self.guiborder, 424, 20, 0, -1, -1) + love.graphics.draw(self.emblem, 8, 8, 0) + love.graphics.draw(self.status, 24, 16, 0) end return Player