Compare commits

...

5 commits
0.4.0 ... main

Author SHA1 Message Date
f1d89d2abf Update version to 0.5.0
All checks were successful
continuous-integration/drone/push Build is passing
2023-12-06 12:00:59 +07:00
8fa547be1c Reduce the explosion animation time to 0.5 2023-12-06 11:57:28 +07:00
d6d1c66eb6 Update explosion animation for area damage 2023-12-06 11:56:52 +07:00
9a9fdbde4e Add animation effect to area damage
All checks were successful
continuous-integration/drone/push Build is passing
2023-12-05 22:29:34 +07:00
25d1dadded Add object to locate base 2023-12-05 21:20:31 +07:00
15 changed files with 225 additions and 15 deletions

BIN
assets/icons/base-mark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dca4npsxwr1m3"
path="res://.godot/imported/base-mark.png-b036609631a945409172277f06bf47e7.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/icons/base-mark.png"
dest_files=["res://.godot/imported/base-mark.png-b036609631a945409172277f06bf47e7.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b8fdtvgaq5bo6"
path="res://.godot/imported/explosion.png-886739e81fcc3dcfae2147b72459ccad.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/spritesheets/explosion.png"
dest_files=["res://.godot/imported/explosion.png-886739e81fcc3dcfae2147b72459ccad.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View file

@ -26,8 +26,8 @@ architectures/armeabi-v7a=true
architectures/arm64-v8a=true
architectures/x86=false
architectures/x86_64=false
version/code=4
version/name="0.4.0"
version/code=5
version/name="0.5.0"
package/unique_name="dev.moepoi.frontierofhell"
package/name="Frontier of Hell"
package/signed=true
@ -237,8 +237,8 @@ application/modify_resources=true
application/icon="res://assets/icons/app-logo.png"
application/console_wrapper_icon=""
application/icon_interpolation=4
application/file_version="0.0.4.0"
application/product_version="0.0.4.0"
application/file_version="0.0.5.0"
application/product_version="0.0.5.0"
application/company_name="Moepoi"
application/product_name="Frontier of Hell"
application/file_description="~"

View file

@ -1,11 +1,72 @@
[gd_scene load_steps=4 format=3 uid="uid://dqa80ptcc8p70"]
[gd_scene load_steps=14 format=3 uid="uid://dqa80ptcc8p70"]
[ext_resource type="Script" path="res://scripts/bullets/bullet.gd" id="1_lacqw"]
[ext_resource type="Texture2D" uid="uid://c57taqe4k3mi2" path="res://assets/spritesheets/bullet-1.png" id="2_o8iut"]
[ext_resource type="Texture2D" uid="uid://b8fdtvgaq5bo6" path="res://assets/spritesheets/explosion.png" id="3_wtt2i"]
[sub_resource type="CircleShape2D" id="CircleShape2D_3cgpo"]
radius = 6.0
[sub_resource type="CircleShape2D" id="CircleShape2D_dyohr"]
radius = 88.0511
[sub_resource type="AtlasTexture" id="AtlasTexture_5sdcd"]
atlas = ExtResource("3_wtt2i")
region = Rect2(0, 0, 1428, 2000)
[sub_resource type="AtlasTexture" id="AtlasTexture_5uq50"]
atlas = ExtResource("3_wtt2i")
region = Rect2(1428, 0, 1428, 2000)
[sub_resource type="AtlasTexture" id="AtlasTexture_8w3i0"]
atlas = ExtResource("3_wtt2i")
region = Rect2(2856, 0, 1428, 2000)
[sub_resource type="AtlasTexture" id="AtlasTexture_vq42n"]
atlas = ExtResource("3_wtt2i")
region = Rect2(4284, 0, 1428, 2000)
[sub_resource type="AtlasTexture" id="AtlasTexture_r0vwq"]
atlas = ExtResource("3_wtt2i")
region = Rect2(5712, 0, 1428, 2000)
[sub_resource type="AtlasTexture" id="AtlasTexture_011v7"]
atlas = ExtResource("3_wtt2i")
region = Rect2(7140, 0, 1428, 2000)
[sub_resource type="AtlasTexture" id="AtlasTexture_viipg"]
atlas = ExtResource("3_wtt2i")
region = Rect2(8568, 0, 1428, 2000)
[sub_resource type="SpriteFrames" id="SpriteFrames_88q0q"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_5sdcd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5uq50")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8w3i0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vq42n")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_r0vwq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_011v7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_viipg")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[node name="bullet" type="Area2D"]
script = ExtResource("1_lacqw")
@ -19,5 +80,17 @@ shape = SubResource("CircleShape2D_3cgpo")
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_dyohr")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
visible = false
scale = Vector2(0.15, 0.15)
sprite_frames = SubResource("SpriteFrames_88q0q")
[connection signal="body_entered" from="." to="." method="_on_Bullet_body_entered"]
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]
[connection signal="body_entered" from="Area2D" to="." method="_on_body_entered"]
[connection signal="body_exited" from="Area2D" to="." method="_on_body_exited"]

View file

@ -1,8 +1,9 @@
[gd_scene load_steps=19 format=3 uid="uid://btdewn34d67m"]
[gd_scene load_steps=20 format=3 uid="uid://btdewn34d67m"]
[ext_resource type="Script" path="res://scripts/stages/1/game_manager.gd" id="1_aosti"]
[ext_resource type="Texture2D" uid="uid://cnxj0mf3luxo" path="res://assets/tileset/ashlands/tf_A5_ashlands_3.png" id="2_bnj71"]
[ext_resource type="Texture2D" uid="uid://danbfdqmqu23q" path="res://assets/tileset/ashlands/tf_B_ashlands_3.png" id="3_mc5mi"]
[ext_resource type="Texture2D" uid="uid://dca4npsxwr1m3" path="res://assets/icons/base-mark.png" id="4_1ac5p"]
[ext_resource type="Script" path="res://scripts/stages/1/summon.gd" id="4_gt08o"]
[ext_resource type="PackedScene" uid="uid://bhnv1dsggssil" path="res://scenes/ui/pause_menu.tscn" id="5_0gif7"]
[ext_resource type="PackedScene" uid="uid://cd5r1v6f8hahx" path="res://scenes/ui/tower_menu.tscn" id="5_3w5lp"]
@ -547,6 +548,12 @@ layer_1/y_sort_origin = 0
layer_1/z_index = 0
layer_1/tile_data = PackedInt32Array(196628, 262146, 6, 131089, 2, 13, 720899, 327682, 4, 655364, 196610, 4, 589826, 262146, 12, 589830, 196610, 12)
[node name="BaseMark" type="Sprite2D" parent="."]
modulate = Color(1, 1, 1, 0.588235)
position = Vector2(1099, 507)
scale = Vector2(0.07, 0.07)
texture = ExtResource("4_1ac5p")
[node name="Path2D" type="Path2D" parent="."]
curve = SubResource("Curve2D_csucy")
script = ExtResource("4_gt08o")

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=18 format=3 uid="uid://bj5auw303w08w"]
[gd_scene load_steps=19 format=3 uid="uid://bj5auw303w08w"]
[ext_resource type="Script" path="res://scripts/stages/2/game_manager.gd" id="1_4r6ye"]
[ext_resource type="Texture2D" uid="uid://bq6hnxbt4w37u" path="res://assets/tileset/snowland/Snowland@64x64.png" id="1_d077v"]
@ -13,6 +13,7 @@
[ext_resource type="PackedScene" uid="uid://wywjvwp7ausj" path="res://scenes/ui/defeat.tscn" id="9_kssjj"]
[ext_resource type="PackedScene" uid="uid://p0lkipd6a5lu" path="res://scenes/marker/marker.tscn" id="12_unfps"]
[ext_resource type="AudioStream" uid="uid://bn6agbc77m0au" path="res://assets/audio/stage.mp3" id="12_uwk7b"]
[ext_resource type="Texture2D" uid="uid://dca4npsxwr1m3" path="res://assets/icons/base-mark.png" id="14_h1o0s"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_amj2r"]
texture = ExtResource("1_d077v")
@ -339,6 +340,12 @@ one_shot = true
stream = ExtResource("12_uwk7b")
volume_db = 1.0
[node name="BaseMark" type="Sprite2D" parent="AudioStreamPlayer"]
modulate = Color(1, 1, 1, 0.588235)
position = Vector2(575, 604)
scale = Vector2(0.07, 0.07)
texture = ExtResource("14_h1o0s")
[connection signal="timeout" from="Path2D/Timer" to="Path2D" method="_on_timer_timeout"]
[connection signal="timeout" from="Path2D2/Timer" to="Path2D2" method="_on_timer_timeout"]
[connection signal="timeout" from="Duration" to="." method="_on_duration_timeout"]

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=17 format=3 uid="uid://bxk5llqn5csgu"]
[gd_scene load_steps=18 format=3 uid="uid://bxk5llqn5csgu"]
[ext_resource type="Texture2D" uid="uid://bq6hnxbt4w37u" path="res://assets/tileset/snowland/Snowland@64x64.png" id="1_l1d1t"]
[ext_resource type="Script" path="res://scripts/stages/3/game_manager.gd" id="1_u4jwa"]
@ -13,6 +13,7 @@
[ext_resource type="PackedScene" uid="uid://cikgeqqhctm7k" path="res://scenes/base/base.tscn" id="9_057um"]
[ext_resource type="AudioStream" uid="uid://bn6agbc77m0au" path="res://assets/audio/stage.mp3" id="12_1fpbf"]
[ext_resource type="PackedScene" uid="uid://p0lkipd6a5lu" path="res://scenes/marker/marker.tscn" id="12_wt6oj"]
[ext_resource type="Texture2D" uid="uid://dca4npsxwr1m3" path="res://assets/icons/base-mark.png" id="14_w4pps"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_xqebe"]
texture = ExtResource("1_l1d1t")
@ -261,6 +262,12 @@ layer_1/y_sort_origin = 0
layer_1/z_index = 0
layer_1/tile_data = PackedInt32Array(65551, 327680, 11, 196624, 196608, 7, 196622, 196608, 7, 65549, 524288, 11, 196621, 720896, 12, 65537, 917504, 15, 589840, 786432, 5)
[node name="BaseMark" type="Sprite2D" parent="."]
modulate = Color(1, 1, 1, 0.588235)
position = Vector2(46, 547)
scale = Vector2(0.07, 0.07)
texture = ExtResource("14_w4pps")
[node name="Path2D" type="Path2D" parent="."]
curve = SubResource("Curve2D_cwxcl")
script = ExtResource("3_wyim2")

View file

@ -1,8 +1,9 @@
[gd_scene load_steps=18 format=3 uid="uid://cxo5fh50r6uxs"]
[gd_scene load_steps=19 format=3 uid="uid://cxo5fh50r6uxs"]
[ext_resource type="Texture2D" uid="uid://bq6hnxbt4w37u" path="res://assets/tileset/snowland/Snowland@64x64.png" id="1_436vn"]
[ext_resource type="Script" path="res://scripts/stages/4/game_manager.gd" id="1_lhtrq"]
[ext_resource type="Script" path="res://scripts/stages/4/summon.gd" id="3_iv4av"]
[ext_resource type="Texture2D" uid="uid://dca4npsxwr1m3" path="res://assets/icons/base-mark.png" id="3_ksc7k"]
[ext_resource type="PackedScene" uid="uid://bhnv1dsggssil" path="res://scenes/ui/pause_menu.tscn" id="4_ahd74"]
[ext_resource type="PackedScene" uid="uid://cd5r1v6f8hahx" path="res://scenes/ui/tower_menu.tscn" id="5_31eq4"]
[ext_resource type="PackedScene" uid="uid://cy88k4uxt1v37" path="res://scenes/ui/game_stats.tscn" id="6_hgjt3"]
@ -260,6 +261,18 @@ tile_set = SubResource("TileSet_pcst7")
format = 2
layer_0/tile_data = PackedInt32Array(131084, 786432, 8, 131083, 786432, 8, 131082, 786432, 8, 131081, 786432, 8, 131080, 786432, 8, 196616, 786432, 8, 262152, 786432, 8, 327688, 786432, 8, 458752, 786432, 8, 458753, 786432, 8, 458754, 786432, 8, 458755, 786432, 8, 458756, 786432, 8, 458757, 786432, 8, 458758, 786432, 8, 458759, 786432, 8, 458760, 786432, 8, 458761, 786432, 8, 458763, 786432, 8, 524299, 786432, 8, 524300, 786432, 8, 524301, 786432, 8, 524302, 786432, 8, 524305, 786432, 8, 524304, 786432, 8, 524303, 786432, 8, 458762, 786432, 8, 393224, 786432, 8, 524306, 786432, 8, 524287, 786432, 8, -65522, 786432, 8, 14, 786432, 8, 65550, 786432, 8, 131086, 786432, 8, 131085, 786432, 8, 589842, 720896, 0, 589840, 720896, 0, 589841, 720896, 0, 589839, 720896, 0, 589838, 720896, 0, 589837, 720896, 0, 589836, 720896, 0, 589835, 720896, 0, 589834, 917504, 1, 524298, 851968, 0, 524297, 720896, 0, 524296, 720896, 0, 524295, 786432, 0, 524288, 786432, 0, 196620, 786432, 0, 524289, 720896, 0, 524290, 720896, 0, 524291, 720896, 0, 524292, 720896, 0, 524293, 720896, 0, 524294, 720896, 0, 589823, 720896, 0, 458766, 720896, 3, 458767, 786432, 3, 458768, 786432, 3, 458769, 786432, 3, 458770, 786432, 3, 458765, 786432, 3, 458764, 655360, 3, 393228, 983040, 0, 393226, 786432, 3, 393227, 786432, 3, 393225, 655360, 3, 262153, 655360, 2, 327689, 655360, 2, 196618, 720896, 0, 196619, 720896, 0, 196621, 720896, 0, 196622, 720896, 0, 196623, 983040, 1, -65521, 655360, 2, 15, 655360, 2, 65551, 655360, 2, 131087, 655360, 2, 196617, 655360, 0, 458751, 786432, 3, 393216, 786432, 3, 393217, 786432, 3, 393218, 786432, 3, 393219, 786432, 3, 393220, 786432, 3, 393221, 786432, 3, 393222, 786432, 3, 131079, 851968, 1, 196615, 851968, 1, 262151, 851968, 1, 327687, 851968, 1, 393223, 851968, 3, 65543, 917504, 0, 65544, 786432, 3, 65545, 786432, 3, 65546, 786432, 3, 65547, 786432, 3, 65548, 786432, 3, 65549, 851968, 3, -65523, 851968, 1, 13, 851968, 1, 589824, 720896, 2, 589825, 720896, 2, 589826, 720896, 2, 589827, 720896, 2, 589828, 720896, 2, 589829, 720896, 2, 589830, 720896, 2, 589831, 720896, 2, 589832, 786432, 2, 589833, 720896, 2, 393233, 720896, 2, 327697, 720896, 2, 262161, 720896, 2, 262160, 720896, 1, 196624, 720896, 2, 131088, 786432, 2, 65552, 720896, 2, 16, 720896, 2, 17, 720896, 2, 65553, 720896, 2, 131089, 720896, 2, 196625, 720896, 2, 327696, 720896, 2, 393232, 720896, 2, 393231, 720896, 2, 393230, 786432, 2, 393229, 720896, 2, 327693, 720896, 2, 327692, 720896, 2, 327691, 720896, 2, 327690, 786432, 2, 262154, 720896, 2, 262155, 720896, 2, 262156, 720896, 2, 262157, 720896, 2, 262158, 720896, 2, 262159, 720896, 2, 327680, 720896, 2, 262144, 720896, 2, 196608, 720896, 2, 131072, 720896, 2, 65536, 720896, 2, 0, 720896, 2, 1, 720896, 2, 2, 720896, 2, 3, 720896, 2, 4, 720896, 2, 5, 720896, 2, 6, 720896, 2, 7, 720896, 2, 8, 720896, 2, 9, 720896, 2, 10, 720896, 2, 12, 720896, 2, 65542, 720896, 2, 131078, 720896, 2, 196614, 786432, 2, 262150, 720896, 2, 327686, 720896, 2, 327685, 720896, 2, 327684, 720896, 2, 327683, 720896, 2, 327682, 720896, 2, 327681, 720896, 2, 262145, 720896, 2, 196609, 720896, 1, 131073, 720896, 2, 65537, 786432, 1, 65538, 720896, 2, 65539, 720896, 2, 65540, 720896, 2, 65541, 720896, 2, 131077, 720896, 2, 196613, 720896, 2, 262149, 720896, 2, 262148, 720896, 1, 262146, 720896, 1, 196610, 720896, 2, 131074, 720896, 2, 131075, 720896, 2, 131076, 786432, 1, 196612, 720896, 2, 196611, 720896, 2, 655378, 720896, 2, 655377, 720896, 2, 655376, 720896, 2, 655375, 720896, 2, 655374, 720896, 2, 655373, 720896, 2, 655372, 720896, 2, 655371, 720896, 2, 655370, 720896, 2, 655369, 720896, 2, 655368, 720896, 2, 655367, 720896, 2, 655366, 720896, 2, 655365, 720896, 2, 655364, 720896, 2, 655363, 720896, 2, 655362, 720896, 2, 655361, 720896, 2, 655360, 720896, 2, 327695, 720896, 2, 327694, 720896, 2, 262147, 720896, 2, 11, 786432, 1)
[node name="BaseMark" type="Sprite2D" parent="."]
modulate = Color(1, 1, 1, 0.588235)
position = Vector2(1106, 544)
scale = Vector2(0.07, 0.07)
texture = ExtResource("3_ksc7k")
[node name="BaseMark2" type="Sprite2D" parent="."]
modulate = Color(1, 1, 1, 0.588235)
position = Vector2(927, 41)
scale = Vector2(0.07, 0.07)
texture = ExtResource("3_ksc7k")
[node name="Path2D" type="Path2D" parent="."]
curve = SubResource("Curve2D_jkmm5")
script = ExtResource("3_iv4av")

View file

@ -1,10 +1,11 @@
[gd_scene load_steps=18 format=3 uid="uid://i18iy1wmek4s"]
[gd_scene load_steps=19 format=3 uid="uid://i18iy1wmek4s"]
[ext_resource type="Script" path="res://scripts/stages/5/game_manager.gd" id="1_kectu"]
[ext_resource type="Texture2D" uid="uid://bq6hnxbt4w37u" path="res://assets/tileset/snowland/Snowland@64x64.png" id="1_s0uo6"]
[ext_resource type="PackedScene" uid="uid://bhnv1dsggssil" path="res://scenes/ui/pause_menu.tscn" id="2_tph65"]
[ext_resource type="PackedScene" uid="uid://cd5r1v6f8hahx" path="res://scenes/ui/tower_menu.tscn" id="3_dwrfi"]
[ext_resource type="Script" path="res://scripts/stages/5/summon.gd" id="3_h0a0o"]
[ext_resource type="Texture2D" uid="uid://dca4npsxwr1m3" path="res://assets/icons/base-mark.png" id="3_ygwr3"]
[ext_resource type="PackedScene" uid="uid://cy88k4uxt1v37" path="res://scenes/ui/game_stats.tscn" id="4_qm2yl"]
[ext_resource type="PackedScene" uid="uid://bvoenhbaqiqj2" path="res://scenes/towers/placement/placement.tscn" id="5_vmpbi"]
[ext_resource type="PackedScene" uid="uid://cikgeqqhctm7k" path="res://scenes/base/base.tscn" id="6_yj08v"]
@ -267,6 +268,12 @@ layer_1/y_sort_origin = 0
layer_1/z_index = 0
layer_1/tile_data = PackedInt32Array(589828, 786432, 9, 589831, 786432, 9, 196614, 786432, 9, 589834, 720896, 9, 65552, 720896, 9, 65541, 720896, 9, 458768, 786432, 9, 524289, 589824, 3, 589826, 655360, 4, 589824, 655360, 4, 262154, 589824, 13, 327681, 786432, 5)
[node name="BaseMark" type="Sprite2D" parent="."]
modulate = Color(1, 1, 1, 0.588235)
position = Vector2(929, 612)
scale = Vector2(0.07, 0.07)
texture = ExtResource("3_ygwr3")
[node name="Path2D" type="Path2D" parent="."]
curve = SubResource("Curve2D_sq2la")
script = ExtResource("3_h0a0o")

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=19 format=3 uid="uid://dcecwku0if8tg"]
[gd_scene load_steps=20 format=3 uid="uid://dcecwku0if8tg"]
[ext_resource type="Script" path="res://scripts/stages/6/game_manager.gd" id="1_04mdc"]
[ext_resource type="Texture2D" uid="uid://d36b03p0hs8kw" path="res://assets/tileset/ashlands/ashlands-32x32.png" id="1_a4nl1"]
@ -13,6 +13,7 @@
[ext_resource type="PackedScene" uid="uid://wywjvwp7ausj" path="res://scenes/ui/defeat.tscn" id="10_fyg8a"]
[ext_resource type="AudioStream" uid="uid://bn6agbc77m0au" path="res://assets/audio/stage.mp3" id="12_is64a"]
[ext_resource type="PackedScene" uid="uid://p0lkipd6a5lu" path="res://scenes/marker/marker.tscn" id="12_xutrf"]
[ext_resource type="Texture2D" uid="uid://dca4npsxwr1m3" path="res://assets/icons/base-mark.png" id="14_f4lh3"]
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_ebym7"]
texture = ExtResource("1_a4nl1")
@ -649,6 +650,18 @@ layer_1/y_sort_origin = 0
layer_1/z_index = 0
layer_1/tile_data = PackedInt32Array(851979, 1507338, 16, 786444, 1376266, 16, 786452, 1310730, 16, 851989, 1441802, 16, 1245209, 1507338, 16, 1179678, 1638410, 14, 1114143, 1507338, 14, 1114140, 1441802, 14, 589827, 1638410, 14, 327698, 1507338, 16, 393246, 1376266, 16, 524319, 1310730, 16, 1179659, 1441802, 14, 1179660, 1376266, 14, 589853, 1703946, 12, 393238, 1703946, 12, 786450, 1703946, 12, 393227, 1703946, 12, 851974, 1703946, 12, 327713, 1638410, 14, 393247, 1507338, 14, 262174, 1441802, 14, 262157, 1376266, 14, 262158, 1310730, 15, 196624, 1507338, 14, 1114136, 1703946, 12)
[node name="BaseMark" type="Sprite2D" parent="."]
modulate = Color(1, 1, 1, 0.588235)
position = Vector2(704, 610)
scale = Vector2(0.07, 0.07)
texture = ExtResource("14_f4lh3")
[node name="BaseMark2" type="Sprite2D" parent="."]
modulate = Color(1, 1, 1, 0.588235)
position = Vector2(128, 610)
scale = Vector2(0.07, 0.07)
texture = ExtResource("14_f4lh3")
[node name="Path2D" type="Path2D" parent="."]
curve = SubResource("Curve2D_iccfv")
script = ExtResource("3_gvmm4")

