Implement visibility based on the same tutorial.

This commit is contained in:
Relintai 2020-07-15 18:57:45 +02:00
parent f6ce594362
commit 8d34206fe3
33 changed files with 1213 additions and 88 deletions

View File

@ -40,7 +40,7 @@ var camera : Camera2D
var last_mouse_over : Entity = null
var world : Navigation2D = null
var world : Node2D = null
var _controlled : bool = false
@ -57,7 +57,7 @@ var visibility_update_timer : float = randi()
var tile_size : int = 32
func _enter_tree() -> void:
world = get_node(world_path) as Node
world = get_node(world_path) as Node2D
tile_size = get_node("/root/Main").get_tile_size()
camera = get_node_or_null("Camera") as Camera2D
@ -238,6 +238,9 @@ func try_move(dx, dy):
set_tile_position(tp)
if entity.c_is_controlled:
world.player_moved()
func get_tile_position() -> Vector2:
var v : Vector2 = Vector2(int(transform.origin.x / tile_size), int(transform.origin.y / tile_size))

View File

@ -542,5 +542,6 @@ vram_compression/import_etc=true
quality/directional_shadow/size.mobile=1024
quality/reflections/texture_array_reflections=false
quality/reflections/high_quality_ggx=false
environment/default_clear_color=Color( 0, 0, 0, 1 )
quality/2d/use_batching=true
quality/shadows/enabled=false

View File

@ -1,4 +1,4 @@
extends Node
extends Node2D
# Copyright (c) 2019 Péter Magyar
#
@ -46,6 +46,7 @@ var map : Array = []
var rooms : Array = []
onready var tile_map : TileMap = $Terrarin
onready var visibility_map : TileMap = $VisibilityMap
func _ready():
tile_size = get_node("/root/Main").get_tile_size()
@ -67,7 +68,42 @@ func load_character(file_name: String) -> void:
var pos : Vector3 = Vector3(player_x * tile_size + tile_size / 2, player_y * tile_size + tile_size / 2, 0)
_player = ESS.entity_spawner.load_player(_player_file_name, pos, 1) as Entity
Server.sset_seed(_player.sseed)
tile_map.update_dirty_quadrants()
call_deferred("update_visibility")
func player_moved():
call_deferred("update_visibility")
func update_visibility():
if _player == null:
return
var body = _player.get_body()
if body == null:
return
var tp : Vector2 = body.get_tile_position()
var space_state : Physics2DDirectSpaceState = get_world_2d().direct_space_state
for x in range(level_size.x):
for y in range(level_size.y):
if visibility_map.get_cell(x, y) == 0:
var x_dir = 1 if x < tp.x else -1
var y_dir = 1 if y < tp.y else -1
var test_point = tile_to_pixel_center(x, y) + Vector2(x_dir, y_dir) * tile_size / 2
var occlusion = space_state.intersect_ray(body.transform.origin, test_point)
if !occlusion || (occlusion.position - test_point).length() < 1:
visibility_map.set_cell(x, y, -1)
func tile_to_pixel_center(x, y):
return Vector2((x + 0.5) * tile_size, (y + 0.5) * tile_size)
func is_position_walkable(x : int, y : int) -> bool:
var type = map[x][y]
@ -88,6 +124,7 @@ func build_level():
for y in range(level_size.y):
map[x].append(Tile.Stone)
tile_map.set_cell(x, y, Tile.Stone)
visibility_map.set_cell(x, y, 0)
var free_regions = [Rect2(Vector2(2, 2), level_size - Vector2(4, 4))]

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,10 @@
[gd_resource type="TileSet" load_steps=2 format=2]
[gd_resource type="TileSet" load_steps=3 format=2]
[ext_resource path="res://tilesets/16x16_orthogonal/16x16_overhead_Denzi100526-1.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 8, 8 )
[resource]
0/name = "Floor"
0/texture = ExtResource( 1 )
@ -25,11 +28,18 @@
1/tile_mode = 0
1/occluder_offset = Vector2( 0, 0 )
1/navigation_offset = Vector2( 0, 0 )
1/shape_offset = Vector2( 0, 0 )
1/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
1/shape_offset = Vector2( 8, 8 )
1/shape_transform = Transform2D( 1, 0, 0, 1, 8, 8 )
1/shape = SubResource( 1 )
1/shape_one_way = false
1/shape_one_way_margin = 0.0
1/shapes = [ ]
1/shape_one_way_margin = 1.0
1/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 8, 8 )
} ]
1/z_index = 0
2/name = "Wall2"
2/texture = ExtResource( 1 )
@ -39,9 +49,58 @@
2/tile_mode = 0
2/occluder_offset = Vector2( 0, 0 )
2/navigation_offset = Vector2( 0, 0 )
2/shape_offset = Vector2( 0, 0 )
2/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
2/shape_offset = Vector2( 8, 8 )
2/shape_transform = Transform2D( 1, 0, 0, 1, 8, 8 )
2/shape = SubResource( 1 )
2/shape_one_way = false
2/shape_one_way_margin = 0.0
2/shapes = [ ]
2/shape_one_way_margin = 1.0
2/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 8, 8 )
} ]
2/z_index = 0
3/name = "Wall3"
3/texture = ExtResource( 1 )
3/tex_offset = Vector2( 0, 0 )
3/modulate = Color( 1, 1, 1, 1 )
3/region = Rect2( 32, 176, 16, 16 )
3/tile_mode = 0
3/occluder_offset = Vector2( 0, 0 )
3/navigation_offset = Vector2( 0, 0 )
3/shape_offset = Vector2( 8, 8 )
3/shape_transform = Transform2D( 1, 0, 0, 1, 8, 8 )
3/shape = SubResource( 1 )
3/shape_one_way = false
3/shape_one_way_margin = 1.0
3/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 8, 8 )
} ]
3/z_index = 0
4/name = "Wall4"
4/texture = ExtResource( 1 )
4/tex_offset = Vector2( 0, 0 )
4/modulate = Color( 1, 1, 1, 1 )
4/region = Rect2( 32, 176, 16, 16 )
4/tile_mode = 0
4/occluder_offset = Vector2( 0, 0 )
4/navigation_offset = Vector2( 0, 0 )
4/shape_offset = Vector2( 8, 8 )
4/shape_transform = Transform2D( 1, 0, 0, 1, 8, 8 )
4/shape = SubResource( 1 )
4/shape_one_way = false
4/shape_one_way_margin = 1.0
4/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 8, 8 )
} ]
4/z_index = 0

