battery art
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://btd145u4gsl6e"
|
||||
path="res://.godot/imported/STW_Props_Batterie_Batterie.png-e86ef8c6fb521816f6ab0e9e3c31302a.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/interactables/truck/recharge/STW_Props_Batterie_Batterie.png"
|
||||
dest_files=["res://.godot/imported/STW_Props_Batterie_Batterie.png-e86ef8c6fb521816f6ab0e9e3c31302a.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bhi3mwl23flwp"
|
||||
path="res://.godot/imported/STW_Props_Batterie_Glass_V2.png-2570fc408c8be4e7f4915767fa8509d5.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/interactables/truck/recharge/STW_Props_Batterie_Glass_V2.png"
|
||||
dest_files=["res://.godot/imported/STW_Props_Batterie_Glass_V2.png-2570fc408c8be4e7f4915767fa8509d5.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c01f6ja6btsep"
|
||||
path="res://.godot/imported/STW_Props_Batterie_TERRE.png-afd1054fe9f4dfcfe62f4aac6c389b45.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/interactables/truck/recharge/STW_Props_Batterie_TERRE.png"
|
||||
dest_files=["res://.godot/imported/STW_Props_Batterie_TERRE.png-afd1054fe9f4dfcfe62f4aac6c389b45.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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/interactables/truck/recharge/STW_Props_Batterie_V2.png
Normal file
BIN
entities/interactables/truck/recharge/STW_Props_Batterie_V2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cqecty3kl6yg6"
|
||||
path="res://.godot/imported/STW_Props_Batterie_V2.png-5149763f9e1dac76893ec05c148e8056.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/interactables/truck/recharge/STW_Props_Batterie_V2.png"
|
||||
dest_files=["res://.godot/imported/STW_Props_Batterie_V2.png-5149763f9e1dac76893ec05c148e8056.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
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/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
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
|
||||
@@ -3,7 +3,11 @@ class_name TruckRecharge
|
||||
|
||||
func _ready():
|
||||
if region:
|
||||
%Bolt.modulate = Color.WHITE if region.data.charges > 0 else Color.RED
|
||||
update()
|
||||
|
||||
func update():
|
||||
%EnergyTextContainer.modulate = Color.WHITE if region.data.charges > 0 else Color.RED
|
||||
%EnergyText.text = str(region.data.charges)
|
||||
|
||||
func can_interact(_p : Player) -> bool:
|
||||
return (
|
||||
@@ -18,7 +22,7 @@ func interact(_p: Player) -> bool:
|
||||
region.data.charges -= 1
|
||||
region.pass_day()
|
||||
|
||||
%Bolt.modulate = Color.WHITE if region.data.charges > 0 else Color.RED
|
||||
update()
|
||||
|
||||
return true
|
||||
return false
|
||||
|
||||
@@ -1,34 +1,75 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://d324mlmgls4fs"]
|
||||
[gd_scene format=3 uid="uid://d324mlmgls4fs"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bsrn3gd2a532q" path="res://entities/interactables/truck/recharge/scripts/truck_recharge.gd" id="1_ipgcv"]
|
||||
[ext_resource type="Texture2D" uid="uid://dlrj7tyi5wfh8" path="res://entities/interactables/ladder/assets/truck_ladder.png" id="2_87dtp"]
|
||||
[ext_resource type="Texture2D" uid="uid://btd145u4gsl6e" path="res://entities/interactables/truck/recharge/STW_Props_Batterie_Batterie.png" id="2_ot7vv"]
|
||||
[ext_resource type="Texture2D" uid="uid://dcgnamu7sb3ov" path="res://common/icons/bolt.svg" id="3_jcfmm"]
|
||||
[ext_resource type="FontFile" uid="uid://qt80w6o01q5s" path="res://gui/ressources/fonts/TitanOne-Regular.ttf" id="4_ot7vv"]
|
||||
[ext_resource type="Texture2D" uid="uid://bhi3mwl23flwp" path="res://entities/interactables/truck/recharge/STW_Props_Batterie_Glass_V2.png" id="5_2okh4"]
|
||||
[ext_resource type="Texture2D" uid="uid://c01f6ja6btsep" path="res://entities/interactables/truck/recharge/STW_Props_Batterie_TERRE.png" id="6_2okh4"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_bjhct"]
|
||||
radius = 26.0
|
||||
height = 106.0
|
||||
radius = 39.0
|
||||
height = 105.53573
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ot7vv"]
|
||||
atlas = ExtResource("2_87dtp")
|
||||
region = Rect2(64, 161, 101, 205)
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_1vpbi"]
|
||||
font = ExtResource("4_ot7vv")
|
||||
font_size = 30
|
||||
|
||||
[node name="TruckRecharge" type="Area2D"]
|
||||
[node name="TruckRecharge" type="Area2D" unique_id=1099196706]
|
||||
script = ExtResource("1_ipgcv")
|
||||
default_interact_text = "RECHARGE"
|
||||
default_info_title = "RECHARGE_STATION"
|
||||
default_info_desc = "RECHARGE_STATION_DESC_TEXT"
|
||||
metadata/_custom_type_script = "uid://dyprcd68fjstf"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(1, -14)
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=2014886648]
|
||||
position = Vector2(9, -53)
|
||||
shape = SubResource("CapsuleShape2D_bjhct")
|
||||
|
||||
[node name="RechargeStation" type="Sprite2D" parent="."]
|
||||
position = Vector2(0, -17)
|
||||
[node name="RechargeStation" type="Sprite2D" parent="." unique_id=1801951226]
|
||||
scale = Vector2(0.5, 0.5)
|
||||
texture = SubResource("AtlasTexture_ot7vv")
|
||||
texture = ExtResource("2_ot7vv")
|
||||
offset = Vector2(0, -120)
|
||||
|
||||
[node name="Bolt" type="Sprite2D" parent="."]
|
||||
[node name="EnergyTextContainer" type="HBoxContainer" parent="." unique_id=1392320184]
|
||||
unique_name_in_owner = true
|
||||
position = Vector2(0, -15)
|
||||
offset_left = -25.0
|
||||
offset_top = -63.0
|
||||
offset_right = 49.0
|
||||
offset_bottom = -15.0
|
||||
rotation = 0.18161926
|
||||
theme_override_constants/separation = 0
|
||||
alignment = 1
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="EnergyTextContainer" unique_id=2088496808]
|
||||
custom_minimum_size = Vector2(30, 0)
|
||||
layout_mode = 2
|
||||
texture = ExtResource("3_jcfmm")
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="EnergyText" type="Label" parent="EnergyTextContainer" unique_id=834929477]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "88"
|
||||
label_settings = SubResource("LabelSettings_1vpbi")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Glass" type="Sprite2D" parent="." unique_id=825795322]
|
||||
modulate = Color(1, 1, 1, 0.5294118)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("5_2okh4")
|
||||
offset = Vector2(0, -120)
|
||||
|
||||
[node name="Terre" type="Sprite2D" parent="." unique_id=1116476976]
|
||||
scale = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("6_2okh4")
|
||||
offset = Vector2(0, -120)
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=1324035615]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=842130596]
|
||||
position = Vector2(14, -56)
|
||||
rotation = 0.18545866
|
||||
shape = SubResource("CapsuleShape2D_bjhct")
|
||||
|
||||
@@ -16,6 +16,6 @@ func get_usage_zone_radius() -> int:
|
||||
return TROWEL_ZONE_RADIUS
|
||||
|
||||
func harvest(p : Plant, player: Player):
|
||||
ProduceSeedsEffect.new(1).effect(p)
|
||||
# ProduceSeedsEffect.new(1).effect(p)
|
||||
AudioManager.play_sfx("Harvest")
|
||||
p.harvest()
|
||||
@@ -4,7 +4,7 @@
|
||||
[ext_resource type="Texture2D" uid="uid://dompaj451gklw" path="res://entities/player/assets/sprites/movement_particles.png" id="2_bls4j"]
|
||||
[ext_resource type="Texture2D" uid="uid://ys5fis3gsnoy" path="res://entities/player/assets/sprites/shadow.png" id="2_fkugw"]
|
||||
[ext_resource type="Texture2D" uid="uid://c7ff87jniga5m" path="res://entities/player/assets/sprites/robot.png" id="4_bls4j"]
|
||||
[ext_resource type="Script" uid="uid://b1mmtgmi5oq86" path="res://entities/player/scripts/player_sprite.gd" id="5_fkugw"]
|
||||
[ext_resource type="Script" path="res://entities/player/scripts/player_sprite.gd" id="5_fkugw"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_sglur"]
|
||||
radius = 27.0
|
||||
@@ -164,12 +164,6 @@ script = ExtResource("1_abrql")
|
||||
position = Vector2(0, -17)
|
||||
shape = SubResource("CircleShape2D_sglur")
|
||||
|
||||
[node name="Shadow" type="Sprite2D" parent="." unique_id=875064259]
|
||||
modulate = Color(0, 0, 0, 0.41568628)
|
||||
position = Vector2(-1, 13)
|
||||
scale = Vector2(0.41025653, 0.41025642)
|
||||
texture = ExtResource("2_fkugw")
|
||||
|
||||
[node name="InteractArea2D" type="Area2D" parent="." unique_id=1048722411]
|
||||
position = Vector2(0, -12)
|
||||
|
||||
@@ -186,13 +180,19 @@ gravity = Vector2(0, 100)
|
||||
scale_amount_curve = SubResource("Curve_fkugw")
|
||||
color_ramp = SubResource("Gradient_bls4j")
|
||||
|
||||
[node name="Shadow" type="Sprite2D" parent="." unique_id=875064259]
|
||||
modulate = Color(0, 0, 0, 0.41568628)
|
||||
z_index = -1
|
||||
scale = Vector2(0.41025653, 0.41025642)
|
||||
texture = ExtResource("2_fkugw")
|
||||
|
||||
[node name="PlayerSprite" type="AnimatedSprite2D" parent="." unique_id=638545037]
|
||||
unique_name_in_owner = true
|
||||
position = Vector2(0.99999994, -17)
|
||||
scale = Vector2(0.0656168, 0.065616846)
|
||||
sprite_frames = SubResource("SpriteFrames_a1qjk")
|
||||
animation = &"front_right"
|
||||
frame_progress = 0.46771586
|
||||
animation = &"right"
|
||||
offset = Vector2(0, -370)
|
||||
script = ExtResource("5_fkugw")
|
||||
wanted_orientation = 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user