✨ Turret shooting and damaing
This commit is contained in:
BIN
Scenes/Entities/Bullet.png
Normal file
BIN
Scenes/Entities/Bullet.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 659 KiB |
34
Scenes/Entities/Bullet.png.import
Normal file
34
Scenes/Entities/Bullet.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b5mb8tu15rc2p"
|
||||
path="res://.godot/imported/Bullet.png-db4c50cb16094f39ca6a1b9de30a2fe2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Scenes/Entities/Bullet.png"
|
||||
dest_files=["res://.godot/imported/Bullet.png-db4c50cb16094f39ca6a1b9de30a2fe2.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
|
18
Scenes/Entities/Bullet.tscn
Normal file
18
Scenes/Entities/Bullet.tscn
Normal file
@@ -0,0 +1,18 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://erqawdsydh6a"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b5mb8tu15rc2p" path="res://Scenes/Entities/Bullet.png" id="1_fi8au"]
|
||||
[ext_resource type="Script" uid="uid://vgx2a8gm7l8b" path="res://Scripts/Entities/Bullet.cs" id="1_k5b1m"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_fi8au"]
|
||||
size = Vector2(44, 12)
|
||||
|
||||
[node name="Bullet" type="Area2D"]
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_k5b1m")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.03, 0.03)
|
||||
texture = ExtResource("1_fi8au")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_fi8au")
|
@@ -7,6 +7,8 @@
|
||||
size = Vector2(60, 74)
|
||||
|
||||
[node name="Enemy" type="CharacterBody2D"]
|
||||
collision_layer = 2
|
||||
collision_mask = 3
|
||||
script = ExtResource("1_jajit")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
|
@@ -4,6 +4,7 @@
|
||||
[ext_resource type="Texture2D" uid="uid://jye6c2ehuxtg" path="res://Scenes/Entities/Player.png" id="1_ucweq"]
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
collision_mask = 3
|
||||
script = ExtResource("1_08t41")
|
||||
MinZoom = 0.1
|
||||
MaxZoom = 5.0
|
||||
|
Reference in New Issue
Block a user