View File

@ -1,7 +1,10 @@
[gd_scene load_steps=2 format=2]
[gd_scene load_steps=3 format=2]
[ext_resource path="res://tilesets/16x16_orthogonal/16x16_overhead_Denzi100526-1.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 8, 8 )
[node name="Node2D" type="Node2D"]
[node name="Floor" type="Sprite" parent="."]
@ -16,8 +19,44 @@ centered = false
region_enabled = true
region_rect = Rect2( 31, 176, 16, 16 )
[node name="StaticBody2D" type="StaticBody2D" parent="Wall"]
position = Vector2( 8, 8 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall/StaticBody2D"]
shape = SubResource( 1 )
[node name="Wall2" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 32, 176, 16, 16 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall2"]
position = Vector2( 8, 8 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall2/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall3" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 32, 176, 16, 16 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall3"]
position = Vector2( 8, 8 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall3/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall4" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 32, 176, 16, 16 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall4"]
position = Vector2( 8, 8 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall4/StaticBody2D2"]
shape = SubResource( 1 )

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/16_16.png-719eea9243b1a92955472a72bf941ffa.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://tilesets/Visibility_map/16_16.png"
dest_files=[ "res://.import/16_16.png-719eea9243b1a92955472a72bf941ffa.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/32_32.png-a64c92cdbc2b6e50b1b071d4a75c6f0d.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://tilesets/Visibility_map/32_32.png"
dest_files=[ "res://.import/32_32.png-a64c92cdbc2b6e50b1b071d4a75c6f0d.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/8_8.png-ce8ded350dc473b4d1322a401946c803.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://tilesets/Visibility_map/8_8.png"
dest_files=[ "res://.import/8_8.png-ce8ded350dc473b4d1322a401946c803.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
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

View File

@ -0,0 +1,19 @@
[gd_resource type="TileSet" load_steps=2 format=2]
[ext_resource path="res://tilesets/Visibility_map/16_16.png" type="Texture" id=1]
[resource]
0/name = "Tile"
0/texture = ExtResource( 1 )
0/tex_offset = Vector2( 0, 0 )
0/modulate = Color( 1, 1, 1, 1 )
0/region = Rect2( 0, 0, 16, 16 )
0/tile_mode = 0
0/occluder_offset = Vector2( 0, 0 )
0/navigation_offset = Vector2( 0, 0 )
0/shape_offset = Vector2( 0, 0 )
0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
0/shape_one_way = false
0/shape_one_way_margin = 0.0
0/shapes = [ ]
0/z_index = 0

View File

@ -0,0 +1,19 @@
[gd_resource type="TileSet" load_steps=2 format=2]
[ext_resource path="res://tilesets/Visibility_map/32_32.png" type="Texture" id=1]
[resource]
0/name = "Tile"
0/texture = ExtResource( 1 )
0/tex_offset = Vector2( 0, 0 )
0/modulate = Color( 1, 1, 1, 1 )
0/region = Rect2( 0, 0, 32, 32 )
0/tile_mode = 0
0/occluder_offset = Vector2( 0, 0 )
0/navigation_offset = Vector2( 0, 0 )
0/shape_offset = Vector2( 0, 0 )
0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
0/shape_one_way = false
0/shape_one_way_margin = 0.0
0/shapes = [ ]
0/z_index = 0

View File

@ -0,0 +1,19 @@
[gd_resource type="TileSet" load_steps=2 format=2]
[ext_resource path="res://tilesets/Visibility_map/8_8.png" type="Texture" id=1]
[resource]
0/name = "Tile"
0/texture = ExtResource( 1 )
0/tex_offset = Vector2( 0, 0 )
0/modulate = Color( 1, 1, 1, 1 )
0/region = Rect2( 0, 0, 8, 8 )
0/tile_mode = 0
0/occluder_offset = Vector2( 0, 0 )
0/navigation_offset = Vector2( 0, 0 )
0/shape_offset = Vector2( 0, 0 )
0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
0/shape_one_way = false
0/shape_one_way_margin = 0.0
0/shapes = [ ]
0/z_index = 0

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,10 @@
[gd_resource type="TileSet" load_steps=2 format=2]
[gd_resource type="TileSet" load_steps=3 format=2]
[ext_resource path="res://tilesets/dc_32x32/DungeonCrawl_ProjectUtumnoTileset.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 16, 16 )
[resource]
0/name = "Floor"
0/texture = ExtResource( 1 )
@ -25,11 +28,18 @@
1/tile_mode = 0
1/occluder_offset = Vector2( 0, 0 )
1/navigation_offset = Vector2( 0, 0 )
1/shape_offset = Vector2( 0, 0 )
1/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
1/shape_offset = Vector2( 16, 16 )
1/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
1/shape = SubResource( 1 )
1/shape_one_way = false
1/shape_one_way_margin = 0.0
1/shapes = [ ]
1/shape_one_way_margin = 1.0
1/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
} ]
1/z_index = 0
2/name = "Wall2"
2/texture = ExtResource( 1 )
@ -39,9 +49,79 @@
2/tile_mode = 0
2/occluder_offset = Vector2( 0, 0 )
2/navigation_offset = Vector2( 0, 0 )
2/shape_offset = Vector2( 0, 0 )
2/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
2/shape_offset = Vector2( 16, 16 )
2/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
2/shape = SubResource( 1 )
2/shape_one_way = false
2/shape_one_way_margin = 0.0
2/shapes = [ ]
2/shape_one_way_margin = 1.0
2/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
} ]
2/z_index = 0
3/name = "Wall3"
3/texture = ExtResource( 1 )
3/tex_offset = Vector2( 0, 0 )
3/modulate = Color( 1, 1, 1, 1 )
3/region = Rect2( 801, 512, 32, 32 )
3/tile_mode = 0
3/occluder_offset = Vector2( 0, 0 )
3/navigation_offset = Vector2( 0, 0 )
3/shape_offset = Vector2( 16, 16 )
3/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
3/shape = SubResource( 1 )
3/shape_one_way = false
3/shape_one_way_margin = 1.0
3/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
} ]
3/z_index = 0
4/name = "Wall4"
4/texture = ExtResource( 1 )
4/tex_offset = Vector2( 0, 0 )
4/modulate = Color( 1, 1, 1, 1 )
4/region = Rect2( 801, 512, 32, 32 )
4/tile_mode = 0
4/occluder_offset = Vector2( 0, 0 )
4/navigation_offset = Vector2( 0, 0 )
4/shape_offset = Vector2( 16, 16 )
4/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
4/shape = SubResource( 1 )
4/shape_one_way = false
4/shape_one_way_margin = 1.0
4/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
} ]
4/z_index = 0
5/name = "Wall5"
5/texture = ExtResource( 1 )
5/tex_offset = Vector2( 0, 0 )
5/modulate = Color( 1, 1, 1, 1 )
5/region = Rect2( 801, 512, 32, 32 )
5/tile_mode = 0
5/occluder_offset = Vector2( 0, 0 )
5/navigation_offset = Vector2( 0, 0 )
5/shape_offset = Vector2( 16, 16 )
5/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
5/shape = SubResource( 1 )
5/shape_one_way = false
5/shape_one_way_margin = 1.0
5/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
} ]
5/z_index = 0

