mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-21 23:54:23 +00:00
Implement trees
Co-authored-by: Maxim Lobovsky <mex.lobo@mail.ru>
This commit is contained in:
parent
6bbd7f1f85
commit
b580dfd65e
6 changed files with 127 additions and 1 deletions
36
entities/tree.tscn
Normal file
36
entities/tree.tscn
Normal file
|
@ -0,0 +1,36 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://db246fkcf452d"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://13au54xlwvd8" path="res://entities/tree1.png" id="1_yk0t0"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rvj5w"]
|
||||
size = Vector2(36, 36)
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_0arkv"]
|
||||
radius = 34.5
|
||||
height = 91.0
|
||||
|
||||
[node name="Tree" type="Node2D"]
|
||||
y_sort_enabled = true
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="."]
|
||||
y_sort_enabled = true
|
||||
position = Vector2(0, -48)
|
||||
scale = Vector2(2, 2)
|
||||
texture = ExtResource("1_yk0t0")
|
||||
|
||||
[node name="Lower" type="StaticBody2D" parent="."]
|
||||
collision_layer = 8
|
||||
collision_mask = 0
|
||||
|
||||
[node name="Shape" type="CollisionShape2D" parent="Lower"]
|
||||
position = Vector2(0, -8)
|
||||
shape = SubResource("RectangleShape2D_rvj5w")
|
||||
|
||||
[node name="Upper" type="StaticBody2D" parent="."]
|
||||
collision_layer = 16
|
||||
collision_mask = 0
|
||||
|
||||
[node name="Shape" type="CollisionShape2D" parent="Upper"]
|
||||
position = Vector2(0, -68)
|
||||
shape = SubResource("CapsuleShape2D_0arkv")
|
||||
debug_color = Color(0, 0.294118, 0.345098, 0.419608)
|
BIN
entities/tree1.png
(Stored with Git LFS)
Normal file
BIN
entities/tree1.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
entities/tree1.png.import
Normal file
34
entities/tree1.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://13au54xlwvd8"
|
||||
path="res://.godot/imported/tree1.png-ef3002ca9d87ddc7dc3e90987eec8b21.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/tree1.png"
|
||||
dest_files=["res://.godot/imported/tree1.png-ef3002ca9d87ddc7dc3e90987eec8b21.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
|
BIN
entities/tree2.png
(Stored with Git LFS)
Normal file
BIN
entities/tree2.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
entities/tree2.png.import
Normal file
34
entities/tree2.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://gd267dpdvsea"
|
||||
path="res://.godot/imported/tree2.png-e4aee889ebb890b4e2608d75a5b3e9c6.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/tree2.png"
|
||||
dest_files=["res://.godot/imported/tree2.png-e4aee889ebb890b4e2608d75a5b3e9c6.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
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=24 format=3 uid="uid://cxj5aud02f40j"]
|
||||
[gd_scene load_steps=25 format=3 uid="uid://cxj5aud02f40j"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/game/main_game.gd" id="1_wiglu"]
|
||||
[ext_resource type="PackedScene" uid="uid://dm068vaseh45n" path="res://scenes/game/game_camera.tscn" id="2_db5xs"]
|
||||
|
@ -17,6 +17,7 @@
|
|||
[ext_resource type="PackedScene" uid="uid://dnjtduk0hla3f" path="res://entities/watcher.tscn" id="14_8rumi"]
|
||||
[ext_resource type="PackedScene" uid="uid://gl4umoff474y" path="res://entities/cthulhu.tscn" id="15_k41qf"]
|
||||
[ext_resource type="PackedScene" uid="uid://cgpwig0rd08vh" path="res://entities/summoning_circle_pentagram.tscn" id="16_nhsrb"]
|
||||
[ext_resource type="PackedScene" uid="uid://db246fkcf452d" path="res://entities/tree.tscn" id="18_r8twr"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_058kb"]
|
||||
texture = ExtResource("2_o7bg5")
|
||||
|
@ -967,3 +968,18 @@ position = Vector2(189, 171)
|
|||
|
||||
[node name="Cthulhu" parent="DefaultSpawnParent" instance=ExtResource("15_k41qf")]
|
||||
position = Vector2(226, -137)
|
||||
|
||||
[node name="Tree" parent="." instance=ExtResource("18_r8twr")]
|
||||
position = Vector2(424, 68)
|
||||
|
||||
[node name="Tree2" parent="." instance=ExtResource("18_r8twr")]
|
||||
position = Vector2(385, 104)
|
||||
|
||||
[node name="Tree3" parent="." instance=ExtResource("18_r8twr")]
|
||||
position = Vector2(341, 143)
|
||||
|
||||
[node name="Tree4" parent="." instance=ExtResource("18_r8twr")]
|
||||
position = Vector2(341, 247)
|
||||
|
||||
[node name="Tree5" parent="." instance=ExtResource("18_r8twr")]
|
||||
position = Vector2(379, 292)
|
||||
|
|
Loading…
Reference in a new issue