From f3dd6ee65a5eaded9901b57745eaa4584abb7f24 Mon Sep 17 00:00:00 2001 From: Luna Brovchuk Date: Sat, 30 Sep 2023 19:26:07 +0200 Subject: [PATCH] Change Player Hitbox --- src/global.gd | 11 +++++- src/models/player/Player.tscn | 15 +++++++-- src/models/player/player.gd | 4 +-- src/scenes/game/Game.tscn | 23 ++++++++++++- src/scenes/game/sprites/health/0.png | Bin 0 -> 8939 bytes src/scenes/game/sprites/health/0.png.import | 35 ++++++++++++++++++++ src/scenes/game/sprites/health/1.png | Bin 0 -> 1892 bytes src/scenes/game/sprites/health/1.png.import | 35 ++++++++++++++++++++ src/scenes/game/sprites/health/2.png | Bin 0 -> 1929 bytes src/scenes/game/sprites/health/2.png.import | 35 ++++++++++++++++++++ src/scenes/game/sprites/health/3.png | Bin 0 -> 1933 bytes src/scenes/game/sprites/health/3.png.import | 35 ++++++++++++++++++++ src/scenes/menu/menu.gd | 2 +- 13 files changed, 187 insertions(+), 8 deletions(-) create mode 100644 src/scenes/game/sprites/health/0.png create mode 100644 src/scenes/game/sprites/health/0.png.import create mode 100644 src/scenes/game/sprites/health/1.png create mode 100644 src/scenes/game/sprites/health/1.png.import create mode 100644 src/scenes/game/sprites/health/2.png create mode 100644 src/scenes/game/sprites/health/2.png.import create mode 100644 src/scenes/game/sprites/health/3.png create mode 100644 src/scenes/game/sprites/health/3.png.import diff --git a/src/global.gd b/src/global.gd index f676b7b..d0c1555 100644 --- a/src/global.gd +++ b/src/global.gd @@ -1,3 +1,12 @@ extends Node -var game_scene = preload("res://src/scenes/game/Game.tscn") +var GAME_SCENE = preload("res://src/scenes/game/Game.tscn") + +var playing = true +var health = 0 + +func add_health(amount): + health = clamp(health + amount, 0, 3) + emit_signal("health_update") + if health == 0: + pass # TODO endgame diff --git a/src/models/player/Player.tscn b/src/models/player/Player.tscn index 6ae7ba3..be57bcd 100644 --- a/src/models/player/Player.tscn +++ b/src/models/player/Player.tscn @@ -1,9 +1,12 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=5 format=2] [ext_resource path="res://src/models/player/sprite.png" type="Texture" id=1] [ext_resource path="res://src/models/player/player.gd" type="Script" id=2] [sub_resource type="RectangleShape2D" id=1] +extents = Vector2( 4.5, 6 ) + +[sub_resource type="RectangleShape2D" id=2] extents = Vector2( 7, 11 ) [node name="Player" type="KinematicBody2D"] @@ -13,6 +16,12 @@ script = ExtResource( 2 ) texture = ExtResource( 1 ) centered = false -[node name="CollisionShape2D" type="CollisionShape2D" parent="."] -position = Vector2( 12, 12 ) +[node name="WallCollider" type="CollisionShape2D" parent="."] +position = Vector2( 12.5, 17 ) shape = SubResource( 1 ) + +[node name="EnemyCollider" type="Area2D" parent="."] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyCollider"] +position = Vector2( 12, 12 ) +shape = SubResource( 2 ) diff --git a/src/models/player/player.gd b/src/models/player/player.gd index 0fc2b9e..b990357 100644 --- a/src/models/player/player.gd +++ b/src/models/player/player.gd @@ -7,6 +7,6 @@ func get_input(): var input_direction = Input.get_vector("left", "right", "up", "down") velocity = input_direction * speed -func _physics_process(delta): +func _physics_process(_delta): get_input() - move_and_slide(velocity) + velocity = move_and_slide(velocity) diff --git a/src/scenes/game/Game.tscn b/src/scenes/game/Game.tscn index d5c89aa..3737123 100644 --- a/src/scenes/game/Game.tscn +++ b/src/scenes/game/Game.tscn @@ -1,10 +1,14 @@ -[gd_scene load_steps=9 format=2] +[gd_scene load_steps=14 format=2] [ext_resource path="res://src/scenes/menu/background/background.png" type="Texture" id=1] [ext_resource path="res://src/scenes/game/sprites/background_houses.png" type="Texture" id=2] [ext_resource path="res://src/scenes/game/spell_holder.gd" type="Script" id=3] [ext_resource path="res://res/fonts/silkscreen/Silkscreen-Regular.ttf" type="DynamicFontData" id=4] [ext_resource path="res://src/models/player/Player.tscn" type="PackedScene" id=5] +[ext_resource path="res://src/scenes/game/sprites/health/3.png" type="Texture" id=6] +[ext_resource path="res://src/scenes/game/sprites/health/1.png" type="Texture" id=7] +[ext_resource path="res://src/scenes/game/sprites/health/2.png" type="Texture" id=8] +[ext_resource path="res://src/scenes/game/sprites/health/0.png" type="Texture" id=9] [sub_resource type="RectangleShape2D" id=2] extents = Vector2( 10, 60 ) @@ -16,6 +20,14 @@ extents = Vector2( 140, 10.25 ) size = 8 font_data = ExtResource( 4 ) +[sub_resource type="SpriteFrames" id=4] +animations = [ { +"frames": [ ExtResource( 9 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 6 ) ], +"loop": true, +"name": "default", +"speed": 5.0 +} ] + [node name="Game" type="Node"] [node name="View" type="Node2D" parent="."] @@ -71,3 +83,12 @@ margin_right = 79.0 margin_bottom = 7.0 custom_fonts/font = SubResource( 1 ) text = "spell modifiers" + +[node name="Health" type="Control" parent="UI"] +margin_right = 40.0 +margin_bottom = 40.0 + +[node name="AnimatedSprite" type="AnimatedSprite" parent="UI/Health"] +position = Vector2( 70, 145 ) +frames = SubResource( 4 ) +centered = false diff --git a/src/scenes/game/sprites/health/0.png b/src/scenes/game/sprites/health/0.png new file mode 100644 index 0000000000000000000000000000000000000000..cea72d76e7eec9e1f5749a6da3ee15b68fa1d322 GIT binary patch literal 8939 zcmeHLc{tR4*B@I#*$E|Mq}*l9X2#4kc0$?rNEx#*GBcVPYh(!_5|Vu<6)Lx-Y*~s# z*(DT;5TT+{-SiHv_xn8W^E~%;z3(6Ib=_Pu^ZT9eIiGXR=X=ig_q$G%xv9Zcei?oM z0I=1_P|uS6yJP)&^CtFp%^AU~0D!QWzqLKf67K`_WYEbJ4-$~&=Sc#Rd?{oAz<0PX zmE!%RM&!U3g2Z9YOPu^2O}?hy=U+@q8s4ue`5?N-z4rd4$3XKtYFe}}bJ_P+PiOB? ztWmZ(w6A3;(UDfh%v<~T@`L(Hz*x4>(yG(SyPBoBRsBiJ=P6ln4x^tnubt`Q$kLrQ zJ|$x~wkPb(9K_+&y+H_9z0g5ae%t;1B7>tLmI0?kMmau}D<4aHl${KH&-}x_ZR_db zUf)CS&aG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>QwL!(cEFC>#QZgV`EjrXP)k_XX3K3hNMGG4x1G z0)yhoqR?r;bxgbq-HW9T0+CYe*~#`6tVNvRPmG2X(gJ zf9~NsX&cyVEfW*09-ZK|o|lo{_gWy*2^1psM=)3n5>0@iR8e3OhJ*mCK~+`3E(o+5 zSPg|CL-8mW90o)F0%$~IvhXwlX&sR5LWRNxgCh`XNHm-XCXk3OU{#_T6pX>32w)-# zt%gAmRfz~F<`)Pv28CVJc#mIWTZbaDp`fZnG8u&=fuTqu9!$irqrsp^1Td6DLc)=1 zFcJ~@6^cl}lIaX8o?Q(TD&Ca@@uazK_*maBthTw4ItZ=;{V6f`z_Zp3)Ir7+nwRg- z1#1eGWW~a-a|%OYP*9925&=V_Rnc(xPbFItgUK%Bbxask1@U#|Cx^Op4?4qyP9&*= z5F1A8`-Wxb$z~qE-T`dv4LLhatS*CuXOZ;SA2u8mjsQb3U zz23w?9NRs+f($847M?kxM-G}+xp9Ao5Bdzb^ z|42LJKgf)U_a^2h^hoI8iB`y$w)i~ zLq;Oih-B2CgZ}@WF9xZm=0YTq!5AnS4OWE`*jGpt5{yB+knw033JOD^|7E@g>;reB z>VZldz5DOB^lRzEVBbpr+m_-W>rbKYwTpxNV|C+xHuU$SNt=Drt(QOZm-5%ayZ*UI zG}urZhnK1g9z((tU|<9qqXvd!RPkUm*@X-yl8G1?5=u~msv*9H;X(NZxDnKML>%Pb zMDW%4mnSP5<*SVS#Ad$$Kz_Ude2b9XGXIx<-x~k_(ghIsx0Aob@85L&P1j#y;4dlv zU0r|E^_LjC0AJSsbLxu{*%Cfa z!^2DfKtOE$!vRRkkYWpYSw<%MywiL;MI;4Y&6AI@MdC(!+Scd}g0mD)zO#5ts0DNq Z0N|+yaM->4Y{gy&80nkpUDI(6{V%S{Mq~g0 literal 0 HcmV?d00001 diff --git a/src/scenes/game/sprites/health/0.png.import b/src/scenes/game/sprites/health/0.png.import new file mode 100644 index 0000000..07dc339 --- /dev/null +++ b/src/scenes/game/sprites/health/0.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/0.png-02c85cf70c99d3d8411f3ce28c6dff74.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://src/scenes/game/sprites/health/0.png" +dest_files=[ "res://.import/0.png-02c85cf70c99d3d8411f3ce28c6dff74.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/src/scenes/game/sprites/health/1.png b/src/scenes/game/sprites/health/1.png new file mode 100644 index 0000000000000000000000000000000000000000..f3a9542db306b99fe95e44b63956f9742deb2d50 GIT binary patch literal 1892 zcmcIlUuYaf9Nu8uXhA4wi&zn&4}!KOLal$AQn4TynrBh)&x;RAA(dJbA>i!&Yn3+U#e=(@ z-TUVIee?akojEo-^3?YBhub-h+nydyjj`*lXuNeZ`~7@=#|P}P%^RKwIIiRV=-bA< z_4Y#?w|TYv-U-2NCCLy0AdB;r(s~0Z|yn~a%Q7r>9 z-XJMB!*f14JU5a>bJNJgLjOL#uVOKR5(yz+DHYwosw9OPuf@jEV@cp^kZ?LF3`7O_ z@ysYcNPWT^F-1fG0NyZTa!%KvVfOM0P!tL1lB|ldVa0Vzj`NL=z{>g9w#HHi8pYUM zQYeI>XGv1IT#l9181?g#Y?`J76iHD;h7g0Q8^Vg{23<{t6bX>;c%egGK4OG9Iuj-Z zCbhnXlGmbjgN9GcF{uJQNsfVNO-*1Xvp%#`YN3O0XqHuJ=)EIxkga+|8Y2On@evuC zC2rW&EanwxNP_~si?-I^|4@igtDraI7i;!lB#|O1G46n2<(fXv8uSSash_2^*zDA3 zvm&pkF^%s&>bRJegFTU=#srdrAxR3XYpMuLQ3Y8ASU|TFy$7fk0Ci}F1p&hlZVXJZ zV^=o<&19^!8-&nBB%MkMOjOKqu%&4VuygT*Xn-h1IF7`G3ZZCg&@^pLGqA1Kbg}s< zie@4wqWSgQVu~0?%T3GF5=hqLx=2i-GRk;d%&7@OG<4GjP?r^1)|zb3_zrt@VDWa= zNEK#`AdYQY*N6x-3`J}*9#bbs1cYdcX2=9nlKGfG2>87*g0FoHa2AqAOjd`y>8KI zDyS1l>sPF4y={AJPG);;E8PLhw(sex?bwU6Hz*l`7H z-8BECbp89w%j#Osk2mg}`|ZG{&(1#Ze$UTSy>jnQZ(h71-CRq&{>_myt6MI#UrnQD zPwd`u?Iw5i_ig9?e5u;~72Vspc;?!n(R-f%dLcWxaN*teUO3+NN4|T0x3jdj<5>QS zPbSYlwmg)&-X)&=>%|lH&edIuCr^Dj{_4bJ9!#w)99cX4;nK>%`}+HT1wBt(>O1}2 sGE&dCt@OXr(fQybPk;MM=i`^!mforEIsU`q&gdLW4~?YG?Vo!2Z?|G-761SM literal 0 HcmV?d00001 diff --git a/src/scenes/game/sprites/health/1.png.import b/src/scenes/game/sprites/health/1.png.import new file mode 100644 index 0000000..ec3fc65 --- /dev/null +++ b/src/scenes/game/sprites/health/1.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/1.png-047cc618dec88d280c194537c3a6f7ff.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://src/scenes/game/sprites/health/1.png" +dest_files=[ "res://.import/1.png-047cc618dec88d280c194537c3a6f7ff.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/src/scenes/game/sprites/health/2.png b/src/scenes/game/sprites/health/2.png new file mode 100644 index 0000000000000000000000000000000000000000..7f6fb95ab53bd2e8d0301adbdcb502f1a94c2c81 GIT binary patch literal 1929 zcmcIlZD`zN9M3*@?1dKBIq;1UQyrEqmnX?3xrAnIcURl0X}k7d9q8DTCr|ET?~*i0 zd)G1%rYH`_6cj~dbJn+3oWgt=jxokW=03SEA~>qzrw*s6=onP=$-QmL*7b`AcX^Wg zJ-`3&`Tu@-o@a*#`&!oCxt5}+mVy542)W)Jk5?zi?`O}n&Xda;zkgRqQR_Cu-&NGB zuiZ{jiCs=^EE+Q&){s|9Ld!F8vQqL1nxZQnJRU==z5t zDMXR4aa_4vPL{=_7vwo!RaFiMoFK3S!G_ar1S_l?wl^5EI7ETtM~>&xF(Wj+$w+62 z)Y=+Kev{S>>wO{}<0{bS_#}we)BqaB^3YPLi4LRQDN?1b_qxPkZraD(2oAl;0O8&# z>_+X4Vt&Dkys+TiKwIvw` zpY_mW+=+O8Ew`432uHJ<8sO6sP$k4lKvr2*N-3<$D~MHb8Yptwl1&pe*oFd!ygIOW zEo-dGidFHJ301{pWq@Qh4O21;kzf)s*%p+vDA~Ng&{ykbyrLHvo<+JVGPH#>+Y3sN zjD5eKa{qz8=W-chpvta0|(l1Wv*(^4BB zV>+1qS1#+D^cP!a4?h0K!h8MEM_(?s>U)JPdoQ+9M>9XdlWUHj{hj-H^YNCtoS)RU7$z|H#8<$>l*WyFZ|)ht@{l71Z3x zjTF_k-_DPQqq$uMbjxvoTocEuWsg)-RNs!O2jDmkX%iQ0C&}FU;4(woD9P+oa(vE9 z;i8?L_VJ$Sp*)-(hdN?*Y^VFG1_3DJ5YW|f$q9^VlBwYuWE?%_7`j#xjwhM^h>#x5 z4bv&t$Fv$3S;+G|t?F^XOejFrx6vXmiX5Nd1c?LQrL$pr?tD#sTzgFSK2Uju3(APJ~H@ zNUg7-?6qK>py3m7jH?2V6XJZdregN#+&Z&<%?2J+!s{{)a*YTZG<(U#i)IAcsr1Ot1q|E7bIPM#{$^bp5>RmYSU! zZZguM6j$iY`)mifm0(Mxs4)SjL5PzK>6*myIxF#ckvDk7kkwvZGI+jTnj=9#AOy=R zc9CsOEvGb>GX|X?1P;W5=_Er$#cdlAZeZ%B3RoQ}hy|hySWPxHRuTXfRaufv#jNQf z^V2Szh@6P#*K>SqJ?q=#)d8hD zQ6p7|AYuhsx~OYxLK6~fA|WfRmLTcWuqx_;s)-U(8TvMF$}PEm&PBvsiJ=iREY~js zk{`Pa3YhbpLX>8LPF9h%1Jb&w#{01cA8d?DHeCyy0brE%Bm<)+W1_eI*uIN<%hOq( zUnyb&xvq4Jndv8Kj=C8%Y#0EAmLc1lVUkUtV*mwK(sY#-^(f+&X|c#cx}fk-OkDmj5V!yY>&;!WY3L;t=*p7w9X6ckfr+MG&uB`x0;+J-wdYv^V(~t^H*XY z(;a;~XX(Fo?VVr9-+19Uulw5T!WWO2TSl&SEzWeVm44W2X6G(;KYH!h`R;Gmy?6c8 zFH;x(yuONBK_C76z|q|!GZ!9D-A8RW{qq=H`Fw0Pw&s=D4*dws&W-bz=6g#MTT9|^ zUrj&Jv+>ecciU6%tla%mc4qP2^@kVUx;%RDquvv5RBwjV(3{4Sna&TN`7+r(zu}~{ zdEMl>KUQ}g%N_sj6XER_xf?I-ec+aPb>T$UrsJplAGh5+bf)v`*!}BK`}bEaW>CTY g^!JxjknR9$#(o`I%;@K{1JQvwm>Ei+8#r+IZ>sEY^#A|> literal 0 HcmV?d00001 diff --git a/src/scenes/game/sprites/health/3.png.import b/src/scenes/game/sprites/health/3.png.import new file mode 100644 index 0000000..5be0b8a --- /dev/null +++ b/src/scenes/game/sprites/health/3.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/3.png-cf9102fa2f0f8d9abb6f2ada3be84162.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://src/scenes/game/sprites/health/3.png" +dest_files=[ "res://.import/3.png-cf9102fa2f0f8d9abb6f2ada3be84162.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=false +svg/scale=1.0 diff --git a/src/scenes/menu/menu.gd b/src/scenes/menu/menu.gd index e2139dc..6ea9112 100644 --- a/src/scenes/menu/menu.gd +++ b/src/scenes/menu/menu.gd @@ -1,7 +1,7 @@ extends Node func game_start(): - get_tree().change_scene_to(Global.game_scene) + get_tree().change_scene_to(Global.GAME_SCENE) func game_exit(): get_tree().quit(0)