View File

@ -1,7 +1,10 @@
[gd_scene load_steps=2 format=2]
[gd_scene load_steps=3 format=2]
[ext_resource path="res://tilesets/dc_32x32/DungeonCrawl_ProjectUtumnoTileset.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 16, 16 )
[node name="Node2D" type="Node2D"]
[node name="Floor" type="Sprite" parent="."]
@ -16,8 +19,56 @@ centered = false
region_enabled = true
region_rect = Rect2( 736, 512, 32, 32 )
[node name="StaticBody2D" type="StaticBody2D" parent="Wall"]
position = Vector2( 16, 16 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall/StaticBody2D"]
shape = SubResource( 1 )
[node name="Wall2" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 801, 512, 32, 32 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall2"]
position = Vector2( 16, 16 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall2/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall3" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 801, 512, 32, 32 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall3"]
position = Vector2( 16, 16 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall3/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall4" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 801, 512, 32, 32 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall4"]
position = Vector2( 16, 16 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall4/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall5" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 801, 512, 32, 32 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall5"]
position = Vector2( 16, 16 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall5/StaticBody2D2"]
shape = SubResource( 1 )

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,10 @@
[gd_resource type="TileSet" load_steps=2 format=2]
[gd_resource type="TileSet" load_steps=3 format=2]
[ext_resource path="res://tilesets/denzi_32x32_orthogonal/32x32_terrain_Denzi110115-4.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 16, 16 )
[resource]
0/name = "Floor"
0/texture = ExtResource( 1 )
@ -25,11 +28,18 @@
1/tile_mode = 0
1/occluder_offset = Vector2( 0, 0 )
1/navigation_offset = Vector2( 0, 0 )
1/shape_offset = Vector2( 0, 0 )
1/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
1/shape_offset = Vector2( 16, 16 )
1/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
1/shape = SubResource( 1 )
1/shape_one_way = false
1/shape_one_way_margin = 0.0
1/shapes = [ ]
1/shape_one_way_margin = 1.0
1/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
} ]
1/z_index = 0
2/name = "Wall2"
2/texture = ExtResource( 1 )
@ -39,9 +49,79 @@
2/tile_mode = 0
2/occluder_offset = Vector2( 0, 0 )
2/navigation_offset = Vector2( 0, 0 )
2/shape_offset = Vector2( 0, 0 )
2/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
2/shape_offset = Vector2( 16, 16 )
2/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
2/shape = SubResource( 1 )
2/shape_one_way = false
2/shape_one_way_margin = 0.0
2/shapes = [ ]
2/shape_one_way_margin = 1.0
2/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
} ]
2/z_index = 0
3/name = "Wall3"
3/texture = ExtResource( 1 )
3/tex_offset = Vector2( 0, 0 )
3/modulate = Color( 1, 1, 1, 1 )
3/region = Rect2( 64, 128, 33, 32 )
3/tile_mode = 0
3/occluder_offset = Vector2( 0, 0 )
3/navigation_offset = Vector2( 0, 0 )
3/shape_offset = Vector2( 16, 16 )
3/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
3/shape = SubResource( 1 )
3/shape_one_way = false
3/shape_one_way_margin = 1.0
3/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
} ]
3/z_index = 0
4/name = "Wall4"
4/texture = ExtResource( 1 )
4/tex_offset = Vector2( 0, 0 )
4/modulate = Color( 1, 1, 1, 1 )
4/region = Rect2( 64, 128, 33, 32 )
4/tile_mode = 0
4/occluder_offset = Vector2( 0, 0 )
4/navigation_offset = Vector2( 0, 0 )
4/shape_offset = Vector2( 16, 16 )
4/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
4/shape = SubResource( 1 )
4/shape_one_way = false
4/shape_one_way_margin = 1.0
4/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
} ]
4/z_index = 0
5/name = "Wall5"
5/texture = ExtResource( 1 )
5/tex_offset = Vector2( 0, 0 )
5/modulate = Color( 1, 1, 1, 1 )
5/region = Rect2( 64, 128, 33, 32 )
5/tile_mode = 0
5/occluder_offset = Vector2( 0, 0 )
5/navigation_offset = Vector2( 0, 0 )
5/shape_offset = Vector2( 16, 16 )
5/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
5/shape = SubResource( 1 )
5/shape_one_way = false
5/shape_one_way_margin = 1.0
5/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
} ]
5/z_index = 0

