Merge branch 'main' of http://meowo.cc:3000/meowo/LD54
commit
e769494c00
|
@ -1,7 +1,8 @@
|
||||||
[gd_scene load_steps=5 format=2]
|
[gd_scene load_steps=6 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://src/models/enemies/bat/sprites/bat_spriteframes.tres" type="SpriteFrames" id=1]
|
[ext_resource path="res://src/models/enemies/bat/sprites/bat_spriteframes.tres" type="SpriteFrames" id=1]
|
||||||
[ext_resource path="res://src/models/enemies/bat/bat.gd" type="Script" id=2]
|
[ext_resource path="res://src/models/enemies/bat/bat.gd" type="Script" id=2]
|
||||||
|
[ext_resource path="res://src/models/shadow/shadow.png" type="Texture" id=3]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id=1]
|
[sub_resource type="RectangleShape2D" id=1]
|
||||||
extents = Vector2( 4, 3 )
|
extents = Vector2( 4, 3 )
|
||||||
|
@ -32,3 +33,8 @@ shape = SubResource( 1 )
|
||||||
[node name="SameSpeciesCollider" type="CollisionShape2D" parent="."]
|
[node name="SameSpeciesCollider" type="CollisionShape2D" parent="."]
|
||||||
position = Vector2( 8.5, 10 )
|
position = Vector2( 8.5, 10 )
|
||||||
shape = SubResource( 2 )
|
shape = SubResource( 2 )
|
||||||
|
|
||||||
|
[node name="Shadow" type="Sprite" parent="."]
|
||||||
|
position = Vector2( 11, 21 )
|
||||||
|
z_index = -1
|
||||||
|
texture = ExtResource( 3 )
|
||||||
|
|
|
@ -45,7 +45,7 @@ func _physics_process(delta):
|
||||||
velocity.x = cos(angle + 180)
|
velocity.x = cos(angle + 180)
|
||||||
velocity.y = sin(angle + 180)
|
velocity.y = sin(angle + 180)
|
||||||
|
|
||||||
self.global_position.y += sin(Time.get_ticks_msec() * 0.01) / 3
|
$Sprite.global_position.y += sin(Time.get_ticks_msec() * 0.01) / 3
|
||||||
|
|
||||||
velocity *= speed * speed_multiplier
|
velocity *= speed * speed_multiplier
|
||||||
if not shooting:
|
if not shooting:
|
||||||
|
|
|
@ -25,7 +25,6 @@ flip_h = true
|
||||||
use_parent_material = true
|
use_parent_material = true
|
||||||
frames = ExtResource( 1 )
|
frames = ExtResource( 1 )
|
||||||
animation = "idle"
|
animation = "idle"
|
||||||
frame = 2
|
|
||||||
playing = true
|
playing = true
|
||||||
centered = false
|
centered = false
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
[gd_scene load_steps=4 format=2]
|
[gd_scene load_steps=5 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://src/models/enemies/rat/sprites/rat_spriteframes.tres" type="SpriteFrames" id=1]
|
[ext_resource path="res://src/models/enemies/rat/sprites/rat_spriteframes.tres" type="SpriteFrames" id=1]
|
||||||
[ext_resource path="res://src/models/enemies/rat/rat.gd" type="Script" id=2]
|
[ext_resource path="res://src/models/enemies/rat/rat.gd" type="Script" id=2]
|
||||||
|
[ext_resource path="res://src/models/shadow/shadow.png" type="Texture" id=3]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id=1]
|
[sub_resource type="RectangleShape2D" id=1]
|
||||||
extents = Vector2( 8, 3.5 )
|
extents = Vector2( 8, 3.5 )
|
||||||
|
@ -11,9 +12,10 @@ script = ExtResource( 2 )
|
||||||
|
|
||||||
[node name="Sprite" type="AnimatedSprite" parent="."]
|
[node name="Sprite" type="AnimatedSprite" parent="."]
|
||||||
use_parent_material = true
|
use_parent_material = true
|
||||||
|
position = Vector2( -3, 0 )
|
||||||
frames = ExtResource( 1 )
|
frames = ExtResource( 1 )
|
||||||
animation = "idle"
|
animation = "idle"
|
||||||
frame = 2
|
frame = 3
|
||||||
playing = true
|
playing = true
|
||||||
centered = false
|
centered = false
|
||||||
|
|
||||||
|
@ -22,3 +24,8 @@ centered = false
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||||
position = Vector2( 11, 5.5 )
|
position = Vector2( 11, 5.5 )
|
||||||
shape = SubResource( 1 )
|
shape = SubResource( 1 )
|
||||||
|
|
||||||
|
[node name="Shadow" type="Sprite" parent="."]
|
||||||
|
position = Vector2( 11, 9 )
|
||||||
|
z_index = -1
|
||||||
|
texture = ExtResource( 3 )
|
||||||
|
|
|
@ -1,14 +1,15 @@
|
||||||
[gd_scene load_steps=8 format=2]
|
[gd_scene load_steps=9 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://src/models/player/sprites/player_spriteframes.tres" type="SpriteFrames" id=1]
|
[ext_resource path="res://src/models/player/sprites/player_spriteframes.tres" type="SpriteFrames" id=1]
|
||||||
[ext_resource path="res://src/models/player/player.gd" type="Script" id=2]
|
[ext_resource path="res://src/models/player/player.gd" type="Script" id=2]
|
||||||
[ext_resource path="res://res/shaders/colorize.tres" type="Material" id=3]
|
[ext_resource path="res://res/shaders/colorize.tres" type="Material" id=3]
|
||||||
|
[ext_resource path="res://src/models/shadow/shadow.png" type="Texture" id=4]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id=1]
|
[sub_resource type="RectangleShape2D" id=1]
|
||||||
extents = Vector2( 4, 4 )
|
extents = Vector2( 3.5, 3.5 )
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id=2]
|
[sub_resource type="RectangleShape2D" id=2]
|
||||||
extents = Vector2( 7, 11 )
|
extents = Vector2( 3.5, 9 )
|
||||||
|
|
||||||
[sub_resource type="Animation" id=4]
|
[sub_resource type="Animation" id=4]
|
||||||
resource_name = "RESET"
|
resource_name = "RESET"
|
||||||
|
@ -48,7 +49,7 @@ tracks/0/loop_wrap = true
|
||||||
tracks/0/imported = false
|
tracks/0/imported = false
|
||||||
tracks/0/enabled = true
|
tracks/0/enabled = true
|
||||||
tracks/0/keys = {
|
tracks/0/keys = {
|
||||||
"times": PoolRealArray( 0, 0.9 ),
|
"times": PoolRealArray( 0, 2 ),
|
||||||
"transitions": PoolRealArray( 1, 1 ),
|
"transitions": PoolRealArray( 1, 1 ),
|
||||||
"update": 1,
|
"update": 1,
|
||||||
"values": [ true, false ]
|
"values": [ true, false ]
|
||||||
|
@ -111,4 +112,9 @@ gravity = Vector2( 0, -10 )
|
||||||
initial_velocity = 8.0
|
initial_velocity = 8.0
|
||||||
color = Color( 0.458824, 0.458824, 0.458824, 0.588235 )
|
color = Color( 0.458824, 0.458824, 0.458824, 0.588235 )
|
||||||
|
|
||||||
|
[node name="Shadow" type="Sprite" parent="."]
|
||||||
|
position = Vector2( 11, 24 )
|
||||||
|
z_index = -1
|
||||||
|
texture = ExtResource( 4 )
|
||||||
|
|
||||||
[connection signal="area_entered" from="EnemyCollision" to="." method="area_entered"]
|
[connection signal="area_entered" from="EnemyCollision" to="." method="area_entered"]
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
|
@ -0,0 +1,35 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/shadow.png-69c591d8694c58cb98a3b2b2f9ef76e8.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://src/models/shadow/shadow.png"
|
||||||
|
dest_files=[ "res://.import/shadow.png-69c591d8694c58cb98a3b2b2f9ef76e8.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
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=false
|
||||||
|
svg/scale=1.0
|
Loading…
Reference in New Issue