This commit is contained in:
pennyrigate 2023-03-09 22:17:14 -05:00
parent a3e793e114
commit a2b9da421a
12 changed files with 291 additions and 9 deletions

14
graphics/tiles/oil.tres Normal file
View file

@ -0,0 +1,14 @@
[gd_resource type="AnimatedTexture" load_steps=4 format=2]
[ext_resource path="res://graphics/tiles/oil_2.png" type="Texture" id=1]
[ext_resource path="res://graphics/tiles/oil_1.png" type="Texture" id=2]
[ext_resource path="res://graphics/tiles/oil_3.png" type="Texture" id=3]
[resource]
frames = 3
fps = 5.0
frame_0/texture = ExtResource( 2 )
frame_1/texture = ExtResource( 1 )
frame_1/delay_sec = 0.0
frame_2/texture = ExtResource( 3 )
frame_2/delay_sec = 0.0

BIN
graphics/tiles/oil_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

View file

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

BIN
graphics/tiles/oil_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

View file

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

BIN
graphics/tiles/oil_3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

View file

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 B

View file

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

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=26 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]
@ -45,6 +45,9 @@ animations = [ {
"speed": 20.0
} ]
[sub_resource type="RectangleShape2D" id=8]
extents = Vector2( 4, 4 )
[node name="Map2" type="Node2D" groups=["map"]]
script = ExtResource( 11 )
@ -193,4 +196,14 @@ position = Vector2( 27, 128 )
[node name="Roboturret" parent="." instance=ExtResource( 24 )]
position = Vector2( 168, 152 )
[node name="StaticBody2D" type="StaticBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
position = Vector2( 196, 116 )
shape = SubResource( 8 )
[node name="CollisionShape2D2" type="CollisionShape2D" parent="StaticBody2D"]
position = Vector2( 210, 116 )
shape = SubResource( 8 )
[editable path="RollingFiend"]

View file

@ -1,8 +1,10 @@
[gd_resource type="TileSet" load_steps=8 format=2]
[gd_resource type="TileSet" load_steps=11 format=2]
[ext_resource path="res://graphics/tiles/water.tres" type="Texture" id=1]
[ext_resource path="res://graphics/tiles/spike.png" type="Texture" id=2]
[ext_resource path="res://graphics/tiles/water_bottom.png" type="Texture" id=3]
[ext_resource path="res://graphics/tiles/oil_bottom.png" type="Texture" id=4]
[ext_resource path="res://graphics/tiles/oil.tres" type="Texture" id=5]
[sub_resource type="ConvexPolygonShape2D" id=1]
points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 )
@ -16,6 +18,9 @@ points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 )
[sub_resource type="ConvexPolygonShape2D" id=4]
points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 )
[sub_resource type="ConvexPolygonShape2D" id=5]
points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 )
[resource]
0/name = "water.tres 0"
0/texture = ExtResource( 1 )
@ -128,3 +133,52 @@ points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 )
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ]
4/z_index = 0
6/name = "oil_bottom.png 6"
6/texture = ExtResource( 4 )
6/tex_offset = Vector2( 0, 0 )
6/modulate = Color( 1, 1, 1, 1 )
6/region = Rect2( 0, 0, 8, 8 )
6/tile_mode = 2
6/autotile/icon_coordinate = Vector2( 0, 0 )
6/autotile/tile_size = Vector2( 8, 8 )
6/autotile/spacing = 0
6/autotile/occluder_map = [ ]
6/autotile/navpoly_map = [ ]
6/autotile/priority_map = [ ]
6/autotile/z_index_map = [ ]
6/occluder_offset = Vector2( 0, 0 )
6/navigation_offset = Vector2( 0, 0 )
6/shape_offset = Vector2( 0, 0 )
6/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
6/shape = SubResource( 5 )
6/shape_one_way = false
6/shape_one_way_margin = 1.0
6/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 5 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 )
} ]
6/z_index = 0
7/name = "oil.tres 7"
7/texture = ExtResource( 5 )
7/tex_offset = Vector2( 0, 0 )
7/modulate = Color( 1, 1, 1, 1 )
7/region = Rect2( 0, 0, 8, 8 )
7/tile_mode = 2
7/autotile/icon_coordinate = Vector2( 0, 0 )
7/autotile/tile_size = Vector2( 8, 8 )
7/autotile/spacing = 0
7/autotile/occluder_map = [ ]
7/autotile/navpoly_map = [ ]
7/autotile/priority_map = [ ]
7/autotile/z_index_map = [ ]
7/occluder_offset = Vector2( 0, 0 )
7/navigation_offset = Vector2( 0, 0 )
7/shape_offset = Vector2( 0, 0 )
7/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
7/shape_one_way = false
7/shape_one_way_margin = 0.0
7/shapes = [ ]
7/z_index = 0