plant needs and adds

This commit was merged in pull request #5.
This commit is contained in:
2024-08-31 18:18:34 +02:00
parent 5f8052f0a3
commit 7949eb6489
19 changed files with 235 additions and 74 deletions

View File

@@ -1,26 +1,41 @@
[gd_resource type="Resource" script_class="PlantType" load_steps=4 format=3 uid="uid://bgi2lo7kb3d2v"]
[gd_resource type="Resource" script_class="PlantType" load_steps=7 format=3 uid="uid://bgi2lo7kb3d2v"]
[ext_resource type="Script" path="res://scripts/plant_type.gd" id="1_i8xe4"]
[ext_resource type="Texture2D" uid="uid://b11jyrkhw7ebp" path="res://icon.svg" id="1_t42om"]
[ext_resource type="Texture2D" uid="uid://r1bq2tgt1yxf" path="res://assets/gamejam_plantes_props1.png" id="2_gaemm"]
[sub_resource type="AtlasTexture" id="AtlasTexture_fxqnu"]
atlas = ExtResource("2_gaemm")
region = Rect2(1920, 1620, 320, 540)
[sub_resource type="AtlasTexture" id="AtlasTexture_sjq1e"]
atlas = ExtResource("2_gaemm")
region = Rect2(320, 1080, 320, 540)
[sub_resource type="AtlasTexture" id="AtlasTexture_jsm3j"]
atlas = ExtResource("2_gaemm")
region = Rect2(0, 1080, 320, 540)
[sub_resource type="SpriteFrames" id="SpriteFrames_fxtnk"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_t42om")
"texture": SubResource("AtlasTexture_fxqnu")
}],
"loop": true,
"name": &"DEAD",
"speed": 5.0
}, {
"frames": [],
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_sjq1e")
}],
"loop": true,
"name": &"GROWN",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_t42om")
"texture": SubResource("AtlasTexture_jsm3j")
}],
"loop": true,
"name": &"SAPLING",
@@ -33,11 +48,12 @@ type = "Chardon"
sprite_frames = SubResource("SpriteFrames_fxtnk")
growing_time = 0.5
dying_time = 10.0
water_need = 5
soil_need = 0
distance_needed = 0.1
water_prod = 0
soil_prod = 0
water_need = [0, 0]
fertility_need = [0, 0]
presence_need = [0, 0]
water_prod = 1
fertility_prod = -1
presence_prod = 1
dead_water_prod = 0
dead_soil_prod = 1
distance_prod = 0.1
dead_fertility_prod = 1
distance_prod = 50

View File

@@ -1,24 +1,42 @@
[gd_resource type="Resource" script_class="PlantType" load_steps=4 format=3 uid="uid://b6ufxuqdcgwmx"]
[gd_resource type="Resource" script_class="PlantType" load_steps=7 format=3 uid="uid://b6ufxuqdcgwmx"]
[ext_resource type="Script" path="res://scripts/plant_type.gd" id="1_meppe"]
[ext_resource type="Texture2D" uid="uid://b11jyrkhw7ebp" path="res://icon.svg" id="3_14y3x"]
[ext_resource type="Texture2D" uid="uid://r1bq2tgt1yxf" path="res://assets/gamejam_plantes_props1.png" id="2_jkmk8"]
[sub_resource type="AtlasTexture" id="AtlasTexture_vmgwa"]
atlas = ExtResource("2_jkmk8")
region = Rect2(2880, 1080, 320, 540)
[sub_resource type="AtlasTexture" id="AtlasTexture_7r8et"]
atlas = ExtResource("2_jkmk8")
region = Rect2(2880, 540, 320, 540)
[sub_resource type="AtlasTexture" id="AtlasTexture_oy8ng"]
atlas = ExtResource("2_jkmk8")
region = Rect2(3200, 0, 320, 540)
[sub_resource type="SpriteFrames" id="SpriteFrames_shufc"]
animations = [{
"frames": [],
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_vmgwa")
}],
"loop": true,
"name": &"DEAD",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_14y3x")
"texture": SubResource("AtlasTexture_7r8et")
}],
"loop": true,
"name": &"GROWN",
"speed": 5.0
}, {
"frames": [],
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_oy8ng")
}],
"loop": true,
"name": &"SAPLING",
"speed": 5.0
@@ -30,11 +48,12 @@ type = "Chene"
sprite_frames = SubResource("SpriteFrames_shufc")
growing_time = 50.0
dying_time = 100.0
water_need = 1
soil_need = 1
distance_needed = 0.1
water_need = [0, 0]
fertility_need = [0, 0]
presence_need = [0, 0]
water_prod = 1
soil_prod = 1
fertility_prod = 2
presence_prod = 1
dead_water_prod = 0
dead_soil_prod = 1
distance_prod = 0.1
dead_fertility_prod = 1
distance_prod = 50.0

View File

@@ -1,23 +1,41 @@
[gd_resource type="Resource" script_class="PlantType" load_steps=4 format=3 uid="uid://dnahox31xqy6l"]
[gd_resource type="Resource" script_class="PlantType" load_steps=7 format=3 uid="uid://dnahox31xqy6l"]
[ext_resource type="Texture2D" uid="uid://b11jyrkhw7ebp" path="res://icon.svg" id="1_b2cb6"]
[ext_resource type="Script" path="res://scripts/plant_type.gd" id="1_mhtmv"]
[ext_resource type="Texture2D" uid="uid://r1bq2tgt1yxf" path="res://assets/gamejam_plantes_props1.png" id="2_gcjog"]
[sub_resource type="AtlasTexture" id="AtlasTexture_ncq3n"]
atlas = ExtResource("2_gcjog")
region = Rect2(0, 540, 320, 540)
[sub_resource type="AtlasTexture" id="AtlasTexture_slfxf"]
atlas = ExtResource("2_gcjog")
region = Rect2(1280, 1080, 320, 540)
[sub_resource type="AtlasTexture" id="AtlasTexture_gsxj4"]
atlas = ExtResource("2_gcjog")
region = Rect2(2240, 0, 320, 540)
[sub_resource type="SpriteFrames" id="SpriteFrames_d15np"]
animations = [{
"frames": [],
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ncq3n")
}],
"loop": true,
"name": &"DEAD",
"speed": 5.0
}, {
"frames": [],
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_slfxf")
}],
"loop": true,
"name": &"GROWN",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_b2cb6")
"texture": SubResource("AtlasTexture_gsxj4")
}],
"loop": true,
"name": &"SAPLING",
@@ -30,11 +48,12 @@ type = "Peuplier"
sprite_frames = SubResource("SpriteFrames_d15np")
growing_time = 2.0
dying_time = 2.0
water_need = 0
soil_need = 0
distance_needed = 0.1
water_prod = 0
soil_prod = 0
water_need = [0, 0]
fertility_need = [0, 0]
presence_need = [0, 0]
water_prod = 2
fertility_prod = 2
presence_prod = 1
dead_water_prod = 0
dead_soil_prod = 1
distance_prod = 0.1
dead_fertility_prod = 1
distance_prod = 25.0