View File

@ -1,7 +1,10 @@
[gd_scene load_steps=2 format=2]
[gd_scene load_steps=3 format=2]
[ext_resource path="res://tilesets/denzi_32x32_orthogonal/32x32_terrain_Denzi110115-4.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 16, 16 )
[node name="Node2D" type="Node2D"]
[node name="Floor" type="Sprite" parent="."]
@ -16,8 +19,56 @@ centered = false
region_enabled = true
region_rect = Rect2( 64, 32, 32, 32 )
[node name="StaticBody2D" type="StaticBody2D" parent="Wall"]
position = Vector2( 16, 16 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall/StaticBody2D"]
shape = SubResource( 1 )
[node name="Wall2" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 64, 128, 33, 32 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall2"]
position = Vector2( 16, 16 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall2/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall3" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 64, 128, 33, 32 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall3"]
position = Vector2( 16, 16 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall3/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall4" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 64, 128, 33, 32 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall4"]
position = Vector2( 16, 16 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall4/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall5" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 64, 128, 33, 32 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall5"]
position = Vector2( 16, 16 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall5/StaticBody2D2"]
shape = SubResource( 1 )

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,10 @@
[gd_resource type="TileSet" load_steps=2 format=2]
[gd_resource type="TileSet" load_steps=3 format=2]
[ext_resource path="res://tilesets/denzi_public_domain/DENZI_CC0_32x32_tileset.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 16, 16 )
[resource]
0/name = "Floor"
0/texture = ExtResource( 1 )
@ -25,11 +28,18 @@
1/tile_mode = 0
1/occluder_offset = Vector2( 0, 0 )
1/navigation_offset = Vector2( 0, 0 )
1/shape_offset = Vector2( 0, 0 )
1/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
1/shape_offset = Vector2( 16, 16 )
1/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
1/shape = SubResource( 1 )
1/shape_one_way = false
1/shape_one_way_margin = 0.0
1/shapes = [ ]
1/shape_one_way_margin = 1.0
1/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
} ]
1/z_index = 0
2/name = "Wall2"
2/texture = ExtResource( 1 )
@ -39,9 +49,79 @@
2/tile_mode = 0
2/occluder_offset = Vector2( 0, 0 )
2/navigation_offset = Vector2( 0, 0 )
2/shape_offset = Vector2( 0, 0 )
2/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
2/shape_offset = Vector2( 16, 16 )
2/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
2/shape = SubResource( 1 )
2/shape_one_way = false
2/shape_one_way_margin = 0.0
2/shapes = [ ]
2/shape_one_way_margin = 1.0
2/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
} ]
2/z_index = 0
3/name = "Wall3"
3/texture = ExtResource( 1 )
3/tex_offset = Vector2( 0, 0 )
3/modulate = Color( 1, 1, 1, 1 )
3/region = Rect2( 224, 0, 32, 32 )
3/tile_mode = 0
3/occluder_offset = Vector2( 0, 0 )
3/navigation_offset = Vector2( 0, 0 )
3/shape_offset = Vector2( 16, 16 )
3/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
3/shape = SubResource( 1 )
3/shape_one_way = false
3/shape_one_way_margin = 1.0
3/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
} ]
3/z_index = 0
4/name = "Wall4"
4/texture = ExtResource( 1 )
4/tex_offset = Vector2( 0, 0 )
4/modulate = Color( 1, 1, 1, 1 )
4/region = Rect2( 224, 0, 32, 32 )
4/tile_mode = 0
4/occluder_offset = Vector2( 0, 0 )
4/navigation_offset = Vector2( 0, 0 )
4/shape_offset = Vector2( 16, 16 )
4/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
4/shape = SubResource( 1 )
4/shape_one_way = false
4/shape_one_way_margin = 1.0
4/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
} ]
4/z_index = 0
5/name = "Wall5"
5/texture = ExtResource( 1 )
5/tex_offset = Vector2( 0, 0 )
5/modulate = Color( 1, 1, 1, 1 )
5/region = Rect2( 224, 0, 32, 32 )
5/tile_mode = 0
5/occluder_offset = Vector2( 0, 0 )
5/navigation_offset = Vector2( 0, 0 )
5/shape_offset = Vector2( 16, 16 )
5/shape_transform = Transform2D( 1, 0, 0, 1, 16, 16 )
5/shape = SubResource( 1 )
5/shape_one_way = false
5/shape_one_way_margin = 1.0
5/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 16, 16 )
} ]
5/z_index = 0

