Skip to content

Commit

Permalink
Add torchs
Browse files Browse the repository at this point in the history
  • Loading branch information
rsanchezbalo committed Jul 15, 2016
1 parent 42cdda3 commit 15479ec
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 1 deletion.
Binary file added ase/torch.ase
Binary file not shown.
Binary file added ase/torch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 45 additions & 1 deletion main.tscn
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[gd_scene load_steps=11 format=1]
[gd_scene load_steps=12 format=1]

[ext_resource path="res://main.gd" type="Script" id=1]
[ext_resource path="res://ase/scenario_base_castle.png" type="Texture" id=2]
[ext_resource path="res://clock.tscn" type="PackedScene" id=3]
[ext_resource path="res://ball.tscn" type="PackedScene" id=4]
[ext_resource path="res://torch.tscn" type="PackedScene" id=5]

[sub_resource type="RectangleShape2D" id=1]

Expand Down Expand Up @@ -173,6 +174,29 @@ z/z = 2
collision/layers = 6
collision/mask = 6

[node name="SpotLight" type="SpotLight" parent="ball"]

_import_transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
layers = 1
params/enabled = true
params/editor_only = false
params/bake_mode = 0
params/energy = 1.0
colors/diffuse = Color( 0.0372009, 0.0607548, 0.414062, 1 )
colors/specular = Color( 0.964844, 0.0603027, 0.0603027, 1 )
shadow/shadow = false
shadow/darkening = 0.0
shadow/z_offset = 0.05
shadow/z_slope_scale = 0.0
shadow/esm_multiplier = 60.0
shadow/blur_passes = 1.0
projector = null
operator = 0
params/radius = 2.0
params/attenuation = 1.0
params/spot_angle = 68.9062
params/spot_attenuation = 1.0

[node name="net" type="Node2D" parent="."]

transform/pos = Vector2( 329.907, 207.165 )
Expand Down Expand Up @@ -347,6 +371,26 @@ shape = SubResource( 6 )
trigger = false
_update_shape_index = 0

[node name="Sprite" parent="." instance=ExtResource( 5 )]

transform/pos = Vector2( 119.959, 58.3906 )
transform/scale = Vector2( 1, 1 )

[node name="Sprite1" parent="." instance=ExtResource( 5 )]

transform/pos = Vector2( 181.527, 59.185 )
transform/scale = Vector2( 1, 1 )

[node name="Sprite2" parent="." instance=ExtResource( 5 )]

transform/pos = Vector2( 460.769, 58.7878 )
transform/scale = Vector2( 1, 1 )

[node name="Sprite3" parent="." instance=ExtResource( 5 )]

transform/pos = Vector2( 524.721, 59.5822 )
transform/scale = Vector2( 1, 1 )

[connection signal="body_enter" from="3points" to="." method="_on_3points"]

[connection signal="body_enter" from="5points" to="." method="_on_5points"]
Expand Down
61 changes: 61 additions & 0 deletions torch.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
[gd_scene load_steps=4 format=1]

[ext_resource path="res://ase/torch.png" type="Texture" id=1]
[ext_resource path="res://ase/light/light1.png" type="Texture" id=2]

[sub_resource type="Animation" id=1]

resource/name = "torchlight"
length = 2.0
loop = true
step = 0.1
tracks/0/type = "value"
tracks/0/path = NodePath(".:color")
tracks/0/interp = 1
tracks/0/keys = { "cont":true, "times":FloatArray( 0, 1, 2 ), "transitions":FloatArray( 1, 1, 1 ), "values":[ Color( 0.671875, 0.475283, 0.136475, 1 ), Color( 0.671875, 0.33725, 0.136475, 1 ), Color( 0.671875, 0.475283, 0.136475, 1 ) ] }
tracks/1/type = "value"
tracks/1/path = NodePath(".:scale")
tracks/1/interp = 1
tracks/1/keys = { "cont":true, "times":FloatArray( 0, 1, 2 ), "transitions":FloatArray( 1, 1, 1 ), "values":[ 1.0, 1.2, 1.0 ] }

[node name="Sprite" type="Sprite"]

z/z = 8
texture = ExtResource( 1 )
hframes = 4

[node name="Light2D" type="Light2D" parent="."]

transform/pos = Vector2( 0.295264, 12.4469 )
transform/scale = Vector2( 1.23011, 1.3809 )
enabled = true
texture = ExtResource( 2 )
offset = Vector2( 0, 0 )
scale = 1.13298
color = Color( 0.671875, 0.383505, 0.136475, 1 )
energy = 1.0
mode = 0
range/height = 0.0
range/z_min = -1024
range/z_max = 1024
range/layer_min = 0
range/layer_max = 0
range/item_mask = 1
shadow/enabled = false
shadow/color = Color( 0, 0, 0, 0 )
shadow/buffer_size = 2048
shadow/esm_multiplier = 80.0
shadow/item_mask = 1

[node name="AnimationPlayer" type="AnimationPlayer" parent="Light2D"]

playback/process_mode = 1
playback/default_blend_time = 0.0
root/root = NodePath("..")
anims/torchlight = SubResource( 1 )
playback/active = true
playback/speed = 0.8
blend_times = [ ]
autoplay = "torchlight"


0 comments on commit 15479ec

Please sign in to comment.