Working with Jennie to adjust enemy identification in bullet.gd script

This commit is contained in:
Henry 2026-02-28 19:12:16 +00:00
parent 448009b6e4
commit aae3238906
3 changed files with 47 additions and 31 deletions

View file

@ -2,13 +2,32 @@
[ext_resource type="Script" uid="uid://7ls7phfcupal" path="res://scenes/enemy_crt.gd" id="1_ugdur"]
[ext_resource type="Texture2D" uid="uid://b5pswf7r8b7j4" path="res://sprites/crt.png" id="2_emiuq"]
[ext_resource type="Shader" uid="uid://dfywtah53il1m" path="res://shaders/player_hit.gdshader" id="2_gas3w"]
[ext_resource type="Texture2D" uid="uid://cy4jggxmnohbb" path="res://sprites/chicken.png" id="2_ugdur"]
[ext_resource type="Texture2D" uid="uid://bm7fgqwqfqmf4" path="res://sprites/explosion_pallete-swap.png" id="3_emiuq"]
[ext_resource type="AudioStream" uid="uid://cbi5q575w1g1n" path="res://sounds/CRT_IMPACT.wav" id="6_gas3w"]
[sub_resource type="Shader" id="Shader_emiuq"]
code = "shader_type canvas_item;
uniform float toggle;
void vertex() {
// Called for every vertex the material is visible on.
}
void fragment() {
COLOR = texture(TEXTURE, UV);
COLOR.r = mix(COLOR.r, abs(sin(TIME * 20.25)), toggle);
}
//void light() {
// // Called for every pixel for every light affecting the CanvasItem.
// // Uncomment to replace the default light processing function with this one.
//}
"
[sub_resource type="ShaderMaterial" id="ShaderMaterial_gas3w"]
shader = ExtResource("2_gas3w")
shader = SubResource("Shader_emiuq")
shader_parameter/toggle = 0.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4gyqm"]