From 53fe8247a1c77a3cebac81b985d37b63a613a40b Mon Sep 17 00:00:00 2001 From: Just Dzhi Date: Mon, 2 Oct 2023 17:00:13 +0400 Subject: [PATCH] Cards --- src/scenes/game/Game.tscn | 19 +++++++- src/scenes/game/game.gd | 8 ++-- src/scenes/game/sprites/cards/Card.tscn | 18 ++++++++ src/scenes/game/sprites/cards/cards.png | Bin 0 -> 11383 bytes .../game/sprites/cards/cards.png.import | 35 ++++++++++++++ .../sprites/cards/cards_spriteframes.tres | 43 ++++++++++++++++++ 6 files changed, 119 insertions(+), 4 deletions(-) create mode 100644 src/scenes/game/sprites/cards/Card.tscn create mode 100644 src/scenes/game/sprites/cards/cards.png create mode 100644 src/scenes/game/sprites/cards/cards.png.import create mode 100644 src/scenes/game/sprites/cards/cards_spriteframes.tres diff --git a/src/scenes/game/Game.tscn b/src/scenes/game/Game.tscn index 08cb372..1d32d47 100644 --- a/src/scenes/game/Game.tscn +++ b/src/scenes/game/Game.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=27 format=2] +[gd_scene load_steps=28 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] @@ -8,6 +8,7 @@ [ext_resource path="res://src/scenes/game/sprites/health/health.png" type="Texture" id=6] [ext_resource path="res://src/scenes/game/sprites/stun/stun_placeholder_spriteframes.tres" type="SpriteFrames" id=7] [ext_resource path="res://src/scenes/game/sprites/stun/stun_spriteframes.tres" type="SpriteFrames" id=8] +[ext_resource path="res://src/scenes/game/sprites/cards/Card.tscn" type="PackedScene" id=9] [ext_resource path="res://src/scenes/game/sprites/player_icon.png" type="Texture" id=10] [ext_resource path="res://src/scenes/game/game.gd" type="Script" id=11] [ext_resource path="res://src/scenes/game/sprites/ui_background.png" type="Texture" id=12] @@ -246,6 +247,22 @@ script = ExtResource( 16 ) margin_right = 80.0 margin_bottom = 3.0 +[node name="Cards" type="Control" parent="UIWrapper/UI/Center"] +visible = false +margin_right = 40.0 +margin_bottom = 40.0 + +[node name="CardLeft" parent="UIWrapper/UI/Center/Cards" instance=ExtResource( 9 )] +position = Vector2( 11, 10 ) + +[node name="CardCenter" parent="UIWrapper/UI/Center/Cards" instance=ExtResource( 9 )] +position = Vector2( 113, 10 ) +frame = 1 + +[node name="CardRight" parent="UIWrapper/UI/Center/Cards" instance=ExtResource( 9 )] +position = Vector2( 215, 10 ) +frame = 2 + [node name="Right" type="Control" parent="UIWrapper/UI"] margin_right = 40.0 margin_bottom = 40.0 diff --git a/src/scenes/game/game.gd b/src/scenes/game/game.gd index 0966f6a..c013281 100644 --- a/src/scenes/game/game.gd +++ b/src/scenes/game/game.gd @@ -13,7 +13,7 @@ var mob_threshold = [5, 7, 10, 7] func _ready(): Global.playing = true - Global.play_time = 120 + Global.play_time = 55 Global.health = 5 Global.add_health(0) @@ -27,8 +27,9 @@ func _physics_process(delta): difficulty = int(Global.play_time / 60) if difficulty != last_diff: last_diff = difficulty - # TODO perk selection - + $UIWrapper/UI/Center/Cards.visible = true + #TODO Pause + $UIWrapper/UI/LevelProgressBar/ColorRect.rect_size.x = (Global.play_time - difficulty * 60) / 60.0 * 300 for i in range(clamp(difficulty + 1, 1, 4)): @@ -37,3 +38,4 @@ func _physics_process(delta): mob_timers[i] = .0 var mob_instance = mob_preloads[i].instance() $View/Enemies.add_child(mob_instance) + diff --git a/src/scenes/game/sprites/cards/Card.tscn b/src/scenes/game/sprites/cards/Card.tscn new file mode 100644 index 0000000..cf95eff --- /dev/null +++ b/src/scenes/game/sprites/cards/Card.tscn @@ -0,0 +1,18 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://src/scenes/game/sprites/cards/cards_spriteframes.tres" type="SpriteFrames" id=1] + +[sub_resource type="RectangleShape2D" id=1] +extents = Vector2( 47, 51.5 ) + +[node name="Card" type="AnimatedSprite"] +frames = ExtResource( 1 ) +animation = "idle" +playing = true +centered = false + +[node name="Area2D" type="Area2D" parent="."] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] +position = Vector2( 47, 51.5 ) +shape = SubResource( 1 ) diff --git a/src/scenes/game/sprites/cards/cards.png b/src/scenes/game/sprites/cards/cards.png new file mode 100644 index 0000000000000000000000000000000000000000..e1a172d90355416adf5d8e9a8b2787cbd1a1f00d GIT binary patch literal 11383 zcmX|n1z3|^-2TL%UO-BeRC?sAFgjl8kkMTVD2>2?jTjgpF+!A(mKbA5h;$<@hY z4q@cR=;j;W|N8#dwX-MA+4DSm&iS4DKKJjAH3DnX(Xi710025&9SsuzfMT1x?@D!x z{QbfvsD!+^1~JiA15^xgt^ok|0lFHG&0yJEIr9j6OfqrfE`yYY$MitgldqG>Wu9fC zNIp>){!ObJeF+^NU)4HZ#yz+$D0h7Q%>OZk@~^j-uXL&2{UaAH_36im_w9kZd`WKu zyHb_eH?XTBLHyDGGK^Zqy?AtYWhUBU%fU6L)W+Pi@_cuKGIK7p+@^MFI=TPQ3{yb? zc;$XQY|S(2N&8-{cIk!+Q|^~RsZRUM?beOg+Nfr3SWOdwZ?O@pDBIiGdUhXP zMCWD_B39A=*UZz?GvPc`^v;^6f-H&i0x1_1Dr zfqVUkAJMZvEO8Ccu^3ICUqR9MDv``+nsNz4xV+t2~2iBIkr=R zB3c{*GD9TrdG;B{T#k|o7h&YwF#%{Yd_EPGbnU5W$~)D??9|^3AngPUDY>cMDvcL6_q$D|`cvR%C0d%k{$q|?7hWO3!!;g?j*noBzPsPvtA;|X+?;Zjlb0xO!4Tzl0X7taT zrOsc(wa^oh`)<)PRSbl%BgGp00d?Oc;TQjD_F^0Q;j7?h9K-n?3|nHn;g2#pTpndq zX}6OaYHk6ZE)B|>1<7&$!PxVd;*VXHI|_Ykef>ii!C=YG4N)P@*JnJJCl9Y?mtWJ1 zat@wT+1U;*J)m4l_&XzKCi&q)W3a(Buz_q;`Tbun&o0iz|4?!poVJQqKwFhAF>g7B z9kF{i|E)&_<#Dt}@B}GuyY0+)Kc+U-p9l%@-o?MX>?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PDxG?q{o>jk`WW3O=vDe6L_7Hj;BaqYJ**+MoJ@=4x@RJA463 z$Q5b2OipbCzkfM-;j;?Wdy*cX-Ruk1djJ9zcnsP`)yW$8`zJ?=3b~Xo74N33eq~4Y zx(!FwH9Bg1pvW!dXHJhSBA`K}Pc;r9{h(#h+UN!7&h@zCm< zft)04ed2$H`EebdqP;~^z6JMw8og_;y?``z^tvhbn&1%LWDcpcV%d+dCirknIz z|L}h?ZKFEX$|)om|H;z7?cwqR2FWY&R`=#$nI6126knff9(pBm6Q7Z2i`-Av3sZ8liy9RK@%(S0G6#0n~$Du9Eo|FNT zv4Nu`aM`R;6Z4nCF2$-Kb&edXoM3XDtd&BQ!m`!8+y>+ScXcvJEO7m=g_G0uzlK*= z+S!#DcWsek?tcxSeSWvPTR--@TwzRLcBJHY9Bt;6eE_2_aQ2UY>M+^+1^`UJ35)t) zkKU}1bI+w4`Ap&OKIFMR%6Kw0HB}t=r6N+&8HaeIotE~0b*PDUXaqq`sRNCYl-#! literal 0 HcmV?d00001 diff --git a/src/scenes/game/sprites/cards/cards.png.import b/src/scenes/game/sprites/cards/cards.png.import new file mode 100644 index 0000000..51c404f --- /dev/null +++ b/src/scenes/game/sprites/cards/cards.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/cards.png-de0d7634707005f50aa7f118048a0217.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://src/scenes/game/sprites/cards/cards.png" +dest_files=[ "res://.import/cards.png-de0d7634707005f50aa7f118048a0217.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/cards/cards_spriteframes.tres b/src/scenes/game/sprites/cards/cards_spriteframes.tres new file mode 100644 index 0000000..d13bda7 --- /dev/null +++ b/src/scenes/game/sprites/cards/cards_spriteframes.tres @@ -0,0 +1,43 @@ +[gd_resource type="SpriteFrames" load_steps=10 format=2] + +[ext_resource path="res://src/scenes/game/sprites/cards/cards.png" type="Texture" id=1] + +[sub_resource type="AtlasTexture" id=1] +atlas = ExtResource( 1 ) +region = Rect2( 0, 0, 94, 103 ) + +[sub_resource type="AtlasTexture" id=2] +atlas = ExtResource( 1 ) +region = Rect2( 94, 0, 94, 103 ) + +[sub_resource type="AtlasTexture" id=3] +atlas = ExtResource( 1 ) +region = Rect2( 188, 0, 94, 103 ) + +[sub_resource type="AtlasTexture" id=4] +atlas = ExtResource( 1 ) +region = Rect2( 282, 0, 94, 103 ) + +[sub_resource type="AtlasTexture" id=5] +atlas = ExtResource( 1 ) +region = Rect2( 376, 0, 94, 103 ) + +[sub_resource type="AtlasTexture" id=6] +atlas = ExtResource( 1 ) +region = Rect2( 470, 0, 94, 103 ) + +[sub_resource type="AtlasTexture" id=7] +atlas = ExtResource( 1 ) +region = Rect2( 564, 0, 94, 103 ) + +[sub_resource type="AtlasTexture" id=8] +atlas = ExtResource( 1 ) +region = Rect2( 658, 0, 94, 103 ) + +[resource] +animations = [ { +"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ) ], +"loop": false, +"name": "idle", +"speed": 0.0 +} ]