My first 2D game in Godot 4.4
This commit is contained in:
BIN
pistol/impact/circle.png
Normal file
BIN
pistol/impact/circle.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 806 B |
34
pistol/impact/circle.png.import
Normal file
34
pistol/impact/circle.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dn80eu1qs371v"
|
||||
path="res://.godot/imported/circle.png-a2fa3270dee1c1c7e1cb0869903e82df.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://pistol/impact/circle.png"
|
||||
dest_files=["res://.godot/imported/circle.png-a2fa3270dee1c1c7e1cb0869903e82df.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
|
||||
10
pistol/impact/impact.gd
Normal file
10
pistol/impact/impact.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
extends Node2D
|
||||
|
||||
@onready var sprite = %Sprite
|
||||
|
||||
|
||||
func _ready():
|
||||
var tween = create_tween().set_parallel(true).set_ease(Tween.EASE_OUT)
|
||||
tween.tween_property(sprite, "scale", Vector2.ONE * 1.35, 0.3).from(Vector2.ONE * 0.6)
|
||||
tween.tween_property(sprite, "modulate:a", 0.0, 0.15).set_delay(0.15)
|
||||
tween.chain().tween_callback(queue_free)
|
||||
1
pistol/impact/impact.gd.uid
Normal file
1
pistol/impact/impact.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://c6w1u8mii1jdj
|
||||
13
pistol/impact/impact.tscn
Normal file
13
pistol/impact/impact.tscn
Normal file
@@ -0,0 +1,13 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://kcl4efkvrany"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c6w1u8mii1jdj" path="res://pistol/impact/impact.gd" id="1_4vum2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dn80eu1qs371v" path="res://pistol/impact/circle.png" id="2_wp1di"]
|
||||
|
||||
[node name="Impact" type="Node2D"]
|
||||
top_level = true
|
||||
script = ExtResource("1_4vum2")
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
modulate = Color(1, 0.831373, 0.239216, 1)
|
||||
texture = ExtResource("2_wp1di")
|
||||
Reference in New Issue
Block a user