Merge branch 'feature/crowd' into feat_faces
This commit is contained in:
commit
aa785eba06
|
@ -0,0 +1,14 @@
|
||||||
|
extends Node2D
|
||||||
|
|
||||||
|
@export_range(1, 16, 1)
|
||||||
|
var max_persons = 16
|
||||||
|
|
||||||
|
func _ready():
|
||||||
|
var counter = 0
|
||||||
|
var person = preload("res://scenes/crowd/person.tscn")
|
||||||
|
for seat in $Seats.get_children():
|
||||||
|
seat.add_child(person.instantiate())
|
||||||
|
|
||||||
|
counter += 1
|
||||||
|
if counter == max_persons:
|
||||||
|
break
|
|
@ -0,0 +1,76 @@
|
||||||
|
[gd_scene load_steps=3 format=3 uid="uid://bx6htkgx23t8v"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" path="res://scenes/crowd/crowd.gd" id="1_y7wyj"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://c37ydueny6n1f" path="res://scenes/crowd/table.png" id="2_kf115"]
|
||||||
|
|
||||||
|
[node name="Crowd" type="Node2D"]
|
||||||
|
position = Vector2(240, 232)
|
||||||
|
script = ExtResource("1_y7wyj")
|
||||||
|
|
||||||
|
[node name="Seats" type="Node" parent="."]
|
||||||
|
|
||||||
|
[node name="Seat_1" type="Node2D" parent="Seats"]
|
||||||
|
position = Vector2(168, 156)
|
||||||
|
|
||||||
|
[node name="Seat_10" type="Node2D" parent="Seats"]
|
||||||
|
position = Vector2(311, 137)
|
||||||
|
|
||||||
|
[node name="Seat_7" type="Node2D" parent="Seats"]
|
||||||
|
position = Vector2(249, 81)
|
||||||
|
|
||||||
|
[node name="Seat_16" type="Node2D" parent="Seats"]
|
||||||
|
position = Vector2(320, 274)
|
||||||
|
|
||||||
|
[node name="Seat_5" type="Node2D" parent="Seats"]
|
||||||
|
position = Vector2(205, 35)
|
||||||
|
|
||||||
|
[node name="Seat_12" type="Node2D" parent="Seats"]
|
||||||
|
position = Vector2(359, 184)
|
||||||
|
|
||||||
|
[node name="Seat_8" type="Node2D" parent="Seats"]
|
||||||
|
position = Vector2(204, 130)
|
||||||
|
|
||||||
|
[node name="Seat_13" type="Node2D" parent="Seats"]
|
||||||
|
position = Vector2(315, 187)
|
||||||
|
|
||||||
|
[node name="Seat_2" type="Node2D" parent="Seats"]
|
||||||
|
position = Vector2(122, 197)
|
||||||
|
|
||||||
|
[node name="Seat_3" type="Node2D" parent="Seats"]
|
||||||
|
position = Vector2(217, 199)
|
||||||
|
|
||||||
|
[node name="Seat_15" type="Node2D" parent="Seats"]
|
||||||
|
position = Vector2(366, 231)
|
||||||
|
|
||||||
|
[node name="Seat_4" type="Node2D" parent="Seats"]
|
||||||
|
position = Vector2(166, 244)
|
||||||
|
|
||||||
|
[node name="Seat_9" type="Node2D" parent="Seats"]
|
||||||
|
position = Vector2(359, 94)
|
||||||
|
|
||||||
|
[node name="Seat_14" type="Node2D" parent="Seats"]
|
||||||
|
position = Vector2(276, 232)
|
||||||
|
|
||||||
|
[node name="Seat_6" type="Node2D" parent="Seats"]
|
||||||
|
position = Vector2(159, 79)
|
||||||
|
|
||||||
|
[node name="Seat_11" type="Node2D" parent="Seats"]
|
||||||
|
position = Vector2(401, 133)
|
||||||
|
|
||||||
|
[node name="Tables" type="Node" parent="."]
|
||||||
|
|
||||||
|
[node name="Table_1" type="Sprite2D" parent="Tables"]
|
||||||
|
position = Vector2(170, 199)
|
||||||
|
texture = ExtResource("2_kf115")
|
||||||
|
|
||||||
|
[node name="Table_2" type="Sprite2D" parent="Tables"]
|
||||||
|
position = Vector2(359, 138)
|
||||||
|
texture = ExtResource("2_kf115")
|
||||||
|
|
||||||
|
[node name="Table_3" type="Sprite2D" parent="Tables"]
|
||||||
|
position = Vector2(203, 84)
|
||||||
|
texture = ExtResource("2_kf115")
|
||||||
|
|
||||||
|
[node name="Table_4" type="Sprite2D" parent="Tables"]
|
||||||
|
position = Vector2(319, 230)
|
||||||
|
texture = ExtResource("2_kf115")
|
|
@ -0,0 +1,7 @@
|
||||||
|
[gd_scene load_steps=2 format=3 uid="uid://cl4fax7fbh2g7"]
|
||||||
|
|
||||||
|
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_kbo53"]
|
||||||
|
size = Vector2(20, 30)
|
||||||
|
|
||||||
|
[node name="Person" type="Sprite2D"]
|
||||||
|
texture = SubResource("PlaceholderTexture2D_kbo53")
|
Binary file not shown.
After Width: | Height: | Size: 792 B |
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://c37ydueny6n1f"
|
||||||
|
path="res://.godot/imported/table.png-4bc92ae90425ddea852f77e75ef69549.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://scenes/crowd/table.png"
|
||||||
|
dest_files=["res://.godot/imported/table.png-4bc92ae90425ddea852f77e75ef69549.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
|
Loading…
Reference in New Issue