View File

@ -1,7 +1,10 @@
[gd_scene load_steps=2 format=2]
[gd_scene load_steps=3 format=2]
[ext_resource path="res://tilesets/denzi_public_domain/DENZI_CC0_32x32_tileset.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 16, 16 )
[node name="Node2D" type="Node2D"]
[node name="Floor" type="Sprite" parent="."]
@ -16,8 +19,56 @@ centered = false
region_enabled = true
region_rect = Rect2( 320, 0, 32, 32 )
[node name="StaticBody2D" type="StaticBody2D" parent="Wall"]
position = Vector2( 16, 16 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall/StaticBody2D"]
shape = SubResource( 1 )
[node name="Wall2" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 224, 0, 32, 32 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall2"]
position = Vector2( 16, 16 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall2/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall3" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 224, 0, 32, 32 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall3"]
position = Vector2( 16, 16 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall3/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall4" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 224, 0, 32, 32 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall4"]
position = Vector2( 16, 16 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall4/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall5" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 224, 0, 32, 32 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall5"]
position = Vector2( 16, 16 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall5/StaticBody2D2"]
shape = SubResource( 1 )

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,10 @@
[gd_resource type="TileSet" load_steps=2 format=2]
[gd_resource type="TileSet" load_steps=3 format=2]
[ext_resource path="res://tilesets/rogue_db32/rogue_db32_plus_cc0.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 4, 4 )
[resource]
0/name = "Floor"
0/texture = ExtResource( 1 )
@ -25,11 +28,18 @@
1/tile_mode = 0
1/occluder_offset = Vector2( 0, 0 )
1/navigation_offset = Vector2( 0, 0 )
1/shape_offset = Vector2( 0, 0 )
1/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
1/shape_offset = Vector2( 4, 4 )
1/shape_transform = Transform2D( 1, 0, 0, 1, 4, 4 )
1/shape = SubResource( 1 )
1/shape_one_way = false
1/shape_one_way_margin = 0.0
1/shapes = [ ]
1/shape_one_way_margin = 1.0
1/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 4, 4 )
} ]
1/z_index = 0
2/name = "Wall2"
2/texture = ExtResource( 1 )
@ -39,9 +49,79 @@
2/tile_mode = 0
2/occluder_offset = Vector2( 0, 0 )
2/navigation_offset = Vector2( 0, 0 )
2/shape_offset = Vector2( 0, 0 )
2/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
2/shape_offset = Vector2( 4, 4 )
2/shape_transform = Transform2D( 1, 0, 0, 1, 4, 4 )
2/shape = SubResource( 1 )
2/shape_one_way = false
2/shape_one_way_margin = 0.0
2/shapes = [ ]
2/shape_one_way_margin = 1.0
2/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 4, 4 )
} ]
2/z_index = 0
3/name = "Wall3"
3/texture = ExtResource( 1 )
3/tex_offset = Vector2( 0, 0 )
3/modulate = Color( 1, 1, 1, 1 )
3/region = Rect2( 91, 207, 8, 8 )
3/tile_mode = 0
3/occluder_offset = Vector2( 0, 0 )
3/navigation_offset = Vector2( 0, 0 )
3/shape_offset = Vector2( 4, 4 )
3/shape_transform = Transform2D( 1, 0, 0, 1, 4, 4 )
3/shape = SubResource( 1 )
3/shape_one_way = false
3/shape_one_way_margin = 1.0
3/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 4, 4 )
} ]
3/z_index = 0
4/name = "Wall4"
4/texture = ExtResource( 1 )
4/tex_offset = Vector2( 0, 0 )
4/modulate = Color( 1, 1, 1, 1 )
4/region = Rect2( 91, 207, 8, 8 )
4/tile_mode = 0
4/occluder_offset = Vector2( 0, 0 )
4/navigation_offset = Vector2( 0, 0 )
4/shape_offset = Vector2( 4, 4 )
4/shape_transform = Transform2D( 1, 0, 0, 1, 4, 4 )
4/shape = SubResource( 1 )
4/shape_one_way = false
4/shape_one_way_margin = 1.0
4/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 4, 4 )
} ]
4/z_index = 0
5/name = "Wall5"
5/texture = ExtResource( 1 )
5/tex_offset = Vector2( 0, 0 )
5/modulate = Color( 1, 1, 1, 1 )
5/region = Rect2( 91, 207, 8, 8 )
5/tile_mode = 0
5/occluder_offset = Vector2( 0, 0 )
5/navigation_offset = Vector2( 0, 0 )
5/shape_offset = Vector2( 4, 4 )
5/shape_transform = Transform2D( 1, 0, 0, 1, 4, 4 )
5/shape = SubResource( 1 )
5/shape_one_way = false
5/shape_one_way_margin = 1.0
5/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 4, 4 )
} ]
5/z_index = 0

