123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288 |
- [gd_scene load_steps=40 format=2]
- [ext_resource path="res://art/1/character 1__Idle.png" type="Texture" id=1]
- [ext_resource path="res://art/1/character 1__WALK.png" type="Texture" id=2]
- [ext_resource path="res://art/1/character 1__roll.png" type="Texture" id=3]
- [ext_resource path="res://weapons/sword1.tscn" type="PackedScene" id=4]
- [ext_resource path="res://font/yoster.ttf" type="DynamicFontData" id=5]
- [sub_resource type="AtlasTexture" id=1]
- atlas = ExtResource( 1 )
- region = Rect2( 0, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=2]
- atlas = ExtResource( 1 )
- region = Rect2( 120, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=3]
- atlas = ExtResource( 1 )
- region = Rect2( 240, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=4]
- atlas = ExtResource( 1 )
- region = Rect2( 360, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=5]
- atlas = ExtResource( 2 )
- region = Rect2( 0, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=6]
- atlas = ExtResource( 2 )
- region = Rect2( 120, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=7]
- atlas = ExtResource( 2 )
- region = Rect2( 240, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=8]
- atlas = ExtResource( 2 )
- region = Rect2( 360, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=9]
- atlas = ExtResource( 2 )
- region = Rect2( 480, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=10]
- atlas = ExtResource( 2 )
- region = Rect2( 600, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=11]
- atlas = ExtResource( 2 )
- region = Rect2( 720, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=12]
- atlas = ExtResource( 2 )
- region = Rect2( 840, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=13]
- atlas = ExtResource( 2 )
- region = Rect2( 960, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=14]
- atlas = ExtResource( 2 )
- region = Rect2( 1080, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=15]
- atlas = ExtResource( 3 )
- region = Rect2( 0, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=16]
- atlas = ExtResource( 3 )
- region = Rect2( 120, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=17]
- atlas = ExtResource( 3 )
- region = Rect2( 240, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=18]
- atlas = ExtResource( 3 )
- region = Rect2( 360, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=19]
- atlas = ExtResource( 3 )
- region = Rect2( 480, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=20]
- atlas = ExtResource( 3 )
- region = Rect2( 600, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=21]
- atlas = ExtResource( 3 )
- region = Rect2( 720, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=22]
- atlas = ExtResource( 3 )
- region = Rect2( 840, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=23]
- atlas = ExtResource( 3 )
- region = Rect2( 960, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=24]
- atlas = ExtResource( 3 )
- region = Rect2( 1080, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=25]
- atlas = ExtResource( 3 )
- region = Rect2( 1200, 0, 120, 80 )
- [sub_resource type="AtlasTexture" id=26]
- atlas = ExtResource( 3 )
- region = Rect2( 1320, 0, 120, 80 )
- [sub_resource type="SpriteFrames" id=27]
- animations = [ {
- "frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 2 ), SubResource( 3 ) ],
- "loop": true,
- "name": "idle",
- "speed": 4.0
- }, {
- "frames": [ SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ), SubResource( 14 ) ],
- "loop": true,
- "name": "walk",
- "speed": 15.0
- }, {
- "frames": [ SubResource( 15 ), SubResource( 16 ), SubResource( 17 ), SubResource( 18 ), SubResource( 19 ), SubResource( 20 ), SubResource( 21 ), SubResource( 22 ), SubResource( 23 ), SubResource( 24 ), SubResource( 25 ), SubResource( 26 ) ],
- "loop": true,
- "name": "roll",
- "speed": 15.0
- } ]
- [sub_resource type="GDScript" id=28]
- script/source = "extends AnimatedSprite
- # Declare member variables here. Examples:
- # var a = 2
- # var b = \"text\"
- # Called when the node enters the scene tree for the first time.
- func _ready():
- speed_scale = rand_range(0.8,1.2)
- pass # Replace with function body.
- func level_up_anim():
- $AnimationPlayer.play('leveup')
- # Called every frame. 'delta' is the elapsed time since the previous frame.
- #func _process(delta):
- # pass
- "
- [sub_resource type="Animation" id=29]
- resource_name = "leveup"
- length = 2.0
- tracks/0/type = "value"
- tracks/0/path = NodePath("Label/Label:rect_position")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/keys = {
- "times": PoolRealArray( 0, 2 ),
- "transitions": PoolRealArray( 1, 1 ),
- "update": 0,
- "values": [ Vector2( -29.5, -6 ), Vector2( -29.5, -67.1752 ) ]
- }
- tracks/1/type = "value"
- tracks/1/path = NodePath("Label/Label:rect_scale")
- tracks/1/interp = 1
- tracks/1/loop_wrap = true
- tracks/1/imported = false
- tracks/1/enabled = true
- tracks/1/keys = {
- "times": PoolRealArray( 0, 0.2, 1.3, 2 ),
- "transitions": PoolRealArray( 1, 1, 1, 1 ),
- "update": 0,
- "values": [ Vector2( 0, 3 ), Vector2( 1, 1 ), Vector2( 1, 1 ), Vector2( 3, 0 ) ]
- }
- tracks/2/type = "value"
- tracks/2/path = NodePath("Line2D:modulate")
- tracks/2/interp = 1
- tracks/2/loop_wrap = true
- tracks/2/imported = false
- tracks/2/enabled = true
- tracks/2/keys = {
- "times": PoolRealArray( 0, 0.2, 1.3, 2 ),
- "transitions": PoolRealArray( 1, 1, 1, 1 ),
- "update": 0,
- "values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
- }
- [sub_resource type="Animation" id=30]
- resource_name = "leveup"
- length = 0.2
- loop = true
- tracks/0/type = "value"
- tracks/0/path = NodePath("Label/Label:custom_colors/font_color")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/keys = {
- "times": PoolRealArray( 0, 0.1 ),
- "transitions": PoolRealArray( 1, 1 ),
- "update": 0,
- "values": [ Color( 1, 0.717647, 0.305882, 1 ), Color( 0.631373, 1, 1, 1 ) ]
- }
- tracks/1/type = "value"
- tracks/1/path = NodePath("Label/Label:custom_colors/font_outline_modulate")
- tracks/1/interp = 1
- tracks/1/loop_wrap = true
- tracks/1/imported = false
- tracks/1/enabled = true
- tracks/1/keys = {
- "times": PoolRealArray( 0, 0.1 ),
- "transitions": PoolRealArray( 1, 1 ),
- "update": 0,
- "values": [ Color( 1, 0.156863, 0.0470588, 1 ), Color( 0.0784314, 0.286275, 0.552941, 1 ) ]
- }
- [sub_resource type="Shader" id=31]
- code = "shader_type canvas_item;
- render_mode blend_mix;
- void vertex(){
- VERTEX.y += (sin(TIME*32f)* mix(VERTEX.x,1f,0.8));
- }"
- [sub_resource type="ShaderMaterial" id=32]
- shader = SubResource( 31 )
- [sub_resource type="Gradient" id=33]
- offsets = PoolRealArray( 0.510949, 1 )
- colors = PoolColorArray( 1, 1, 1, 0.411765, 1, 1, 1, 0 )
- [sub_resource type="DynamicFont" id=34]
- size = 12
- outline_size = 2
- font_data = ExtResource( 5 )
- [node name="playersprite" type="AnimatedSprite"]
- frames = SubResource( 27 )
- animation = "idle"
- frame = 2
- playing = true
- offset = Vector2( 3.72692, -21.0081 )
- script = SubResource( 28 )
- [node name="weapon" parent="." instance=ExtResource( 4 )]
- visible = false
- position = Vector2( 0, -8.0534 )
- scale = Vector2( 0.75, 0.75 )
- [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
- anims/leveup = SubResource( 29 )
- [node name="AnimationPlayer2" type="AnimationPlayer" parent="."]
- autoplay = "leveup"
- anims/leveup = SubResource( 30 )
- [node name="Line2D" type="Line2D" parent="."]
- modulate = Color( 1, 1, 1, 0 )
- material = SubResource( 32 )
- points = PoolVector2Array( 0, 25, -0.651, -65 )
- width = 32.0
- default_color = Color( 1, 1, 1, 1 )
- gradient = SubResource( 33 )
- [node name="Label" type="Node2D" parent="."]
- [node name="Label" type="Label" parent="Label"]
- anchor_left = 0.5
- anchor_top = 0.5
- anchor_right = 0.5
- anchor_bottom = 0.5
- margin_left = -29.5
- margin_top = -67.1752
- margin_right = 29.5
- margin_bottom = -55.1752
- rect_scale = Vector2( 3, 1e-05 )
- rect_pivot_offset = Vector2( 27.5174, 6.3988 )
- custom_colors/font_color = Color( 0.688718, 0.956076, 0.892019, 1 )
- custom_colors/font_outline_modulate = Color( 0.221796, 0.266142, 0.474243, 1 )
- custom_fonts/font = SubResource( 34 )
- text = "Level Up"
- align = 1
- valign = 1
|