Interface
This commit is contained in:
parent
63be02d2a6
commit
d90f819d68
9 changed files with 178 additions and 0 deletions
101
main_scene.tscn
Normal file
101
main_scene.tscn
Normal file
|
@ -0,0 +1,101 @@
|
||||||
|
[gd_scene load_steps=9 format=3 uid="uid://i801l1q51ty"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" path="res://scripts/GameController.gd" id="1_1it4g"]
|
||||||
|
[ext_resource type="MeshLibrary" uid="uid://1fphqppfq2sf" path="res://tileset.tres" id="2_6yanm"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://co0jbthyi0g22" path="res://textures/grayons.jpg" id="3_7asrf"]
|
||||||
|
|
||||||
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_8im05"]
|
||||||
|
|
||||||
|
[sub_resource type="Sky" id="Sky_q8l0m"]
|
||||||
|
sky_material = SubResource("ProceduralSkyMaterial_8im05")
|
||||||
|
|
||||||
|
[sub_resource type="Environment" id="Environment_01c1r"]
|
||||||
|
background_mode = 2
|
||||||
|
sky = SubResource("Sky_q8l0m")
|
||||||
|
|
||||||
|
[sub_resource type="ViewportTexture" id="ViewportTexture_nwbi4"]
|
||||||
|
viewport_path = NodePath("SubViewport")
|
||||||
|
|
||||||
|
[sub_resource type="LabelSettings" id="LabelSettings_4j670"]
|
||||||
|
font_size = 42
|
||||||
|
|
||||||
|
[node name="Root" type="Node" node_paths=PackedStringArray("PartyCamera")]
|
||||||
|
script = ExtResource("1_1it4g")
|
||||||
|
PartyCamera = NodePath("SubViewport/PartyCamera")
|
||||||
|
|
||||||
|
[node name="SubViewport" type="SubViewport" parent="."]
|
||||||
|
size = Vector2i(320, 320)
|
||||||
|
|
||||||
|
[node name="GridMap" type="GridMap" parent="SubViewport"]
|
||||||
|
mesh_library = ExtResource("2_6yanm")
|
||||||
|
data = {
|
||||||
|
"cells": PackedInt32Array(65535, 65535, 0, 65535, 0, 0, 0, 0, 0, 0, 65535, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
[node name="PartyCamera" type="Camera3D" parent="SubViewport"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.405028, 0)
|
||||||
|
environment = SubResource("Environment_01c1r")
|
||||||
|
|
||||||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="SubViewport"]
|
||||||
|
transform = Transform3D(0.810471, -0.450933, 0.373893, 0, 0.638284, 0.769801, -0.585778, -0.623901, 0.517311, 0, 0, 0)
|
||||||
|
|
||||||
|
[node name="TextureRect" type="TextureRect" parent="."]
|
||||||
|
anchors_preset = 9
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
offset_right = 651.0
|
||||||
|
grow_vertical = 2
|
||||||
|
texture = SubResource("ViewportTexture_nwbi4")
|
||||||
|
stretch_mode = 4
|
||||||
|
|
||||||
|
[node name="Label" type="Label" parent="."]
|
||||||
|
anchors_preset = -1
|
||||||
|
anchor_left = 0.598
|
||||||
|
anchor_top = 0.039
|
||||||
|
anchor_right = 0.987
|
||||||
|
anchor_bottom = 0.236
|
||||||
|
offset_left = 0.103943
|
||||||
|
offset_top = -0.272001
|
||||||
|
offset_right = -0.0240479
|
||||||
|
offset_bottom = 0.071991
|
||||||
|
text = "ЗАЛУПА БЕХОЛДЕРА
|
||||||
|
ОФФЛАЙН"
|
||||||
|
label_settings = SubResource("LabelSettings_4j670")
|
||||||
|
horizontal_alignment = 1
|
||||||
|
vertical_alignment = 1
|
||||||
|
uppercase = true
|
||||||
|
|
||||||
|
[node name="Grayons" type="Sprite2D" parent="."]
|
||||||
|
position = Vector2(735, 248)
|
||||||
|
scale = Vector2(0.215054, 0.184039)
|
||||||
|
texture = ExtResource("3_7asrf")
|
||||||
|
|
||||||
|
[node name="Grayons2" type="Sprite2D" parent="."]
|
||||||
|
position = Vector2(957, 270)
|
||||||
|
scale = Vector2(0.12724, 0.210912)
|
||||||
|
texture = ExtResource("3_7asrf")
|
||||||
|
|
||||||
|
[node name="Grayons3" type="Sprite2D" parent="."]
|
||||||
|
position = Vector2(735, 451)
|
||||||
|
scale = Vector2(0.260753, 0.188518)
|
||||||
|
texture = ExtResource("3_7asrf")
|
||||||
|
|
||||||
|
[node name="Grayons4" type="Sprite2D" parent="."]
|
||||||
|
position = Vector2(999, 466)
|
||||||
|
scale = Vector2(0.291667, 0.252239)
|
||||||
|
texture = ExtResource("3_7asrf")
|
||||||
|
|
||||||
|
[node name="Log" type="TextEdit" parent="."]
|
||||||
|
anchors_preset = -1
|
||||||
|
anchor_top = 0.881
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
offset_left = 650.0
|
||||||
|
offset_top = -19.888
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 0
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
size_flags_vertical = 10
|
||||||
|
text = "Партия поспала, посрала и пожрала. Не обязательно в данном порядке.
|
||||||
|
Вы услышали шорох."
|
||||||
|
editable = false
|
||||||
|
wrap_mode = 1
|
|
@ -11,6 +11,7 @@ config_version=5
|
||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="dungeon-crawler-framework"
|
config/name="dungeon-crawler-framework"
|
||||||
|
run/main_scene="res://main_scene.tscn"
|
||||||
config/features=PackedStringArray("4.0", "GL Compatibility")
|
config/features=PackedStringArray("4.0", "GL Compatibility")
|
||||||
config/icon="res://icon.svg"
|
config/icon="res://icon.svg"
|
||||||
|
|
||||||
|
@ -18,7 +19,18 @@ config/icon="res://icon.svg"
|
||||||
|
|
||||||
project/assembly_name="dungeon-crawler-framework"
|
project/assembly_name="dungeon-crawler-framework"
|
||||||
|
|
||||||
|
[internationalization]
|
||||||
|
|
||||||
|
locale/translations=PackedStringArray("res://translations/en_us_base.tres")
|
||||||
|
|
||||||
[rendering]
|
[rendering]
|
||||||
|
|
||||||
renderer/rendering_method="gl_compatibility"
|
renderer/rendering_method="gl_compatibility"
|
||||||
renderer/rendering_method.mobile="gl_compatibility"
|
renderer/rendering_method.mobile="gl_compatibility"
|
||||||
|
textures/default_filters/use_nearest_mipmap_filter=true
|
||||||
|
textures/default_filters/anisotropic_filtering_level=0
|
||||||
|
textures/decals/filter=2
|
||||||
|
textures/light_projectors/filter=2
|
||||||
|
2d/snap/snap_2d_transforms_to_pixel=true
|
||||||
|
2d/snap/snap_2d_vertices_to_pixel=true
|
||||||
|
textures/canvas_textures/default_texture_filter=0
|
||||||
|
|
6
scripts/GameController.gd
Normal file
6
scripts/GameController.gd
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
extends Node
|
||||||
|
|
||||||
|
@export var PartyCamera : Camera3D
|
||||||
|
|
||||||
|
func _ready():
|
||||||
|
pass
|
1
scripts/actors/Party.gd
Normal file
1
scripts/actors/Party.gd
Normal file
|
@ -0,0 +1 @@
|
||||||
|
extends Actor
|
9
scripts/utils/Actor.gd
Normal file
9
scripts/utils/Actor.gd
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
class_name Actor
|
||||||
|
|
||||||
|
@export var x : int
|
||||||
|
@export var y : int
|
||||||
|
@export_range(0, 3) var direction : int
|
||||||
|
@export var world_object : Node3D
|
||||||
|
|
||||||
|
func update_world() -> void:
|
||||||
|
pass
|
BIN
textures/grayons.jpg
Normal file
BIN
textures/grayons.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
34
textures/grayons.jpg.import
Normal file
34
textures/grayons.jpg.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://co0jbthyi0g22"
|
||||||
|
path="res://.godot/imported/grayons.jpg-524ab09847627fae466ac71a98847543.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://textures/grayons.jpg"
|
||||||
|
dest_files=["res://.godot/imported/grayons.jpg-524ab09847627fae466ac71a98847543.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
12
tileset.tres
Normal file
12
tileset.tres
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[gd_resource type="MeshLibrary" load_steps=2 format=3 uid="uid://1fphqppfq2sf"]
|
||||||
|
|
||||||
|
[sub_resource type="PlaneMesh" id="PlaneMesh_hldko"]
|
||||||
|
center_offset = Vector3(0, -1, 0)
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
item/0/name = "Floor"
|
||||||
|
item/0/mesh = SubResource("PlaneMesh_hldko")
|
||||||
|
item/0/mesh_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
|
||||||
|
item/0/shapes = []
|
||||||
|
item/0/navigation_mesh_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
|
||||||
|
item/0/navigation_layers = 1
|
3
translations/en_us_base.tres
Normal file
3
translations/en_us_base.tres
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[gd_resource type="Translation" format=3 uid="uid://bq2od5esaqfsy"]
|
||||||
|
|
||||||
|
[resource]
|
Loading…
Add table
Reference in a new issue