View File

@ -1,7 +1,10 @@
[gd_scene load_steps=2 format=2]
[gd_scene load_steps=3 format=2]
[ext_resource path="res://tilesets/rogue_db32/rogue_db32_plus_cc0.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 4, 4 )
[node name="Node2D" type="Node2D"]
[node name="Floor" type="Sprite" parent="."]
@ -16,8 +19,56 @@ centered = false
region_enabled = true
region_rect = Rect2( 91, 207, 8, 8 )
[node name="StaticBody2D" type="StaticBody2D" parent="Wall"]
position = Vector2( 4, 4 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall/StaticBody2D"]
shape = SubResource( 1 )
[node name="Wall2" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 91, 207, 8, 8 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall2"]
position = Vector2( 4, 4 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall2/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall3" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 91, 207, 8, 8 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall3"]
position = Vector2( 4, 4 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall3/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall4" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 91, 207, 8, 8 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall4"]
position = Vector2( 4, 4 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall4/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall5" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 91, 207, 8, 8 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall5"]
position = Vector2( 4, 4 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall5/StaticBody2D2"]
shape = SubResource( 1 )

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,10 @@
[gd_resource type="TileSet" load_steps=2 format=2]
[gd_resource type="TileSet" load_steps=3 format=2]
[ext_resource path="res://tilesets/rogue_dungeon/2.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 4, 4 )
[resource]
0/name = "Floor"
0/texture = ExtResource( 1 )
@ -25,11 +28,18 @@
1/tile_mode = 0
1/occluder_offset = Vector2( 0, 0 )
1/navigation_offset = Vector2( 0, 0 )
1/shape_offset = Vector2( 0, 0 )
1/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
1/shape_offset = Vector2( 4, 4 )
1/shape_transform = Transform2D( 1, 0, 0, 1, 4, 4 )
1/shape = SubResource( 1 )
1/shape_one_way = false
1/shape_one_way_margin = 0.0
1/shapes = [ ]
1/shape_one_way_margin = 1.0
1/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 4, 4 )
} ]
1/z_index = 0
2/name = "Wall2"
2/texture = ExtResource( 1 )
@ -39,9 +49,79 @@
2/tile_mode = 0
2/occluder_offset = Vector2( 0, 0 )
2/navigation_offset = Vector2( 0, 0 )
2/shape_offset = Vector2( 0, 0 )
2/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
2/shape_offset = Vector2( 4, 4 )
2/shape_transform = Transform2D( 1, 0, 0, 1, 4, 4 )
2/shape = SubResource( 1 )
2/shape_one_way = false
2/shape_one_way_margin = 0.0
2/shapes = [ ]
2/shape_one_way_margin = 1.0
2/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 4, 4 )
} ]
2/z_index = 0
3/name = "Wall3"
3/texture = ExtResource( 1 )
3/tex_offset = Vector2( 0, 0 )
3/modulate = Color( 1, 1, 1, 1 )
3/region = Rect2( 1, 28, 8, 8 )
3/tile_mode = 0
3/occluder_offset = Vector2( 0, 0 )
3/navigation_offset = Vector2( 0, 0 )
3/shape_offset = Vector2( 4, 4 )
3/shape_transform = Transform2D( 1, 0, 0, 1, 4, 4 )
3/shape = SubResource( 1 )
3/shape_one_way = false
3/shape_one_way_margin = 1.0
3/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 4, 4 )
} ]
3/z_index = 0
4/name = "Wall4"
4/texture = ExtResource( 1 )
4/tex_offset = Vector2( 0, 0 )
4/modulate = Color( 1, 1, 1, 1 )
4/region = Rect2( 1, 28, 8, 8 )
4/tile_mode = 0
4/occluder_offset = Vector2( 0, 0 )
4/navigation_offset = Vector2( 0, 0 )
4/shape_offset = Vector2( 4, 4 )
4/shape_transform = Transform2D( 1, 0, 0, 1, 4, 4 )
4/shape = SubResource( 1 )
4/shape_one_way = false
4/shape_one_way_margin = 1.0
4/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 4, 4 )
} ]
4/z_index = 0
5/name = "Wall5"
5/texture = ExtResource( 1 )
5/tex_offset = Vector2( 0, 0 )
5/modulate = Color( 1, 1, 1, 1 )
5/region = Rect2( 1, 28, 8, 8 )
5/tile_mode = 0
5/occluder_offset = Vector2( 0, 0 )
5/navigation_offset = Vector2( 0, 0 )
5/shape_offset = Vector2( 4, 4 )
5/shape_transform = Transform2D( 1, 0, 0, 1, 4, 4 )
5/shape = SubResource( 1 )
5/shape_one_way = false
5/shape_one_way_margin = 1.0
5/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 4, 4 )
} ]
5/z_index = 0

