best attempt at a sawblad :(

This commit is contained in:
Haze Weathers 2023-02-22 16:10:33 -05:00
parent 4698dc2b0e
commit 793e7ef11e
3 changed files with 67 additions and 2 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=21 format=2]
[gd_scene load_steps=27 format=2]
[ext_resource path="res://objects/player/player.tscn" type="PackedScene" id=1]
[ext_resource path="res://tilesets/t_cave.tres" type="TileSet" id=2]
@ -16,13 +16,36 @@
[ext_resource path="res://objects/environment/falling_block/falling_block.tscn" type="PackedScene" id=14]
[ext_resource path="res://objects/environment/moving_platform/moving_platform.tscn" type="PackedScene" id=15]
[ext_resource path="res://objects/respawn_point.tscn" type="PackedScene" id=16]
[ext_resource path="res://scripts/1px_border.gdshader" type="Shader" id=17]
[ext_resource path="res://objects/enemy/mine.tscn" type="PackedScene" id=18]
[ext_resource path="res://objects/enemy/explosion.tscn" type="PackedScene" id=19]
[ext_resource path="res://objects/enemy/tin.tscn" type="PackedScene" id=20]
[ext_resource path="res://graphics/enemy/sawblade.png" type="Texture" id=21]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 16, 20 )
[sub_resource type="ShaderMaterial" id=4]
shader = ExtResource( 17 )
shader_param/border_color = Color( 0, 0, 0, 1 )
shader_param/border_corners = false
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 21 )
region = Rect2( 0, 0, 12, 12 )
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 21 )
region = Rect2( 12, 0, 12, 12 )
[sub_resource type="SpriteFrames" id=5]
animations = [ {
"frames": [ SubResource( 2 ), SubResource( 3 ) ],
"loop": true,
"name": "default",
"speed": 10.0
} ]
[node name="Map2" type="Node2D" groups=["map"]]
script = ExtResource( 11 )
@ -31,7 +54,7 @@ current = false
[node name="Sprite" type="Sprite" parent="Camera2D"]
position = Vector2( 128, 96 )
z_index = -2
z_index = -50
texture = ExtResource( 7 )
__meta__ = {
"_edit_lock_": true
@ -136,3 +159,10 @@ down_boundary = 3.0
position = Vector2( 32, 72 )
up_boundary = 3.0
down_boundary = 3.0
[node name="SawTest" type="AnimatedSprite" parent="."]
material = SubResource( 4 )
position = Vector2( 40, 128 )
z_index = -3
frames = SubResource( 5 )
playing = true