Browse Source

added cammera and laser

galo 2 years ago
parent
commit
6b6a146210

BIN
camera.png


+ 3 - 0
godot_project/.import/2strail.png-66e7ea2ed1c9bd64a2ece03fefb94f6c.md5

@@ -0,0 +1,3 @@
+source_md5="9dc92bff10fb4585152d135928ab7d8d"
+dest_md5="6da11e25d61159848875ffb3f73fb9ff"
+

BIN
godot_project/.import/2strail.png-66e7ea2ed1c9bd64a2ece03fefb94f6c.stex


+ 3 - 0
godot_project/.import/camera.png-b0b88c537f13bbf3b97a5735e4e3dab8.md5

@@ -0,0 +1,3 @@
+source_md5="1caadf970a7d0ae679a8d86db2e10bf1"
+dest_md5="7fa5a97627c2d67b5ad3fd85eefe81fd"
+

BIN
godot_project/.import/camera.png-b0b88c537f13bbf3b97a5735e4e3dab8.stex


+ 3 - 0
godot_project/.import/light.png-06e94102f0cce323cff7daad56cf3030.md5

@@ -0,0 +1,3 @@
+source_md5="e8291dcef44ab3ba69dec12b186de9ce"
+dest_md5="2fc4d95e6cdebc1a20c4bda89a0670a1"
+

BIN
godot_project/.import/light.png-06e94102f0cce323cff7daad56cf3030.stex


BIN
godot_project/2strail.png


+ 34 - 0
godot_project/2strail.png.import

@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="StreamTexture"
+path="res://.import/2strail.png-66e7ea2ed1c9bd64a2ece03fefb94f6c.stex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://2strail.png"
+dest_files=[ "res://.import/2strail.png-66e7ea2ed1c9bd64a2ece03fefb94f6c.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=true
+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
+stream=false
+size_limit=0
+detect_3d=true
+svg/scale=1.0

BIN
godot_project/camera.png


+ 34 - 0
godot_project/camera.png.import

@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="StreamTexture"
+path="res://.import/camera.png-b0b88c537f13bbf3b97a5735e4e3dab8.stex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://camera.png"
+dest_files=[ "res://.import/camera.png-b0b88c537f13bbf3b97a5735e4e3dab8.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
+stream=false
+size_limit=0
+detect_3d=true
+svg/scale=1.0

BIN
godot_project/camera.png~


+ 7 - 3
godot_project/camera.tscn

@@ -1,7 +1,7 @@
 [gd_scene load_steps=6 format=2]
 
 [ext_resource path="res://camera.gd" type="Script" id=1]
-[ext_resource path="res://icon.png" type="Texture" id=2]
+[ext_resource path="res://camera.png" type="Texture" id=3]
 
 [sub_resource type="StyleBoxFlat" id=1]
 bg_color = Color( 0.996078, 0, 0, 1 )
@@ -66,9 +66,13 @@ one_shot = true
 rotation = -1.5708
 
 [node name="Sprite" type="Sprite" parent="Node2D"]
-modulate = Color( 0.996078, 0.0117647, 0.72549, 1 )
 scale = Vector2( 0.25, 0.75 )
-texture = ExtResource( 2 )
+
+[node name="camera" type="Sprite" parent="Node2D/Sprite"]
+position = Vector2( -19.2037, 2.87305 )
+rotation = 1.57081
+scale = Vector2( 1.33333, 4 )
+texture = ExtResource( 3 )
 
 [node name="detection_level_1" type="Area2D" parent="Node2D"]
 collision_layer = 0

+ 5 - 1
godot_project/laser.tscn

@@ -1,7 +1,8 @@
-[gd_scene load_steps=4 format=2]
+[gd_scene load_steps=5 format=2]
 
 [ext_resource path="res://laser.gd" type="Script" id=1]
 [ext_resource path="res://icon.png" type="Texture" id=2]
+[ext_resource path="res://lasersprite.tscn" type="PackedScene" id=3]
 
 [sub_resource type="CircleShape2D" id=1]
 radius = 10.1242
@@ -40,3 +41,6 @@ shape = SubResource( 1 )
 [node name="CollisionShape2D2" type="CollisionShape2D" parent="."]
 position = Vector2( 240, 0 )
 shape = SubResource( 1 )
+
+[node name="2strail" parent="." instance=ExtResource( 3 )]
+position = Vector2( 121.911, 0.594138 )

+ 45 - 0
godot_project/lasersprite.tscn

@@ -0,0 +1,45 @@
+[gd_scene load_steps=6 format=2]
+
+[ext_resource path="res://2strail.png" type="Texture" id=1]
+[ext_resource path="res://light.png" type="Texture" id=2]
+
+[sub_resource type="Shader" id=1]
+code = "shader_type canvas_item;
+render_mode blend_add;
+
+void fragment(){
+	COLOR.a = texture(TEXTURE,UV).a - sin(TIME*20f)/30f;
+}"
+
+[sub_resource type="ShaderMaterial" id=2]
+shader = SubResource( 1 )
+
+[sub_resource type="CanvasItemMaterial" id=3]
+blend_mode = 1
+
+[node name="2strail" type="Sprite"]
+position = Vector2( 1002, 495.375 )
+scale = Vector2( 28.75, 1 )
+texture = ExtResource( 1 )
+
+[node name="2strail2" type="Sprite" parent="."]
+modulate = Color( 1, 0, 0, 1 )
+material = SubResource( 2 )
+position = Vector2( -0.0492477, -0.762421 )
+scale = Vector2( 1, 3.68967 )
+z_index = 1
+texture = ExtResource( 1 )
+
+[node name="light" type="Sprite" parent="2strail2"]
+modulate = Color( 1, 1, 1, 0.501961 )
+material = SubResource( 3 )
+position = Vector2( -3.92375, 0.882786 )
+scale = Vector2( 0.0395468, 0.298902 )
+texture = ExtResource( 2 )
+
+[node name="light2" type="Sprite" parent="2strail2"]
+modulate = Color( 1, 1, 1, 0.501961 )
+material = SubResource( 3 )
+position = Vector2( 4.05212, 0.626678 )
+scale = Vector2( 0.0395468, 0.298902 )
+texture = ExtResource( 2 )

BIN
godot_project/light.png


+ 34 - 0
godot_project/light.png.import

@@ -0,0 +1,34 @@
+[remap]
+
+importer="texture"
+type="StreamTexture"
+path="res://.import/light.png-06e94102f0cce323cff7daad56cf3030.stex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://light.png"
+dest_files=[ "res://.import/light.png-06e94102f0cce323cff7daad56cf3030.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=true
+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
+stream=false
+size_limit=0
+detect_3d=true
+svg/scale=1.0