View File

@ -1,7 +1,10 @@
[gd_scene load_steps=2 format=2]
[gd_scene load_steps=3 format=2]
[ext_resource path="res://tilesets/rogue_dungeon/2.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 4, 4 )
[node name="Node2D" type="Node2D"]
[node name="Floor" type="Sprite" parent="."]
@ -16,8 +19,56 @@ centered = false
region_enabled = true
region_rect = Rect2( 1, 37, 8, 8 )
[node name="StaticBody2D" type="StaticBody2D" parent="Wall"]
position = Vector2( 4, 4 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall/StaticBody2D"]
shape = SubResource( 1 )
[node name="Wall2" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 1, 28, 8, 8 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall2"]
position = Vector2( 4, 4 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall2/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall3" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 1, 28, 8, 8 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall3"]
position = Vector2( 4, 4 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall3/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall4" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 1, 28, 8, 8 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall4"]
position = Vector2( 4, 4 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall4/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall5" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 1, 28, 8, 8 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall5"]
position = Vector2( 4, 4 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall5/StaticBody2D2"]
shape = SubResource( 1 )

View File

@ -1,7 +1,10 @@
[gd_resource type="TileSet" load_steps=2 format=2]
[gd_resource type="TileSet" load_steps=3 format=2]
[ext_resource path="res://tilesets/rogue_lite/8x.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 4, 4 )
[resource]
0/name = "Floor"
0/texture = ExtResource( 1 )
@ -25,11 +28,18 @@
1/tile_mode = 0
1/occluder_offset = Vector2( 0, 0 )
1/navigation_offset = Vector2( 0, 0 )
1/shape_offset = Vector2( 0, 0 )
1/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
1/shape_offset = Vector2( 4, 4 )
1/shape_transform = Transform2D( 1, 0, 0, 1, 4, 4 )
1/shape = SubResource( 1 )
1/shape_one_way = false
1/shape_one_way_margin = 0.0
1/shapes = [ ]
1/shape_one_way_margin = 1.0
1/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 4, 4 )
} ]
1/z_index = 0
2/name = "Wall2"
2/texture = ExtResource( 1 )
@ -39,9 +49,79 @@
2/tile_mode = 0
2/occluder_offset = Vector2( 0, 0 )
2/navigation_offset = Vector2( 0, 0 )
2/shape_offset = Vector2( 0, 0 )
2/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
2/shape_offset = Vector2( 4, 4 )
2/shape_transform = Transform2D( 1, 0, 0, 1, 4, 4 )
2/shape = SubResource( 1 )
2/shape_one_way = false
2/shape_one_way_margin = 0.0
2/shapes = [ ]
2/shape_one_way_margin = 1.0
2/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 4, 4 )
} ]
2/z_index = 0
3/name = "Wall3"
3/texture = ExtResource( 1 )
3/tex_offset = Vector2( 0, 0 )
3/modulate = Color( 1, 1, 1, 1 )
3/region = Rect2( 47, 85, 8, 8 )
3/tile_mode = 0
3/occluder_offset = Vector2( 0, 0 )
3/navigation_offset = Vector2( 0, 0 )
3/shape_offset = Vector2( 4, 4 )
3/shape_transform = Transform2D( 1, 0, 0, 1, 4, 4 )
3/shape = SubResource( 1 )
3/shape_one_way = false
3/shape_one_way_margin = 1.0
3/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 4, 4 )
} ]
3/z_index = 0
4/name = "Wall4"
4/texture = ExtResource( 1 )
4/tex_offset = Vector2( 0, 0 )
4/modulate = Color( 1, 1, 1, 1 )
4/region = Rect2( 47, 85, 8, 8 )
4/tile_mode = 0
4/occluder_offset = Vector2( 0, 0 )
4/navigation_offset = Vector2( 0, 0 )
4/shape_offset = Vector2( 4, 4 )
4/shape_transform = Transform2D( 1, 0, 0, 1, 4, 4 )
4/shape = SubResource( 1 )
4/shape_one_way = false
4/shape_one_way_margin = 1.0
4/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 4, 4 )
} ]
4/z_index = 0
5/name = "Wall5"
5/texture = ExtResource( 1 )
5/tex_offset = Vector2( 0, 0 )
5/modulate = Color( 1, 1, 1, 1 )
5/region = Rect2( 47, 85, 8, 8 )
5/tile_mode = 0
5/occluder_offset = Vector2( 0, 0 )
5/navigation_offset = Vector2( 0, 0 )
5/shape_offset = Vector2( 4, 4 )
5/shape_transform = Transform2D( 1, 0, 0, 1, 4, 4 )
5/shape = SubResource( 1 )
5/shape_one_way = false
5/shape_one_way_margin = 1.0
5/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 4, 4 )
} ]
5/z_index = 0

