Skip to content

Commit

Permalink
lighting initilized
Browse files Browse the repository at this point in the history
  • Loading branch information
MIfeanyi committed Sep 21, 2017
1 parent 6598ad2 commit d259b05
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 10 deletions.
48 changes: 38 additions & 10 deletions game.tscn
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[gd_scene load_steps=15 format=1]
[gd_scene load_steps=16 format=1]

[ext_resource path="res://tilesets/level1.tres" type="TileSet" id=1]
[ext_resource path="res://player.gd" type="Script" id=2]
[ext_resource path="res://gfx/Endless/Knight.png" type="Texture" id=3]
[ext_resource path="res://gfx/UI/health.png" type="Texture" id=4]
[ext_resource path="res://tutorial.gd" type="Script" id=5]
[ext_resource path="res://gfx/Endless/level1_08.png" type="Texture" id=6]
[ext_resource path="res://gfx/Endless/soul.png" type="Texture" id=7]
[ext_resource path="res://gfx/lighting/light mask.png" type="Texture" id=4]
[ext_resource path="res://gfx/UI/health.png" type="Texture" id=5]
[ext_resource path="res://tutorial.gd" type="Script" id=6]
[ext_resource path="res://gfx/Endless/level1_08.png" type="Texture" id=7]
[ext_resource path="res://gfx/Endless/soul.png" type="Texture" id=8]

[sub_resource type="RectangleShape2D" id=2]

Expand Down Expand Up @@ -208,28 +209,54 @@ offset = Vector2( 0, 0 )
rotation = 0.0
scale = Vector2( 1, 1 )
[node name="Light2D" type="Light2D" parent="Game/Player/UI"]
transform/pos = Vector2( 402.211, 300.438 )
transform/scale = Vector2( 2.66724, 1.98466 )
enabled = true
editor_only = false
texture = ExtResource( 4 )
offset = Vector2( 0, 0 )
scale = 1.0
color = Color( 1, 1, 1, 1 )
energy = 1.02
mode = 3
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="Elements" type="Node" parent="Game/Player/UI"]
[node name="health" type="Node2D" parent="Game/Player/UI/Elements"]
editor/display_folded = true
visibility/light_mask = 0
[node name="health" type="Sprite" parent="Game/Player/UI/Elements/health"]
visibility/light_mask = 0
transform/pos = Vector2( 118.779, 35.7233 )
transform/scale = Vector2( 3.57411, 0.33353 )
texture = ExtResource( 4 )
texture = ExtResource( 5 )
[node name="Tutorial" type="Node2D" parent="Game/Player/UI"]
transform/pos = Vector2( 146.16, 511.111 )
transform/scale = Vector2( 9.0864, 5.71754 )
script/script = ExtResource( 5 )
script/script = ExtResource( 6 )
[node name="back" type="Sprite" parent="Game/Player/UI/Tutorial"]
visibility/opacity = 0.0
texture = ExtResource( 6 )
visibility/light_mask = 0
texture = ExtResource( 7 )
[node name="anim" type="AnimationPlayer" parent="Game/Player/UI/Tutorial"]
Expand All @@ -246,6 +273,7 @@ script/script = SubResource( 8 )
[node name="Label" type="Label" parent="Game/Player/UI/Tutorial"]
visibility/opacity = 0.0
visibility/light_mask = 0
rect/scale = Vector2( 0.2, 0.2 )
focus/ignore_mouse = true
focus/stop_mouse = true
Expand Down Expand Up @@ -287,7 +315,7 @@ collision/margin = 0.08
visibility/opacity = 0.8
transform/pos = Vector2( -16.6161, -9.47933 )
transform/scale = Vector2( 0.705893, 1.20553 )
texture = ExtResource( 7 )
texture = ExtResource( 8 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Game/Ghost/soul"]
Expand Down
Binary file added gfx/lighting/light mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d259b05

Please sign in to comment.