It's Cow Game! Version 2.04!
This commit is contained in:
commit
a9e1ed9ddd
3148 changed files with 95332 additions and 0 deletions
23
Objects/Museum/AshBarrel/AshBarrel.gd
Normal file
23
Objects/Museum/AshBarrel/AshBarrel.gd
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
extends Node2D
|
||||
|
||||
func _ready():
|
||||
update_ash()
|
||||
|
||||
func show_ash_barrel_window():
|
||||
%AshBarrelWindow.popup_centered()
|
||||
%AshBarrelWindow.opened()
|
||||
|
||||
func update_ash():
|
||||
var ash_count = %AshBarrelWindow.get_ash_count()
|
||||
|
||||
if ash_count > 0:
|
||||
%AshBottom.visible = true
|
||||
%AshBottom.self_modulate = %AshBarrelWindow.get_ash_color()
|
||||
else:
|
||||
%AshBottom.visible = false
|
||||
|
||||
%AshBar.value = ash_count
|
||||
|
||||
var newStyleBox = %AshBar.get("theme_override_styles/fill")
|
||||
newStyleBox.bg_color = %AshBarrelWindow.get_ash_color()
|
||||
|
||||
BIN
Objects/Museum/AshBarrel/AshBarrel.png
Normal file
BIN
Objects/Museum/AshBarrel/AshBarrel.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
34
Objects/Museum/AshBarrel/AshBarrel.png.import
Normal file
34
Objects/Museum/AshBarrel/AshBarrel.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bfsfwarreymej"
|
||||
path="res://.godot/imported/AshBarrel.png-ef905c02092c80e20d2e79c0e7d65c0d.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Objects/Museum/AshBarrel/AshBarrel.png"
|
||||
dest_files=["res://.godot/imported/AshBarrel.png-ef905c02092c80e20d2e79c0e7d65c0d.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
|
||||
81
Objects/Museum/AshBarrel/AshBarrel.tscn
Normal file
81
Objects/Museum/AshBarrel/AshBarrel.tscn
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
[gd_scene load_steps=12 format=3 uid="uid://4e55qinpx62y"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cujx1a8vwxsj8" path="res://Objects/world_object.tscn" id="1_cr61a"]
|
||||
[ext_resource type="Script" path="res://Objects/Museum/AshBarrel/AshBarrel.gd" id="2_07njx"]
|
||||
[ext_resource type="Texture2D" uid="uid://bfsfwarreymej" path="res://Objects/Museum/AshBarrel/AshBarrel.png" id="2_ux6b1"]
|
||||
[ext_resource type="PackedScene" uid="uid://bqibe7ha6r5ls" path="res://Interactions/Interactable/interactable.tscn" id="3_vxw5e"]
|
||||
[ext_resource type="Texture2D" uid="uid://6qkrfsj54byn" path="res://Objects/Museum/AshBarrel/AshBottom.png" id="3_xkfgh"]
|
||||
[ext_resource type="PackedScene" uid="uid://bqf30ut0hvmn4" path="res://Interactions/AshBarrel/AshBarrelInteraction.tscn" id="4_re637"]
|
||||
[ext_resource type="PackedScene" uid="uid://rggivntaylnr" path="res://UI/AshBarrel/AshBarrelWindow.tscn" id="6_628yk"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_fe758"]
|
||||
bg_color = Color(0.6, 0.6, 0.6, 0)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7slq7"]
|
||||
bg_color = Color(1, 1, 1, 1)
|
||||
border_color = Color(0, 0.235294, 0.909804, 1)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_xdtxh"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_ux6b1")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7jhe4"]
|
||||
size = Vector2(266, 85)
|
||||
|
||||
[node name="AshBarrel" instance=ExtResource("1_cr61a")]
|
||||
process_mode = 3
|
||||
script = ExtResource("2_07njx")
|
||||
|
||||
[node name="AshBar" type="ProgressBar" parent="." index="0"]
|
||||
unique_name_in_owner = true
|
||||
offset_left = -126.0
|
||||
offset_top = -175.0
|
||||
offset_right = 147.0
|
||||
offset_bottom = -87.0
|
||||
scale = Vector2(0.94, 2)
|
||||
theme_override_styles/background = SubResource("StyleBoxFlat_fe758")
|
||||
theme_override_styles/fill = SubResource("StyleBoxFlat_7slq7")
|
||||
value = 50.0
|
||||
fill_mode = 3
|
||||
show_percentage = false
|
||||
|
||||
[node name="AshBottom" type="Sprite2D" parent="." index="1"]
|
||||
unique_name_in_owner = true
|
||||
position = Vector2(2, -90)
|
||||
texture = ExtResource("3_xkfgh")
|
||||
|
||||
[node name="AnimatedSprite2D" parent="." index="2"]
|
||||
position = Vector2(3, -90)
|
||||
sprite_frames = SubResource("SpriteFrames_xdtxh")
|
||||
|
||||
[node name="CollisionPolygon2D" parent="StaticBody2D" index="0"]
|
||||
polygon = PackedVector2Array(-131, -22, 137, -22, 137, 3, 109, 15, 63, 25, 18, 29, -10, 29, -46, 26, -110, 14, -131, 1)
|
||||
|
||||
[node name="Interactable" parent="." index="4" instance=ExtResource("3_vxw5e")]
|
||||
|
||||
[node name="Panel" parent="Interactable" index="1"]
|
||||
offset_left = -130.0
|
||||
offset_top = -190.0
|
||||
offset_right = 136.0
|
||||
offset_bottom = 6.0
|
||||
|
||||
[node name="AshBarrelInteraction" parent="." index="5" instance=ExtResource("4_re637")]
|
||||
|
||||
[node name="CollisionShape2D" parent="AshBarrelInteraction/InteractionArea" index="0"]
|
||||
position = Vector2(3, 5.5)
|
||||
shape = SubResource("RectangleShape2D_7jhe4")
|
||||
|
||||
[node name="AshBarrelWindow" parent="." index="6" instance=ExtResource("6_628yk")]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
|
||||
[editable path="Interactable"]
|
||||
[editable path="Interactable/ActionMenu"]
|
||||
[editable path="AshBarrelInteraction"]
|
||||
BIN
Objects/Museum/AshBarrel/AshBarrelMask.png
Normal file
BIN
Objects/Museum/AshBarrel/AshBarrelMask.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
34
Objects/Museum/AshBarrel/AshBarrelMask.png.import
Normal file
34
Objects/Museum/AshBarrel/AshBarrelMask.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dw6by7fk1xim2"
|
||||
path="res://.godot/imported/AshBarrelMask.png-e12cb1d6acb4774e3e8079860e93a617.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Objects/Museum/AshBarrel/AshBarrelMask.png"
|
||||
dest_files=["res://.godot/imported/AshBarrelMask.png-e12cb1d6acb4774e3e8079860e93a617.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
Objects/Museum/AshBarrel/AshBottom.png
Normal file
BIN
Objects/Museum/AshBarrel/AshBottom.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 564 B |
34
Objects/Museum/AshBarrel/AshBottom.png.import
Normal file
34
Objects/Museum/AshBarrel/AshBottom.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://6qkrfsj54byn"
|
||||
path="res://.godot/imported/AshBottom.png-d488444611ffed9a28d0278c5b64a21e.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Objects/Museum/AshBarrel/AshBottom.png"
|
||||
dest_files=["res://.godot/imported/AshBottom.png-d488444611ffed9a28d0278c5b64a21e.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…
Add table
Add a link
Reference in a new issue