View File

@ -1,7 +1,10 @@
[gd_scene load_steps=2 format=2]
[gd_scene load_steps=3 format=2]
[ext_resource path="res://tilesets/rogue_lite/8x.png" type="Texture" id=1]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 4, 4 )
[node name="Node2D" type="Node2D"]
[node name="Floor" type="Sprite" parent="."]
@ -16,8 +19,56 @@ centered = false
region_enabled = true
region_rect = Rect2( 47, 76, 8, 8 )
[node name="StaticBody2D" type="StaticBody2D" parent="Wall"]
position = Vector2( 4, 4 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall/StaticBody2D"]
shape = SubResource( 1 )
[node name="Wall2" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 47, 85, 8, 8 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall2"]
position = Vector2( 4, 4 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall2/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall3" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 47, 85, 8, 8 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall3"]
position = Vector2( 4, 4 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall3/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall4" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 47, 85, 8, 8 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall4"]
position = Vector2( 4, 4 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall4/StaticBody2D2"]
shape = SubResource( 1 )
[node name="Wall5" type="Sprite" parent="."]
texture = ExtResource( 1 )
centered = false
region_enabled = true
region_rect = Rect2( 47, 85, 8, 8 )
[node name="StaticBody2D2" type="StaticBody2D" parent="Wall5"]
position = Vector2( 4, 4 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall5/StaticBody2D2"]
shape = SubResource( 1 )

File diff suppressed because one or more lines are too long