Cube
This commit is contained in:
parent
d02993b9f9
commit
e623429432
@ -11,16 +11,16 @@ config_version=5
|
|||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="导师模拟器"
|
config/name="导师模拟器"
|
||||||
run/main_scene="res://game_manager.tscn"
|
run/main_scene="res://scenes/game_manager.tscn"
|
||||||
config/features=PackedStringArray("4.3", "C#", "GL Compatibility")
|
config/features=PackedStringArray("4.3", "C#", "GL Compatibility")
|
||||||
config/icon="res://icon.svg"
|
config/icon="res://icon.svg"
|
||||||
|
|
||||||
[autoload]
|
[autoload]
|
||||||
|
|
||||||
GameManager="*res://game_manager.tscn"
|
GameManager="*res://scenes/game_manager.tscn"
|
||||||
OneSecondTicker="*res://game_manager.tscn"
|
OneSecondTicker="*res://scenes/game_manager.tscn"
|
||||||
Dialogic="*res://addons/dialogic/Core/DialogicGameHandler.gd"
|
Dialogic="*res://addons/dialogic/Core/DialogicGameHandler.gd"
|
||||||
SceneTransit="*res://scene_transit.tscn"
|
SceneTransit="*res://scenes/scene_transit.tscn"
|
||||||
|
|
||||||
[dialogic]
|
[dialogic]
|
||||||
|
|
||||||
|
|||||||
@ -1,30 +0,0 @@
|
|||||||
using Godot;
|
|
||||||
using System;
|
|
||||||
|
|
||||||
public partial class Table : Node2D
|
|
||||||
{
|
|
||||||
private static readonly Rect2I tableRect = new(0, 0, 3, 2);
|
|
||||||
private static readonly TileMapping[] tableThemes = {
|
|
||||||
new(new Vector2I(1, 30), tableRect),
|
|
||||||
new(new Vector2I(4, 30), tableRect),
|
|
||||||
new(new Vector2I(7, 30), tableRect),
|
|
||||||
new(new Vector2I(7, 28), tableRect),
|
|
||||||
new(new Vector2I(10, 28), tableRect),
|
|
||||||
};
|
|
||||||
// Called when the node enters the scene tree for the first time.
|
|
||||||
public override void _Ready()
|
|
||||||
{
|
|
||||||
RandomChangeTheme();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
||||||
public override void _Process(double delta)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RandomChangeTheme() {
|
|
||||||
tableThemes[GD.RandRange(0, tableThemes.Length)].Apply(GetNode<TileMapLayer>("Base"));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 129 KiB After Width: | Height: | Size: 132 KiB |
@ -1,19 +0,0 @@
|
|||||||
[gd_scene load_steps=3 format=4 uid="uid://t1xwaqtbyrx1"]
|
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://resources/Table.cs" id="1_0qis0"]
|
|
||||||
[ext_resource type="TileSet" uid="uid://doadcdgjrsxxu" path="res://resources/TileSet/Office.tres" id="1_huwx3"]
|
|
||||||
|
|
||||||
[node name="Table" type="Node2D"]
|
|
||||||
script = ExtResource("1_0qis0")
|
|
||||||
|
|
||||||
[node name="Base2" type="TileMapLayer" parent="."]
|
|
||||||
tile_map_data = PackedByteArray("AAD/////AAAAABoAAAD//wAAAAAAABsAAAD//wEAAAAAABwAAAAAAP//AAABABoAAAAAAAAAAAABABsAAAAAAAEAAAABABwAAAABAP//AAACABoAAAABAAAAAAACABsAAAABAAEAAAACABwAAAACAP//AAADABoAAAACAAAAAAADABsAAAACAAEAAAADABwAAAA=")
|
|
||||||
tile_set = ExtResource("1_huwx3")
|
|
||||||
|
|
||||||
[node name="Base" type="TileMapLayer" parent="."]
|
|
||||||
tile_map_data = PackedByteArray("AAAAAAAAAAAEAB4AAAAAAAEAAAAEAB8AAAABAAAAAAAFAB4AAAABAAEAAAAFAB8AAAACAAAAAAAGAB4AAAACAAEAAAAGAB8AAAA=")
|
|
||||||
tile_set = ExtResource("1_huwx3")
|
|
||||||
|
|
||||||
[node name="Equipment" type="TileMapLayer" parent="."]
|
|
||||||
tile_map_data = PackedByteArray("AAAAAAAAAAANABwAAAAAAAEAAAANAB0AAAABAAAAAAAOABwAAAABAAEAAAAOAB0AAAACAAAAAAAPABwAAAACAAEAAAAPAB0AAAA=")
|
|
||||||
tile_set = ExtResource("1_huwx3")
|
|
||||||
35
scenes/cube.tscn
Normal file
35
scenes/cube.tscn
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
[gd_scene load_steps=3 format=4 uid="uid://dv8jkly8ullye"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" path="res://scripts/Cube.cs" id="1_3u72b"]
|
||||||
|
[ext_resource type="TileSet" uid="uid://doadcdgjrsxxu" path="res://resources/TileSet/Office.tres" id="2_ya2a5"]
|
||||||
|
|
||||||
|
[node name="Cube" type="Node2D"]
|
||||||
|
script = ExtResource("1_3u72b")
|
||||||
|
|
||||||
|
[node name="Chair2" type="TileMapLayer" parent="."]
|
||||||
|
tile_map_data = PackedByteArray("AAAAAAAAAAANABwAAAAAAAEAAAANAB0AAAABAAAAAAAOABwAAAACAAAAAAAPABwAAAACAAEAAAAPAB0AAAABAP7/AAADAAoAAAABAP//AAADAAsAAAA=")
|
||||||
|
tile_set = ExtResource("2_ya2a5")
|
||||||
|
|
||||||
|
[node name="Desk2" type="TileMapLayer" parent="."]
|
||||||
|
tile_map_data = PackedByteArray("AAAAAAEAAAAEAB8AAAABAAEAAAAFAB8AAAACAAEAAAAGAB8AAAAAAP//AAAHABwAAAABAP//AAAIABwAAAACAP//AAAJABwAAAA=")
|
||||||
|
tile_set = ExtResource("2_ya2a5")
|
||||||
|
|
||||||
|
[node name="Guardrail" type="TileMapLayer" parent="."]
|
||||||
|
tile_map_data = PackedByteArray("AAD/////AAAAABoAAAD//wAAAAAAABsAAAD//wEAAAAAABwAAAAAAP//AAABABoAAAAAAAAAAAABABsAAAAAAAEAAAABABwAAAABAP//AAACABoAAAABAAAAAAACABsAAAABAAEAAAACABwAAAACAP//AAADABoAAAACAAAAAAADABsAAAACAAEAAAADABwAAAA=")
|
||||||
|
tile_set = ExtResource("2_ya2a5")
|
||||||
|
|
||||||
|
[node name="Desk" type="TileMapLayer" parent="."]
|
||||||
|
tile_map_data = PackedByteArray("AAAAAAAAAAAEAB4AAAAAAAEAAAAEAB8AAAABAAAAAAAFAB4AAAABAAEAAAAFAB8AAAACAAAAAAAGAB4AAAACAAEAAAAGAB8AAAA=")
|
||||||
|
tile_set = ExtResource("2_ya2a5")
|
||||||
|
|
||||||
|
[node name="Equip" type="TileMapLayer" parent="."]
|
||||||
|
tile_map_data = PackedByteArray("AAABAAAAAAAIACAAAAABAAEAAAAIACEAAAAAAAAAAAALABMAAAAAAAEAAAALABQAAAACAAAAAAAJACAAAAACAAEAAAAJACEAAAA=")
|
||||||
|
tile_set = ExtResource("2_ya2a5")
|
||||||
|
|
||||||
|
[node name="Equip2" type="TileMapLayer" parent="."]
|
||||||
|
tile_map_data = PackedByteArray("AAABAP//AAAOACAAAAACAP//AAAPAB4AAAAAAP//AAANACAAAAA=")
|
||||||
|
tile_set = ExtResource("2_ya2a5")
|
||||||
|
|
||||||
|
[node name="Chair" type="TileMapLayer" parent="."]
|
||||||
|
tile_map_data = PackedByteArray("AAABAAEAAAABAAgAAAABAAIAAAABAAkAAAA=")
|
||||||
|
tile_set = ExtResource("2_ya2a5")
|
||||||
@ -1,18 +1,18 @@
|
|||||||
[gd_scene load_steps=4 format=3 uid="uid://c1ohxlt6fy4rr"]
|
[gd_scene load_steps=4 format=3 uid="uid://c1ohxlt6fy4rr"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scripts/GameManager.cs" id="1_uwl7p"]
|
[ext_resource type="Script" path="res://scripts/GameManager.cs" id="1_3aapn"]
|
||||||
[ext_resource type="Script" path="res://scripts/Res.cs" id="2_3213b"]
|
[ext_resource type="Script" path="res://scripts/Res.cs" id="2_csjm8"]
|
||||||
[ext_resource type="Script" path="res://scripts/TileMapping.cs" id="3_m370e"]
|
[ext_resource type="Script" path="res://scripts/TileMapping.cs" id="3_snrey"]
|
||||||
|
|
||||||
[node name="GameManager" type="Node"]
|
[node name="GameManager" type="Node"]
|
||||||
script = ExtResource("1_uwl7p")
|
script = ExtResource("1_3aapn")
|
||||||
|
|
||||||
[node name="OneSecondTicker" type="Timer" parent="."]
|
[node name="OneSecondTicker" type="Timer" parent="."]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
autostart = true
|
autostart = true
|
||||||
|
|
||||||
[node name="Res" type="Node" parent="."]
|
[node name="Res" type="Node" parent="."]
|
||||||
script = ExtResource("2_3213b")
|
script = ExtResource("2_csjm8")
|
||||||
|
|
||||||
[node name="TileMapping" type="Node" parent="."]
|
[node name="TileMapping" type="Node" parent="."]
|
||||||
script = ExtResource("3_m370e")
|
script = ExtResource("3_snrey")
|
||||||
@ -5,9 +5,9 @@
|
|||||||
[ext_resource type="Texture2D" uid="uid://e1wpflj415hp" path="res://temp_res/kenney_tiny-dungeon/Tilemap/tilemap_packed.png" id="1_yu0wa"]
|
[ext_resource type="Texture2D" uid="uid://e1wpflj415hp" path="res://temp_res/kenney_tiny-dungeon/Tilemap/tilemap_packed.png" id="1_yu0wa"]
|
||||||
[ext_resource type="Texture2D" uid="uid://dujbelk1piktj" path="res://resources/lab/Room_Builder_Office_48x48.png" id="2_ls45n"]
|
[ext_resource type="Texture2D" uid="uid://dujbelk1piktj" path="res://resources/lab/Room_Builder_Office_48x48.png" id="2_ls45n"]
|
||||||
[ext_resource type="Script" path="res://scripts/TestMap.cs" id="3_mca7j"]
|
[ext_resource type="Script" path="res://scripts/TestMap.cs" id="3_mca7j"]
|
||||||
[ext_resource type="PackedScene" uid="uid://t1xwaqtbyrx1" path="res://resources/table.tscn" id="8_4w4mb"]
|
[ext_resource type="PackedScene" uid="uid://dv8jkly8ullye" path="res://scenes/cube.tscn" id="8_04hci"]
|
||||||
[ext_resource type="PackedScene" uid="uid://c413oatj0eqhu" path="res://student.tscn" id="8_wqdny"]
|
[ext_resource type="PackedScene" uid="uid://c413oatj0eqhu" path="res://scenes/student.tscn" id="8_wqdny"]
|
||||||
[ext_resource type="PackedScene" uid="uid://b5hqh3exkapj" path="res://bottom_bar.tscn" id="10_1ep8g"]
|
[ext_resource type="PackedScene" uid="uid://b5hqh3exkapj" path="res://scenes/bottom_bar.tscn" id="10_1ep8g"]
|
||||||
|
|
||||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_bp2jw"]
|
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_bp2jw"]
|
||||||
resource_name = "WallTile"
|
resource_name = "WallTile"
|
||||||
@ -474,5 +474,5 @@ position = Vector2(24, 192)
|
|||||||
offset_top = 1028.0
|
offset_top = 1028.0
|
||||||
offset_bottom = 1028.0
|
offset_bottom = 1028.0
|
||||||
|
|
||||||
[node name="Table" parent="." instance=ExtResource("8_4w4mb")]
|
[node name="Cube" parent="." instance=ExtResource("8_04hci")]
|
||||||
position = Vector2(855, 464)
|
position = Vector2(823.5, 469)
|
||||||
@ -1,10 +1,10 @@
|
|||||||
[gd_scene load_steps=6 format=3 uid="uid://c7twiu4wplofj"]
|
[gd_scene load_steps=6 format=3 uid="uid://c7twiu4wplofj"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scripts/Loader.cs" id="1_leg4d"]
|
[ext_resource type="Script" path="res://scripts/Loader.cs" id="1_fbyg0"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cxr7her2pjn5o" path="res://resources/logo/LOGO.png" id="2_luvwy"]
|
[ext_resource type="Texture2D" uid="uid://cxr7her2pjn5o" path="res://resources/logo/LOGO.png" id="2_vn28s"]
|
||||||
[ext_resource type="Texture2D" uid="uid://boxrcxj1s500l" path="res://resources/logo/LOGO2.png" id="3_dq1f7"]
|
[ext_resource type="Texture2D" uid="uid://boxrcxj1s500l" path="res://resources/logo/LOGO2.png" id="3_321b7"]
|
||||||
[ext_resource type="Texture2D" uid="uid://b1a2suh4bwdr1" path="res://resources/logo/welcome.png" id="4_0dir6"]
|
[ext_resource type="Texture2D" uid="uid://b1a2suh4bwdr1" path="res://resources/logo/welcome.png" id="4_m3nu7"]
|
||||||
[ext_resource type="Texture2D" uid="uid://yh05c4bahwcs" path="res://resources/logo/LOGO3.png" id="4_ox2t6"]
|
[ext_resource type="Texture2D" uid="uid://yh05c4bahwcs" path="res://resources/logo/LOGO3.png" id="5_c24o7"]
|
||||||
|
|
||||||
[node name="Loader" type="Control"]
|
[node name="Loader" type="Control"]
|
||||||
layout_mode = 3
|
layout_mode = 3
|
||||||
@ -13,7 +13,7 @@ anchor_right = 1.0
|
|||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
script = ExtResource("1_leg4d")
|
script = ExtResource("1_fbyg0")
|
||||||
|
|
||||||
[node name="ColorRect" type="ColorRect" parent="."]
|
[node name="ColorRect" type="ColorRect" parent="."]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
@ -27,26 +27,26 @@ grow_vertical = 2
|
|||||||
visible = false
|
visible = false
|
||||||
position = Vector2(914, 450)
|
position = Vector2(914, 450)
|
||||||
scale = Vector2(0.3, 0.3)
|
scale = Vector2(0.3, 0.3)
|
||||||
texture = ExtResource("2_luvwy")
|
texture = ExtResource("2_vn28s")
|
||||||
|
|
||||||
[node name="Sprite2D2" type="Sprite2D" parent="."]
|
[node name="Sprite2D2" type="Sprite2D" parent="."]
|
||||||
visible = false
|
visible = false
|
||||||
texture_filter = 6
|
texture_filter = 6
|
||||||
position = Vector2(960, 544)
|
position = Vector2(960, 544)
|
||||||
scale = Vector2(0.3, 0.3)
|
scale = Vector2(0.3, 0.3)
|
||||||
texture = ExtResource("3_dq1f7")
|
texture = ExtResource("3_321b7")
|
||||||
|
|
||||||
[node name="Sprite2D4" type="Sprite2D" parent="."]
|
[node name="Sprite2D4" type="Sprite2D" parent="."]
|
||||||
texture_filter = 6
|
texture_filter = 6
|
||||||
position = Vector2(960, 536)
|
position = Vector2(960, 536)
|
||||||
scale = Vector2(0.933333, 0.933333)
|
scale = Vector2(0.933333, 0.933333)
|
||||||
texture = ExtResource("4_0dir6")
|
texture = ExtResource("4_m3nu7")
|
||||||
|
|
||||||
[node name="Sprite2D3" type="Sprite2D" parent="."]
|
[node name="Sprite2D3" type="Sprite2D" parent="."]
|
||||||
visible = false
|
visible = false
|
||||||
position = Vector2(960, 540)
|
position = Vector2(960, 540)
|
||||||
scale = Vector2(0.3, 0.3)
|
scale = Vector2(0.3, 0.3)
|
||||||
texture = ExtResource("4_ox2t6")
|
texture = ExtResource("5_c24o7")
|
||||||
|
|
||||||
[node name="ProgressBar" type="ProgressBar" parent="."]
|
[node name="ProgressBar" type="ProgressBar" parent="."]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
@ -1,6 +1,6 @@
|
|||||||
[gd_scene load_steps=2 format=3 uid="uid://dky0ia64tqjau"]
|
[gd_scene load_steps=2 format=3 uid="uid://dky0ia64tqjau"]
|
||||||
|
|
||||||
[ext_resource type="Texture2D" uid="uid://cu8208sk0l3c3" path="res://Animation/test.webp" id="2_km77f"]
|
[ext_resource type="Texture2D" uid="uid://cu8208sk0l3c3" path="res://Animation/test.webp" id="1_po2sv"]
|
||||||
|
|
||||||
[node name="Node2D" type="Node2D"]
|
[node name="Node2D" type="Node2D"]
|
||||||
position = Vector2(5, 78)
|
position = Vector2(5, 78)
|
||||||
@ -14,7 +14,7 @@ position = Vector2(295, -271)
|
|||||||
[node name="head" type="Polygon2D" parent="CharacterBody2D/Girl"]
|
[node name="head" type="Polygon2D" parent="CharacterBody2D/Girl"]
|
||||||
position = Vector2(-378, 2)
|
position = Vector2(-378, 2)
|
||||||
rotation = -0.0172125
|
rotation = -0.0172125
|
||||||
texture = ExtResource("2_km77f")
|
texture = ExtResource("1_po2sv")
|
||||||
skeleton = NodePath("../../Skeleton2D")
|
skeleton = NodePath("../../Skeleton2D")
|
||||||
polygon = PackedVector2Array(334.721, 48.1185, 305.174, 96.2372, 301.797, 143.512, 287.446, 193.319, 319.525, 222.865, 344.007, 222.021, 371.021, 201.761, 409.009, 221.177, 446.153, 217.8, 465.57, 195.851, 458.816, 125.784, 437.711, 60.7813, 377.774, 26.1696)
|
polygon = PackedVector2Array(334.721, 48.1185, 305.174, 96.2372, 301.797, 143.512, 287.446, 193.319, 319.525, 222.865, 344.007, 222.021, 371.021, 201.761, 409.009, 221.177, 446.153, 217.8, 465.57, 195.851, 458.816, 125.784, 437.711, 60.7813, 377.774, 26.1696)
|
||||||
uv = PackedVector2Array(334.721, 48.1185, 305.174, 96.2372, 301.797, 143.512, 287.446, 193.319, 319.525, 222.865, 344.007, 222.021, 371.021, 201.761, 409.009, 221.177, 446.153, 217.8, 465.57, 195.851, 458.816, 125.784, 437.711, 60.7813, 377.774, 26.1696)
|
uv = PackedVector2Array(334.721, 48.1185, 305.174, 96.2372, 301.797, 143.512, 287.446, 193.319, 319.525, 222.865, 344.007, 222.021, 371.021, 201.761, 409.009, 221.177, 446.153, 217.8, 465.57, 195.851, 458.816, 125.784, 437.711, 60.7813, 377.774, 26.1696)
|
||||||
@ -22,7 +22,7 @@ bones = ["hip", PackedFloat32Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), "hip/
|
|||||||
|
|
||||||
[node name="neck" type="Polygon2D" parent="CharacterBody2D/Girl"]
|
[node name="neck" type="Polygon2D" parent="CharacterBody2D/Girl"]
|
||||||
position = Vector2(-378, 0)
|
position = Vector2(-378, 0)
|
||||||
texture = ExtResource("2_km77f")
|
texture = ExtResource("1_po2sv")
|
||||||
skeleton = NodePath("../../Skeleton2D")
|
skeleton = NodePath("../../Skeleton2D")
|
||||||
polygon = PackedVector2Array(360.046, 197.54, 358.358, 223.71, 390.437, 222.865, 389.593, 198.384, 373.553, 205.137)
|
polygon = PackedVector2Array(360.046, 197.54, 358.358, 223.71, 390.437, 222.865, 389.593, 198.384, 373.553, 205.137)
|
||||||
uv = PackedVector2Array(360.046, 197.54, 358.358, 223.71, 390.437, 222.865, 389.593, 198.384, 373.553, 205.137)
|
uv = PackedVector2Array(360.046, 197.54, 358.358, 223.71, 390.437, 222.865, 389.593, 198.384, 373.553, 205.137)
|
||||||
@ -30,7 +30,7 @@ bones = ["hip", PackedFloat32Array(0, 0, 0, 0, 0), "hip/chest", PackedFloat32Arr
|
|||||||
|
|
||||||
[node name="body" type="Polygon2D" parent="CharacterBody2D/Girl"]
|
[node name="body" type="Polygon2D" parent="CharacterBody2D/Girl"]
|
||||||
position = Vector2(-376, -2)
|
position = Vector2(-376, -2)
|
||||||
texture = ExtResource("2_km77f")
|
texture = ExtResource("1_po2sv")
|
||||||
skeleton = NodePath("../../Skeleton2D")
|
skeleton = NodePath("../../Skeleton2D")
|
||||||
polygon = PackedVector2Array(351.604, 222.865, 293.355, 259.166, 314.46, 400.989, 295.888, 486.252, 296.732, 507.357, 376.086, 521.708, 454.595, 508.201, 456.284, 465.992, 436.867, 395.924, 453.751, 256.633, 397.19, 222.021)
|
polygon = PackedVector2Array(351.604, 222.865, 293.355, 259.166, 314.46, 400.989, 295.888, 486.252, 296.732, 507.357, 376.086, 521.708, 454.595, 508.201, 456.284, 465.992, 436.867, 395.924, 453.751, 256.633, 397.19, 222.021)
|
||||||
uv = PackedVector2Array(351.604, 222.865, 293.355, 259.166, 314.46, 400.989, 295.888, 486.252, 296.732, 507.357, 376.086, 521.708, 454.595, 508.201, 456.284, 465.992, 436.867, 395.924, 453.751, 256.633, 397.19, 222.021)
|
uv = PackedVector2Array(351.604, 222.865, 293.355, 259.166, 314.46, 400.989, 295.888, 486.252, 296.732, 507.357, 376.086, 521.708, 454.595, 508.201, 456.284, 465.992, 436.867, 395.924, 453.751, 256.633, 397.19, 222.021)
|
||||||
@ -39,7 +39,7 @@ bones = ["hip", PackedFloat32Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), "hip/chest"
|
|||||||
[node name="hip" type="Polygon2D" parent="CharacterBody2D/Girl"]
|
[node name="hip" type="Polygon2D" parent="CharacterBody2D/Girl"]
|
||||||
z_index = 2
|
z_index = 2
|
||||||
position = Vector2(-374, 2)
|
position = Vector2(-374, 2)
|
||||||
texture = ExtResource("2_km77f")
|
texture = ExtResource("1_po2sv")
|
||||||
skeleton = NodePath("../../Skeleton2D")
|
skeleton = NodePath("../../Skeleton2D")
|
||||||
polygon = PackedVector2Array(297.576, 507.357, 278.16, 606.971, 316.148, 624.699, 381.151, 630.608, 452.063, 618.79, 474.012, 612.036, 453.751, 509.889, 392.97, 520.02, 339.786, 520.02)
|
polygon = PackedVector2Array(297.576, 507.357, 278.16, 606.971, 316.148, 624.699, 381.151, 630.608, 452.063, 618.79, 474.012, 612.036, 453.751, 509.889, 392.97, 520.02, 339.786, 520.02)
|
||||||
uv = PackedVector2Array(297.576, 507.357, 278.16, 606.971, 316.148, 624.699, 381.151, 630.608, 452.063, 618.79, 474.012, 612.036, 453.751, 509.889, 392.97, 520.02, 339.786, 520.02)
|
uv = PackedVector2Array(297.576, 507.357, 278.16, 606.971, 316.148, 624.699, 381.151, 630.608, 452.063, 618.79, 474.012, 612.036, 453.751, 509.889, 392.97, 520.02, 339.786, 520.02)
|
||||||
@ -47,7 +47,7 @@ bones = ["hip", PackedFloat32Array(0.76, 0.26, 0.26, 0.26, 0.26, 0.26, 0.76, 0.7
|
|||||||
|
|
||||||
[node name="arm_right_up" type="Polygon2D" parent="CharacterBody2D/Girl"]
|
[node name="arm_right_up" type="Polygon2D" parent="CharacterBody2D/Girl"]
|
||||||
position = Vector2(-377, 5)
|
position = Vector2(-377, 5)
|
||||||
texture = ExtResource("2_km77f")
|
texture = ExtResource("1_po2sv")
|
||||||
skeleton = NodePath("../../Skeleton2D")
|
skeleton = NodePath("../../Skeleton2D")
|
||||||
polygon = PackedVector2Array(295.888, 255.789, 281.161, 356.426, 275.627, 394.236, 310.239, 428.847, 315.304, 394.236, 310.96, 362.086, 306.862, 331.766, 310.239, 272.673)
|
polygon = PackedVector2Array(295.888, 255.789, 281.161, 356.426, 275.627, 394.236, 310.239, 428.847, 315.304, 394.236, 310.96, 362.086, 306.862, 331.766, 310.239, 272.673)
|
||||||
uv = PackedVector2Array(295.888, 255.789, 281.161, 356.426, 275.627, 394.236, 310.239, 428.847, 315.304, 394.236, 310.96, 362.086, 306.862, 331.766, 310.239, 272.673)
|
uv = PackedVector2Array(295.888, 255.789, 281.161, 356.426, 275.627, 394.236, 310.239, 428.847, 315.304, 394.236, 310.96, 362.086, 306.862, 331.766, 310.239, 272.673)
|
||||||
@ -55,7 +55,7 @@ bones = ["hip", PackedFloat32Array(0, 0, 0, 0, 0, 0, 0, 0), "hip/chest", PackedF
|
|||||||
|
|
||||||
[node name="arm_right_down" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up"]
|
[node name="arm_right_down" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up"]
|
||||||
position = Vector2(-1, -2)
|
position = Vector2(-1, -2)
|
||||||
texture = ExtResource("2_km77f")
|
texture = ExtResource("1_po2sv")
|
||||||
skeleton = NodePath("../../../Skeleton2D")
|
skeleton = NodePath("../../../Skeleton2D")
|
||||||
polygon = PackedVector2Array(272.251, 395.924, 266.341, 454.173, 255.367, 515.799, 283.225, 525.929, 295.888, 496.382, 301.797, 451.64, 307.707, 424.626)
|
polygon = PackedVector2Array(272.251, 395.924, 266.341, 454.173, 255.367, 515.799, 283.225, 525.929, 295.888, 496.382, 301.797, 451.64, 307.707, 424.626)
|
||||||
uv = PackedVector2Array(272.251, 395.924, 266.341, 454.173, 255.367, 515.799, 283.225, 525.929, 295.888, 496.382, 301.797, 451.64, 307.707, 424.626)
|
uv = PackedVector2Array(272.251, 395.924, 266.341, 454.173, 255.367, 515.799, 283.225, 525.929, 295.888, 496.382, 301.797, 451.64, 307.707, 424.626)
|
||||||
@ -63,13 +63,13 @@ bones = ["hip", PackedFloat32Array(0, 0, 0, 0, 0, 0, 0), "hip/chest", PackedFloa
|
|||||||
|
|
||||||
[node name="arm_right_hand" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up/arm_right_down"]
|
[node name="arm_right_hand" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up/arm_right_down"]
|
||||||
position = Vector2(-1, -2)
|
position = Vector2(-1, -2)
|
||||||
texture = ExtResource("2_km77f")
|
texture = ExtResource("1_po2sv")
|
||||||
polygon = PackedVector2Array(255.367, 514.11, 256.211, 584.178, 275.627, 610.348, 287.446, 587.555, 292.511, 517.487)
|
polygon = PackedVector2Array(255.367, 514.11, 256.211, 584.178, 275.627, 610.348, 287.446, 587.555, 292.511, 517.487)
|
||||||
uv = PackedVector2Array(255.367, 514.11, 256.211, 584.178, 275.627, 610.348, 287.446, 587.555, 292.511, 517.487)
|
uv = PackedVector2Array(255.367, 514.11, 256.211, 584.178, 275.627, 610.348, 287.446, 587.555, 292.511, 517.487)
|
||||||
|
|
||||||
[node name="arm_left_up" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up"]
|
[node name="arm_left_up" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up"]
|
||||||
position = Vector2(1, -9)
|
position = Vector2(1, -9)
|
||||||
texture = ExtResource("2_km77f")
|
texture = ExtResource("1_po2sv")
|
||||||
skeleton = NodePath("../../../Skeleton2D")
|
skeleton = NodePath("../../../Skeleton2D")
|
||||||
polygon = PackedVector2Array(452.907, 258.321, 475.7, 382.417, 441.088, 413.652, 440.244, 352.026, 444.465, 277.738)
|
polygon = PackedVector2Array(452.907, 258.321, 475.7, 382.417, 441.088, 413.652, 440.244, 352.026, 444.465, 277.738)
|
||||||
uv = PackedVector2Array(452.907, 258.321, 475.7, 382.417, 441.088, 413.652, 440.244, 352.026, 444.465, 277.738)
|
uv = PackedVector2Array(452.907, 258.321, 475.7, 382.417, 441.088, 413.652, 440.244, 352.026, 444.465, 277.738)
|
||||||
@ -77,7 +77,7 @@ bones = ["hip", PackedFloat32Array(0, 0, 0, 0, 0), "hip/chest", PackedFloat32Arr
|
|||||||
|
|
||||||
[node name="arm_left_down" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up/arm_left_up"]
|
[node name="arm_left_down" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up/arm_left_up"]
|
||||||
position = Vector2(-1, -2)
|
position = Vector2(-1, -2)
|
||||||
texture = ExtResource("2_km77f")
|
texture = ExtResource("1_po2sv")
|
||||||
skeleton = NodePath("../../../../Skeleton2D")
|
skeleton = NodePath("../../../../Skeleton2D")
|
||||||
polygon = PackedVector2Array(473.167, 378.196, 437.711, 417.029, 457.128, 525.085, 490.051, 521.708)
|
polygon = PackedVector2Array(473.167, 378.196, 437.711, 417.029, 457.128, 525.085, 490.051, 521.708)
|
||||||
uv = PackedVector2Array(473.167, 378.196, 437.711, 417.029, 457.128, 525.085, 490.051, 521.708)
|
uv = PackedVector2Array(473.167, 378.196, 437.711, 417.029, 457.128, 525.085, 490.051, 521.708)
|
||||||
@ -85,13 +85,13 @@ bones = ["hip", PackedFloat32Array(0, 0, 0, 0), "hip/chest", PackedFloat32Array(
|
|||||||
|
|
||||||
[node name="arm_left_hand" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up/arm_left_up/arm_left_down"]
|
[node name="arm_left_hand" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up/arm_left_up/arm_left_down"]
|
||||||
position = Vector2(-1, -2)
|
position = Vector2(-1, -2)
|
||||||
texture = ExtResource("2_km77f")
|
texture = ExtResource("1_po2sv")
|
||||||
polygon = PackedVector2Array(459.66, 523.396, 488.363, 521.708, 495.116, 571.515, 477.388, 611.192, 462.193, 570.671)
|
polygon = PackedVector2Array(459.66, 523.396, 488.363, 521.708, 495.116, 571.515, 477.388, 611.192, 462.193, 570.671)
|
||||||
uv = PackedVector2Array(459.66, 523.396, 488.363, 521.708, 495.116, 571.515, 477.388, 611.192, 462.193, 570.671)
|
uv = PackedVector2Array(459.66, 523.396, 488.363, 521.708, 495.116, 571.515, 477.388, 611.192, 462.193, 570.671)
|
||||||
|
|
||||||
[node name="leg_left_up" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up/arm_left_up"]
|
[node name="leg_left_up" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up/arm_left_up"]
|
||||||
position = Vector2(3, -20)
|
position = Vector2(3, -20)
|
||||||
texture = ExtResource("2_km77f")
|
texture = ExtResource("1_po2sv")
|
||||||
skeleton = NodePath("../../../../Skeleton2D")
|
skeleton = NodePath("../../../../Skeleton2D")
|
||||||
polygon = PackedVector2Array(388.749, 630.608, 392.97, 758.081, 431.802, 755.548, 446.998, 622.166)
|
polygon = PackedVector2Array(388.749, 630.608, 392.97, 758.081, 431.802, 755.548, 446.998, 622.166)
|
||||||
uv = PackedVector2Array(388.749, 630.608, 392.97, 758.081, 431.802, 755.548, 446.998, 622.166)
|
uv = PackedVector2Array(388.749, 630.608, 392.97, 758.081, 431.802, 755.548, 446.998, 622.166)
|
||||||
@ -99,7 +99,7 @@ bones = ["hip", PackedFloat32Array(0, 0, 0, 0), "hip/chest", PackedFloat32Array(
|
|||||||
|
|
||||||
[node name="leg_left_down" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up/arm_left_up/leg_left_up"]
|
[node name="leg_left_down" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up/arm_left_up/leg_left_up"]
|
||||||
position = Vector2(-1, -2)
|
position = Vector2(-1, -2)
|
||||||
texture = ExtResource("2_km77f")
|
texture = ExtResource("1_po2sv")
|
||||||
skeleton = NodePath("../../../../../Skeleton2D")
|
skeleton = NodePath("../../../../../Skeleton2D")
|
||||||
polygon = PackedVector2Array(396.346, 752.171, 395.502, 945.49, 420.828, 946.335, 440.244, 814.641, 431.802, 753.016)
|
polygon = PackedVector2Array(396.346, 752.171, 395.502, 945.49, 420.828, 946.335, 440.244, 814.641, 431.802, 753.016)
|
||||||
uv = PackedVector2Array(396.346, 752.171, 395.502, 945.49, 420.828, 946.335, 440.244, 814.641, 431.802, 753.016)
|
uv = PackedVector2Array(396.346, 752.171, 395.502, 945.49, 420.828, 946.335, 440.244, 814.641, 431.802, 753.016)
|
||||||
@ -107,7 +107,7 @@ bones = ["hip", PackedFloat32Array(0.5, 0.5, 0.5, 0.5, 0.5), "hip/chest", Packed
|
|||||||
|
|
||||||
[node name="leg_left_foot" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up/arm_left_up/leg_left_up/leg_left_down"]
|
[node name="leg_left_foot" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up/arm_left_up/leg_left_up/leg_left_down"]
|
||||||
position = Vector2(-1, -9)
|
position = Vector2(-1, -9)
|
||||||
texture = ExtResource("2_km77f")
|
texture = ExtResource("1_po2sv")
|
||||||
skeleton = NodePath("../../../../../../Skeleton2D")
|
skeleton = NodePath("../../../../../../Skeleton2D")
|
||||||
polygon = PackedVector2Array(390.437, 948.023, 387.06, 998.674, 438.556, 1000.36, 424.204, 945.49)
|
polygon = PackedVector2Array(390.437, 948.023, 387.06, 998.674, 438.556, 1000.36, 424.204, 945.49)
|
||||||
uv = PackedVector2Array(390.437, 948.023, 387.06, 998.674, 438.556, 1000.36, 424.204, 945.49)
|
uv = PackedVector2Array(390.437, 948.023, 387.06, 998.674, 438.556, 1000.36, 424.204, 945.49)
|
||||||
@ -115,20 +115,20 @@ bones = ["hip", PackedFloat32Array(0.5, 0.5, 0.5, 0.5), "hip/chest", PackedFloat
|
|||||||
|
|
||||||
[node name="leg_right_up" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up/arm_left_up/leg_left_up"]
|
[node name="leg_right_up" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up/arm_left_up/leg_left_up"]
|
||||||
position = Vector2(-1, -1)
|
position = Vector2(-1, -1)
|
||||||
texture = ExtResource("2_km77f")
|
texture = ExtResource("1_po2sv")
|
||||||
skeleton = NodePath("../../../../../Skeleton2D")
|
skeleton = NodePath("../../../../../Skeleton2D")
|
||||||
polygon = PackedVector2Array(304.556, 622.304, 319.388, 749.609, 351.523, 749.609, 361.411, 629.719)
|
polygon = PackedVector2Array(304.556, 622.304, 319.388, 749.609, 351.523, 749.609, 361.411, 629.719)
|
||||||
uv = PackedVector2Array(304.556, 622.304, 319.388, 749.609, 351.523, 749.609, 361.411, 629.719)
|
uv = PackedVector2Array(304.556, 622.304, 319.388, 749.609, 351.523, 749.609, 361.411, 629.719)
|
||||||
bones = ["hip", PackedFloat32Array(0, 0, 0, 0), "hip/chest", PackedFloat32Array(0, 0, 0, 0), "hip/chest/neck", PackedFloat32Array(0, 0, 0, 0), "hip/chest/neck/head", PackedFloat32Array(0, 0, 0, 0), "hip/chest/arm_left", PackedFloat32Array(0, 0, 0, 0), "hip/chest/arm_left/hand_left", PackedFloat32Array(0, 0, 0, 0), "hip/chest/arm_left/hand_left/hand_left2", PackedFloat32Array(0, 0, 0, 0), "hip/chest/arm_left/hand_left/hand_left2/hand_left3", PackedFloat32Array(0, 0, 0, 0), "hip/chest/arm_right", PackedFloat32Array(0, 0, 0, 0), "hip/chest/arm_right/hand_right", PackedFloat32Array(0, 0, 0, 0), "hip/chest/arm_right/hand_right/hand_right2", PackedFloat32Array(0, 0, 0, 0), "hip/chest/arm_right/hand_right/hand_right2/hand_right3", PackedFloat32Array(0, 0, 0, 0), "hip/leg_right", PackedFloat32Array(0.76, 0.26, 0.26, 0.76), "hip/leg_right/leg_right1", PackedFloat32Array(0, 0, 0, 0), "hip/leg_right/leg_right1/leg_right2", PackedFloat32Array(0, 0, 0, 0), "hip/leg_left", PackedFloat32Array(0, 0, 0, 0)]
|
bones = ["hip", PackedFloat32Array(0, 0, 0, 0), "hip/chest", PackedFloat32Array(0, 0, 0, 0), "hip/chest/neck", PackedFloat32Array(0, 0, 0, 0), "hip/chest/neck/head", PackedFloat32Array(0, 0, 0, 0), "hip/chest/arm_left", PackedFloat32Array(0, 0, 0, 0), "hip/chest/arm_left/hand_left", PackedFloat32Array(0, 0, 0, 0), "hip/chest/arm_left/hand_left/hand_left2", PackedFloat32Array(0, 0, 0, 0), "hip/chest/arm_left/hand_left/hand_left2/hand_left3", PackedFloat32Array(0, 0, 0, 0), "hip/chest/arm_right", PackedFloat32Array(0, 0, 0, 0), "hip/chest/arm_right/hand_right", PackedFloat32Array(0, 0, 0, 0), "hip/chest/arm_right/hand_right/hand_right2", PackedFloat32Array(0, 0, 0, 0), "hip/chest/arm_right/hand_right/hand_right2/hand_right3", PackedFloat32Array(0, 0, 0, 0), "hip/leg_right", PackedFloat32Array(0.76, 0.26, 0.26, 0.76), "hip/leg_right/leg_right1", PackedFloat32Array(0, 0, 0, 0), "hip/leg_right/leg_right1/leg_right2", PackedFloat32Array(0, 0, 0, 0), "hip/leg_left", PackedFloat32Array(0, 0, 0, 0)]
|
||||||
|
|
||||||
[node name="Polygon2D" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up/arm_left_up/leg_left_up/leg_right_up"]
|
[node name="Polygon2D" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up/arm_left_up/leg_left_up/leg_right_up"]
|
||||||
texture = ExtResource("2_km77f")
|
texture = ExtResource("1_po2sv")
|
||||||
polygon = PackedVector2Array(319.609, 739.324, 311.267, 812.318, 325.865, 944.75, 350.892, 944.75, 357.149, 823.789, 355.063, 744.538)
|
polygon = PackedVector2Array(319.609, 739.324, 311.267, 812.318, 325.865, 944.75, 350.892, 944.75, 357.149, 823.789, 355.063, 744.538)
|
||||||
uv = PackedVector2Array(319.609, 739.324, 311.267, 812.318, 325.865, 944.75, 350.892, 944.75, 357.149, 823.789, 355.063, 744.538)
|
uv = PackedVector2Array(319.609, 739.324, 311.267, 812.318, 325.865, 944.75, 350.892, 944.75, 357.149, 823.789, 355.063, 744.538)
|
||||||
|
|
||||||
[node name="Polygon2D" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up/arm_left_up/leg_left_up/leg_right_up/Polygon2D"]
|
[node name="Polygon2D" type="Polygon2D" parent="CharacterBody2D/Girl/arm_right_up/arm_left_up/leg_left_up/leg_right_up/Polygon2D"]
|
||||||
position = Vector2(1, -15)
|
position = Vector2(1, -15)
|
||||||
texture = ExtResource("2_km77f")
|
texture = ExtResource("1_po2sv")
|
||||||
polygon = PackedVector2Array(320.369, 945.068, 300.953, 999.94, 354.981, 1009.23, 360.89, 951.822)
|
polygon = PackedVector2Array(320.369, 945.068, 300.953, 999.94, 354.981, 1009.23, 360.89, 951.822)
|
||||||
|
|
||||||
[node name="Skeleton2D" type="Skeleton2D" parent="CharacterBody2D"]
|
[node name="Skeleton2D" type="Skeleton2D" parent="CharacterBody2D"]
|
||||||
@ -218,5 +218,3 @@ rest = Transform2D(1, 0, 0, 1, -2.16921, 136.495)
|
|||||||
[node name="leg_left2" type="Bone2D" parent="CharacterBody2D/Skeleton2D/hip/leg_left/leg_left1"]
|
[node name="leg_left2" type="Bone2D" parent="CharacterBody2D/Skeleton2D/hip/leg_left/leg_left1"]
|
||||||
position = Vector2(-18.4402, 251.66)
|
position = Vector2(-18.4402, 251.66)
|
||||||
rest = Transform2D(1, 0, 0, 1, -2.84613, 114.969)
|
rest = Transform2D(1, 0, 0, 1, -2.84613, 114.969)
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
[gd_scene load_steps=2 format=3 uid="uid://sbcypicpotp5"]
|
[gd_scene load_steps=2 format=3 uid="uid://sbcypicpotp5"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scripts/Player.cs" id="1_aap5j"]
|
[ext_resource type="Script" path="res://scripts/Player.cs" id="1_2xj2t"]
|
||||||
|
|
||||||
[node name="Player" type="Node"]
|
[node name="Player" type="Node"]
|
||||||
script = ExtResource("1_aap5j")
|
script = ExtResource("1_2xj2t")
|
||||||
@ -1,7 +1,7 @@
|
|||||||
[gd_scene load_steps=7 format=3 uid="uid://xnssep8q3gm5"]
|
[gd_scene load_steps=7 format=3 uid="uid://xnssep8q3gm5"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scripts/SceneTransit.cs" id="1_138ac"]
|
[ext_resource type="Script" path="res://scripts/SceneTransit.cs" id="1_2kqcs"]
|
||||||
[ext_resource type="Texture2D" uid="uid://dxqtqlu4rkew7" path="res://resources/logo/bbj.png" id="2_apx86"]
|
[ext_resource type="Texture2D" uid="uid://dxqtqlu4rkew7" path="res://resources/logo/bbj.png" id="2_3sfim"]
|
||||||
|
|
||||||
[sub_resource type="Animation" id="Animation_6aqtw"]
|
[sub_resource type="Animation" id="Animation_6aqtw"]
|
||||||
length = 0.001
|
length = 0.001
|
||||||
@ -95,7 +95,7 @@ _data = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[node name="CanvasLayer" type="CanvasLayer"]
|
[node name="CanvasLayer" type="CanvasLayer"]
|
||||||
script = ExtResource("1_138ac")
|
script = ExtResource("1_2kqcs")
|
||||||
|
|
||||||
[node name="ColorRect" type="ColorRect" parent="."]
|
[node name="ColorRect" type="ColorRect" parent="."]
|
||||||
offset_right = 1920.0
|
offset_right = 1920.0
|
||||||
@ -121,4 +121,4 @@ modulate = Color(1, 1, 1, 0)
|
|||||||
texture_filter = 6
|
texture_filter = 6
|
||||||
position = Vector2(960, 540)
|
position = Vector2(960, 540)
|
||||||
scale = Vector2(1.5, 1.5)
|
scale = Vector2(1.5, 1.5)
|
||||||
texture = ExtResource("2_apx86")
|
texture = ExtResource("2_3sfim")
|
||||||
9720
scenes/welcome.tscn
Normal file
9720
scenes/welcome.tscn
Normal file
File diff suppressed because one or more lines are too long
99
scripts/Cube.cs
Normal file
99
scripts/Cube.cs
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
using Godot;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
public partial class Cube : Node2D
|
||||||
|
{
|
||||||
|
private static readonly Rect2I tableRect = new(0, 0, 3, 2);
|
||||||
|
private static readonly Rect2I table2Rect = new(0, -1, 3, 1);
|
||||||
|
private static readonly Rect2I chairRect = new(1, 1, 1, 2);
|
||||||
|
private static readonly Rect2I chair2Rect = new(1, -2, 1, 2);
|
||||||
|
private static readonly Rect2I equipRect = new(0, 0, 3, 2);
|
||||||
|
private static readonly Rect2I equip2Rect = new(0, -1, 3, 1);
|
||||||
|
private static readonly TileMapping[] tableThemes = {
|
||||||
|
new(new Vector2I(1, 30), tableRect),
|
||||||
|
new(new Vector2I(4, 30), tableRect),
|
||||||
|
new(new Vector2I(7, 30), tableRect),
|
||||||
|
new(new Vector2I(7, 28), tableRect),
|
||||||
|
new(new Vector2I(10, 28), tableRect),
|
||||||
|
};
|
||||||
|
private static readonly TileMapping[] table2Themes = {
|
||||||
|
new(new Vector2I(1, 31), table2Rect),
|
||||||
|
new(new Vector2I(4, 31), table2Rect),
|
||||||
|
new(new Vector2I(7, 31), table2Rect),
|
||||||
|
new(new Vector2I(7, 29), table2Rect),
|
||||||
|
new(new Vector2I(10, 29), table2Rect),
|
||||||
|
};
|
||||||
|
private static readonly TileMapping[] chairThemes = {
|
||||||
|
new(new Vector2I(-1, 7), chairRect),
|
||||||
|
new(new Vector2I(0, 7), chairRect),
|
||||||
|
new(new Vector2I(-1, 9), chairRect),
|
||||||
|
new(new Vector2I(0, 9), chairRect),
|
||||||
|
};
|
||||||
|
private static readonly TileMapping[] chair2Themes = {
|
||||||
|
new(new Vector2I(-1, 10), chair2Rect),
|
||||||
|
new(new Vector2I(0, 10), chair2Rect),
|
||||||
|
new(new Vector2I(-1, 12), chair2Rect),
|
||||||
|
new(new Vector2I(0, 12), chair2Rect),
|
||||||
|
};
|
||||||
|
|
||||||
|
private static readonly TileMapping[] equipThemes = {
|
||||||
|
// one laptop
|
||||||
|
new(new Vector2I(13, 26), equipRect),
|
||||||
|
// one laptop with one monitor
|
||||||
|
new(new Vector2I(7, 26), equipRect),
|
||||||
|
// one desktop PC
|
||||||
|
new(new Dictionary<Vector2I, Vector2I>() {
|
||||||
|
[new Vector2I(0, 0)] = new Vector2I(11, 17),
|
||||||
|
[new Vector2I(1, 0)] = new Vector2I(8, 32),
|
||||||
|
[new Vector2I(2, 0)] = new Vector2I(9, 32),
|
||||||
|
[new Vector2I(0, 1)] = new Vector2I(11, 18),
|
||||||
|
[new Vector2I(1, 1)] = new Vector2I(8, 33),
|
||||||
|
[new Vector2I(2, 1)] = new Vector2I(9, 33),
|
||||||
|
}),
|
||||||
|
// one desktop PC with one monitors
|
||||||
|
new(new Vector2I(7, 32), equipRect),
|
||||||
|
};
|
||||||
|
|
||||||
|
private static readonly TileMapping[] equip2Themes = {
|
||||||
|
// one laptop
|
||||||
|
new(new Vector2I(13, 31), equip2Rect),
|
||||||
|
// one laptop with one monitor
|
||||||
|
new(new Dictionary<Vector2I, Vector2I>() {
|
||||||
|
[new Vector2I(0, -1)] = new Vector2I(13, 32),
|
||||||
|
[new Vector2I(1, -1)] = new Vector2I(10, 7),
|
||||||
|
[new Vector2I(2, -1)] = new Vector2I(15, 32),
|
||||||
|
}),
|
||||||
|
// one desktop PC
|
||||||
|
new(new Dictionary<Vector2I, Vector2I>() {
|
||||||
|
[new Vector2I(0, -1)] = new Vector2I(13, 32),
|
||||||
|
[new Vector2I(1, -1)] = new Vector2I(14, 32),
|
||||||
|
[new Vector2I(2, -1)] = new Vector2I(15, 30),
|
||||||
|
}),
|
||||||
|
// one desktop PC with one monitors
|
||||||
|
new(new Vector2I(13, 33), equip2Rect),
|
||||||
|
};
|
||||||
|
|
||||||
|
// Called when the node enters the scene tree for the first time.
|
||||||
|
public override void _Ready()
|
||||||
|
{
|
||||||
|
RandomChangeTheme();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
public override void _Process(double delta)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void RandomChangeTheme() {
|
||||||
|
tableThemes[GD.RandRange(0, tableThemes.Length-1)].Apply(GetNode<TileMapLayer>("Desk"));
|
||||||
|
table2Themes[GD.RandRange(0, table2Themes.Length-1)].Apply(GetNode<TileMapLayer>("Desk2"));
|
||||||
|
chairThemes[GD.RandRange(0, chairThemes.Length-1)].Apply(GetNode<TileMapLayer>("Chair"));
|
||||||
|
chair2Themes[GD.RandRange(0, chair2Themes.Length-1)].Apply(GetNode<TileMapLayer>("Chair2"));
|
||||||
|
equipThemes[GD.RandRange(0, equipThemes.Length-1)].Apply(GetNode<TileMapLayer>("Equip"));
|
||||||
|
var x =GD.RandRange(0, equip2Themes.Length-1);
|
||||||
|
GD.Print(GD.RandRange(0, equip2Themes.Length-1));
|
||||||
|
equip2Themes[x].Apply(GetNode<TileMapLayer>("Equip2"));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -14,7 +14,7 @@ public partial class GameManager : Node
|
|||||||
{
|
{
|
||||||
Input.SetCustomMouseCursor(Arrow2x);
|
Input.SetCustomMouseCursor(Arrow2x);
|
||||||
var transit = GetNode<SceneTransit>("/root/SceneTransit");
|
var transit = GetNode<SceneTransit>("/root/SceneTransit");
|
||||||
transit.Transit("res://lab.tscn", true, "logo", 1.5f);
|
transit.Transit("res://scenes/lab.tscn", true, "logo", 1.5f);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
|||||||
@ -17,7 +17,7 @@ public partial class Lab : Node2D
|
|||||||
var label = GetNode<Label>("BottomBar/HBoxContainer/Date");
|
var label = GetNode<Label>("BottomBar/HBoxContainer/Date");
|
||||||
label.Text = Player.Timeline.InternalDate.ToLongDateString();
|
label.Text = Player.Timeline.InternalDate.ToLongDateString();
|
||||||
Player.Timeline.OnDayChanged += d => label.Text = d.ToLongDateString();
|
Player.Timeline.OnDayChanged += d => label.Text = d.ToLongDateString();
|
||||||
var table = GetNode<Table>("Table");
|
var table = GetNode<Cube>("Cube");
|
||||||
Player.Timeline.OnDayChanged += d => table.RandomChangeTheme();
|
Player.Timeline.OnDayChanged += d => table.RandomChangeTheme();
|
||||||
|
|
||||||
MoneyLabel = GetNode<Label>("BottomBar/HBoxContainer/Money");
|
MoneyLabel = GetNode<Label>("BottomBar/HBoxContainer/Money");
|
||||||
|
|||||||
@ -7,8 +7,8 @@ public partial class Loader : Control
|
|||||||
private ProgressBar progressBar;
|
private ProgressBar progressBar;
|
||||||
private int sceneLoaded = 0;
|
private int sceneLoaded = 0;
|
||||||
private List<string> resToLoad = new (){
|
private List<string> resToLoad = new (){
|
||||||
"res://lab.tscn",
|
"res://scenes/lab.tscn",
|
||||||
"res://player.tscn"
|
"res://scenes/player.tscn"
|
||||||
};
|
};
|
||||||
|
|
||||||
// Called when the node enters the scene tree for the first time.
|
// Called when the node enters the scene tree for the first time.
|
||||||
@ -17,7 +17,7 @@ public partial class Loader : Control
|
|||||||
progressBar = GetNode<ProgressBar>("ProgressBar");
|
progressBar = GetNode<ProgressBar>("ProgressBar");
|
||||||
string nextScene = GameManager.NextScene;
|
string nextScene = GameManager.NextScene;
|
||||||
if (nextScene != null) {
|
if (nextScene != null) {
|
||||||
GameManager.NextScene = "res://lab.tscn";
|
GameManager.NextScene = "res://scenes/lab.tscn";
|
||||||
}
|
}
|
||||||
resToLoad.AddRange(Res.Accessory);
|
resToLoad.AddRange(Res.Accessory);
|
||||||
resToLoad.AddRange(Res.Body);
|
resToLoad.AddRange(Res.Body);
|
||||||
@ -45,7 +45,7 @@ public partial class Loader : Control
|
|||||||
ResourceLoader.LoadThreadedRequest(resToLoad[sceneLoaded]);
|
ResourceLoader.LoadThreadedRequest(resToLoad[sceneLoaded]);
|
||||||
} else {
|
} else {
|
||||||
var transit = GetNode<SceneTransit>("/root/SceneTransit");
|
var transit = GetNode<SceneTransit>("/root/SceneTransit");
|
||||||
transit.Transit("res://lab.tscn", false);
|
transit.Transit("res://scenes/lab.tscn", false);
|
||||||
SetProcess(false);
|
SetProcess(false);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -27,7 +27,7 @@ public partial class SceneTransit : CanvasLayer
|
|||||||
await ToSignal(GetTree().CreateTimer(waitSecond), SceneTreeTimer.SignalName.Timeout);
|
await ToSignal(GetTree().CreateTimer(waitSecond), SceneTreeTimer.SignalName.Timeout);
|
||||||
}
|
}
|
||||||
if (needLoadResources) {
|
if (needLoadResources) {
|
||||||
GetTree().ChangeSceneToFile("res://loader.tscn");
|
GetTree().ChangeSceneToFile("res://scenes/loader.tscn");
|
||||||
} else {
|
} else {
|
||||||
GetTree().ChangeSceneToFile(nextScene);
|
GetTree().ChangeSceneToFile(nextScene);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -39,7 +39,6 @@ public partial class TileMapping : Node
|
|||||||
for (int x = tileRect.Position.X; x < tileRect.End.X; x++) {
|
for (int x = tileRect.Position.X; x < tileRect.End.X; x++) {
|
||||||
for (int y = tileRect.Position.Y; y < tileRect.End.Y; y++) {
|
for (int y = tileRect.Position.Y; y < tileRect.End.Y; y++) {
|
||||||
var pos = new Vector2I(x, y);
|
var pos = new Vector2I(x, y);
|
||||||
GD.Print($"{pos} -> {pos + pixelOffset}");
|
|
||||||
layer.SetCell(pos, sourceId, pos + pixelOffset);
|
layer.SetCell(pos, sourceId, pos + pixelOffset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
27712
welcome.tscn
27712
welcome.tscn
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user