Added lights to the characters.

This commit is contained in:
Relintai 2021-12-14 00:53:19 +01:00
parent 9f6e8e1aa5
commit 200418c701
10 changed files with 383 additions and 1 deletions

View File

@ -1,8 +1,9 @@
[gd_scene load_steps=4 format=2]
[gd_scene load_steps=5 format=2]
[ext_resource path="res://testsave.png" type="Texture" id=1]
[ext_resource path="res://characters/CharacterSprite.gd" type="Script" id=2]
[ext_resource path="res://characters/SheetCharacter.gd" type="Script" id=3]
[ext_resource path="res://lights/light32x16.png" type="Texture" id=4]
[node name="SheetCharacter" type="CharacterSkeleton2D"]
entity_type = 1
@ -28,3 +29,7 @@ hframes = 16
vframes = 16
script = ExtResource( 2 )
timer = 0.07
[node name="Light2D" type="Light2D" parent="."]
texture = ExtResource( 4 )
texture_scale = 10.0

BIN
game/lights/light128x64.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/light128x64.png-6cca5ab716c06fb666706e84bf7d683f.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://lights/light128x64.png"
dest_files=[ "res://.import/light128x64.png-6cca5ab716c06fb666706e84bf7d683f.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=1
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
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

View File

@ -0,0 +1,91 @@
[gd_resource type="Resource" load_steps=15 format=2]
[ext_resource path="res://addons/mat_maker_gd/nodes/mm_material.gd" type="Script" id=1]
[ext_resource path="res://addons/mat_maker_gd/nodes/mm_node_universal_property.gd" type="Script" id=2]
[ext_resource path="res://addons/mat_maker_gd/nodes/simple/shape.gd" type="Script" id=3]
[ext_resource path="res://addons/mat_maker_gd/nodes/other/output_image.gd" type="Script" id=4]
[ext_resource path="res://addons/mat_maker_gd/nodes/filter/colorize.gd" type="Script" id=5]
[sub_resource type="Resource" id=1]
script = ExtResource( 2 )
default_type = 1
default_int = 0
default_float = 1.0
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
[sub_resource type="Resource" id=2]
script = ExtResource( 2 )
default_type = 5
default_int = 0
default_float = 0.0
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
[sub_resource type="Resource" id=3]
script = ExtResource( 2 )
default_type = 1
default_int = 0
default_float = 1.0
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
[sub_resource type="Resource" id=4]
script = ExtResource( 3 )
graph_position = Vector2( -180, 20 )
image = SubResource( 2 )
shape_type = 0
sides = 6
radius = SubResource( 3 )
edge = SubResource( 1 )
[sub_resource type="Resource" id=7]
script = ExtResource( 2 )
default_type = 5
default_int = 0
default_float = 0.0
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
[sub_resource type="Resource" id=8]
script = ExtResource( 2 )
default_type = 5
default_int = 0
default_float = 0.0
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
input_property = SubResource( 7 )
[sub_resource type="Resource" id=6]
script = ExtResource( 4 )
graph_position = Vector2( 340, 40 )
image = SubResource( 8 )
postfix = ""
[sub_resource type="Resource" id=9]
script = ExtResource( 2 )
default_type = 1
default_int = 0
default_float = 1.0
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
input_property = SubResource( 2 )
[sub_resource type="Resource" id=10]
script = ExtResource( 5 )
graph_position = Vector2( 60, 20 )
interpolation_type = 1
points = PoolRealArray( 0, 0, 0, 0, 1, 1, 0.242188, 0.242188, 0.242188, 1 )
image = SubResource( 7 )
input = SubResource( 9 )
[resource]
script = ExtResource( 1 )
image_size = Vector2( 128, 64 )
nodes = [ SubResource( 4 ), SubResource( 6 ), SubResource( 10 ) ]

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/light256x128.png-5482f6191d95a2320de4a10b747ab3c9.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://lights/light256x128.png"
dest_files=[ "res://.import/light256x128.png-5482f6191d95a2320de4a10b747ab3c9.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=1
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
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

View File

@ -0,0 +1,91 @@
[gd_resource type="Resource" load_steps=15 format=2]
[ext_resource path="res://addons/mat_maker_gd/nodes/mm_material.gd" type="Script" id=1]
[ext_resource path="res://addons/mat_maker_gd/nodes/mm_node_universal_property.gd" type="Script" id=2]
[ext_resource path="res://addons/mat_maker_gd/nodes/simple/shape.gd" type="Script" id=3]
[ext_resource path="res://addons/mat_maker_gd/nodes/other/output_image.gd" type="Script" id=4]
[ext_resource path="res://addons/mat_maker_gd/nodes/filter/colorize.gd" type="Script" id=5]
[sub_resource type="Resource" id=1]
script = ExtResource( 2 )
default_type = 1
default_int = 0
default_float = 1.0
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
[sub_resource type="Resource" id=2]
script = ExtResource( 2 )
default_type = 5
default_int = 0
default_float = 0.0
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
[sub_resource type="Resource" id=3]
script = ExtResource( 2 )
default_type = 1
default_int = 0
default_float = 1.0
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
[sub_resource type="Resource" id=4]
script = ExtResource( 3 )
graph_position = Vector2( -140, 20 )
image = SubResource( 2 )
shape_type = 0
sides = 6
radius = SubResource( 3 )
edge = SubResource( 1 )
[sub_resource type="Resource" id=7]
script = ExtResource( 2 )
default_type = 5
default_int = 0
default_float = 0.0
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
[sub_resource type="Resource" id=8]
script = ExtResource( 2 )
default_type = 5
default_int = 0
default_float = 0.0
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
input_property = SubResource( 7 )
[sub_resource type="Resource" id=6]
script = ExtResource( 4 )
graph_position = Vector2( 320, 40 )
image = SubResource( 8 )
postfix = ""
[sub_resource type="Resource" id=9]
script = ExtResource( 2 )
default_type = 1
default_int = 0
default_float = 1.0
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
input_property = SubResource( 2 )
[sub_resource type="Resource" id=10]
script = ExtResource( 5 )
graph_position = Vector2( 80, 40 )
interpolation_type = 1
points = PoolRealArray( 0, 0, 0, 0, 1, 1, 0.28125, 0.28125, 0.28125, 1 )
image = SubResource( 7 )
input = SubResource( 9 )
[resource]
script = ExtResource( 1 )
image_size = Vector2( 256, 128 )
nodes = [ SubResource( 4 ), SubResource( 6 ), SubResource( 10 ) ]

BIN
game/lights/light32x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 B

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/light32x16.png-8fd1a6e3474934b5ebd7d31e24937197.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://lights/light32x16.png"
dest_files=[ "res://.import/light32x16.png-8fd1a6e3474934b5ebd7d31e24937197.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=1
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=false
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

View File

@ -0,0 +1,90 @@
[gd_resource type="Resource" load_steps=15 format=2]
[ext_resource path="res://addons/mat_maker_gd/nodes/mm_material.gd" type="Script" id=1]
[ext_resource path="res://addons/mat_maker_gd/nodes/mm_node_universal_property.gd" type="Script" id=2]
[ext_resource path="res://addons/mat_maker_gd/nodes/simple/shape.gd" type="Script" id=3]
[ext_resource path="res://addons/mat_maker_gd/nodes/other/output_image.gd" type="Script" id=4]
[ext_resource path="res://addons/mat_maker_gd/nodes/filter/colorize.gd" type="Script" id=5]
[sub_resource type="Resource" id=1]
script = ExtResource( 2 )
default_type = 1
default_int = 0
default_float = 1.0
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
[sub_resource type="Resource" id=2]
script = ExtResource( 2 )
default_type = 5
default_int = 0
default_float = 0.0
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
[sub_resource type="Resource" id=3]
script = ExtResource( 2 )
default_type = 1
default_int = 0
default_float = 1.0
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
[sub_resource type="Resource" id=4]
script = ExtResource( 3 )
graph_position = Vector2( -180, 20 )
image = SubResource( 2 )
shape_type = 0
sides = 6
radius = SubResource( 3 )
edge = SubResource( 1 )
[sub_resource type="Resource" id=11]
script = ExtResource( 2 )
default_type = 5
default_int = 0
default_float = 0.0
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
[sub_resource type="Resource" id=6]
script = ExtResource( 4 )
graph_position = Vector2( 320, 40 )
image = SubResource( 11 )
postfix = ""
[sub_resource type="Resource" id=7]
script = ExtResource( 2 )
default_type = 5
default_int = 0
default_float = 0.0
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
[sub_resource type="Resource" id=9]
script = ExtResource( 2 )
default_type = 1
default_int = 0
default_float = 1.0
default_vector2 = Vector2( 0, 0 )
default_vector3 = Vector3( 0, 0, 0 )
default_color = Color( 0, 0, 0, 1 )
input_property = SubResource( 2 )
[sub_resource type="Resource" id=10]
script = ExtResource( 5 )
graph_position = Vector2( 60, 20 )
interpolation_type = 1
points = PoolRealArray( 0, 0, 0, 0, 1, 1, 0.242188, 0.242188, 0.242188, 1 )
image = SubResource( 7 )
input = SubResource( 9 )
[resource]
script = ExtResource( 1 )
image_size = Vector2( 32, 16 )
nodes = [ SubResource( 4 ), SubResource( 6 ), SubResource( 10 ) ]