View file

@ -75,7 +75,7 @@ Supervisor :
- Darius Andana Haris, M. TI
Version : 0.4.0"
Version : 0.5.0"
autowrap_mode = 3
[node name="MarginContainer" type="MarginContainer" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer2"]

View file

@ -6,10 +6,14 @@ var speed: int = 0
var damage: int = 0
var dir = 0
var area_damage: bool = false
var area_damage_target = []
var slow_effect: bool = false
var enemies = []
var stop: bool = false
func _physics_process(_delta):
if stop:
return
var move_dir = Vector2(1,0).rotated(dir)
global_position += (move_dir * speed)
@ -19,11 +23,23 @@ func _on_VisibilityNotifier2D_screen_exited():
func _on_Bullet_body_entered(body):
if body.is_in_group("Enemy"):
if area_damage:
for enemy in area_damage_target:
$Sprite2D.hide()
stop = true
$AnimatedSprite2D.visible = true
$AnimatedSprite2D.play("default")
for enemy in enemies:
enemy.hit(damage)
await get_tree().create_timer(0.5).timeout
elif slow_effect:
body.get_parent().hit(damage)
body.get_parent().slow()
else:
body.get_parent().hit(damage)
queue_free()
func _on_body_entered(body):
if body.is_in_group("Enemy"):
enemies.append(body.get_parent())
func _on_body_exited(body):
enemies.erase(body.get_parent())

View file

@ -73,7 +73,6 @@ func _shoot():
bullet_instance.speed = speed
bullet_instance.damage = damage
bullet_instance.area_damage = area_damage
bullet_instance.area_damage_target = enemies
bullet_instance.slow_effect = slow_effect
get_tree().current_scene.add_child(bullet_instance)
health -= durability_reduction