Compare commits
3 commits
7687844ea6
...
5e2ca5be83
| Author | SHA1 | Date | |
|---|---|---|---|
| 5e2ca5be83 | |||
| c73dd1dbd6 | |||
| 8e9f7723d9 |
|
|
@ -13,9 +13,7 @@ var destroyed = false
|
|||
# also make sure that the buildings are instantiated as children of the grid
|
||||
func _ready() -> void:
|
||||
assert(grid != null)
|
||||
var angle = location.x * TAU / grid.num_collumns; # currently assumes anchor is bottom left
|
||||
var height = grid.ground_radius + location.y * grid.cell_height;
|
||||
position = height * Vector2.from_angle(angle)
|
||||
position = grid.get_world_position(location)
|
||||
if blocks_area:
|
||||
grid.buildings.append(self)
|
||||
|
||||
|
|
@ -27,18 +25,13 @@ func _ready() -> void:
|
|||
|
||||
for enemy in enemies:
|
||||
var oldpos = enemy.position;
|
||||
enemy.position = get_world_position(oldpos)
|
||||
enemy.position = grid.get_world_position(oldpos)
|
||||
if enemy is Platform or enemy is Trap or enemy is Item:
|
||||
objects.append(enemy)
|
||||
if "building" in enemy: enemy.building = self
|
||||
if(enemy.has_method("init_at_horizontal_distortion")):
|
||||
enemy.init_at_horizontal_distortion(enemy.position.length() / grid.ground_radius)
|
||||
|
||||
func get_world_position (local_position: Vector2) -> Vector2:
|
||||
var height = grid.ground_radius + location.y * grid.cell_height - local_position.y
|
||||
var angle = (location.x + local_position.x / grid.cell_height) * TAU / grid.num_collumns
|
||||
return height * Vector2.from_angle(angle)
|
||||
|
||||
func overlaps(other : Building):
|
||||
# heights don't overlap
|
||||
if location.y >= other.location.y + other.dimension.y: return false # other is below
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ var target_pos = Vector2.ZERO
|
|||
var damage = 1
|
||||
var dead = false
|
||||
signal grounded
|
||||
signal slam_step_finished
|
||||
|
||||
func choose_next_move() -> String:
|
||||
if $EnemyHurtbox.hp <= 3 * $EnemyHurtbox.max_hp / 4 and risen == 0:
|
||||
|
|
@ -59,32 +60,32 @@ func slam():
|
|||
idle_move = false
|
||||
velocity = up_direction * 500
|
||||
await get_tree().create_timer(0.6).timeout
|
||||
damage = 2
|
||||
velocity = up_direction * -1500
|
||||
await grounded
|
||||
$SoundSlam.play()
|
||||
destroy_below()
|
||||
await slam_step()
|
||||
damage = 1
|
||||
velocity = up_direction * 500
|
||||
await get_tree().create_timer(0.3).timeout
|
||||
damage = 2
|
||||
velocity = up_direction * -1500
|
||||
await grounded
|
||||
$SoundSlam.play()
|
||||
destroy_below()
|
||||
damage = 1
|
||||
await slam_step()
|
||||
velocity = up_direction * 35
|
||||
await get_tree().create_timer(3).timeout
|
||||
idle_move = true
|
||||
attack_ready = true
|
||||
|
||||
func slam_step():
|
||||
damage = 2
|
||||
velocity = up_direction * -1500
|
||||
grounded.connect(func(): slam_step_finished.emit())
|
||||
get_tree().create_timer(1.5).timeout.connect(func(): slam_step_finished.emit())
|
||||
await slam_step_finished
|
||||
$SoundSlam.play()
|
||||
destroy_below()
|
||||
damage = 1
|
||||
|
||||
func destroy_below():
|
||||
if dead: return
|
||||
for body in $DestructionChecker.get_overlapping_bodies():
|
||||
if(body.has_method("destroy")): body.destroy()
|
||||
|
||||
func wave():
|
||||
|
||||
var angle = atan2(player.position.y, player.position.x)
|
||||
var dir = randi_range(0, 1) * 2 - 1
|
||||
var speed = 3000/water.radius_base
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 875 B After Width: | Height: | Size: 875 B |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bavoghl2pxs83"
|
||||
path="res://.godot/imported/arrow.png-11da51178d457b4db8d73e91ed37096d.ctex"
|
||||
path="res://.godot/imported/arrow.png-2cffe6fabf19679230c231a1fd8a329e.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://items/active_items/bow/arrow.png"
|
||||
dest_files=["res://.godot/imported/arrow.png-11da51178d457b4db8d73e91ed37096d.ctex"]
|
||||
source_file="res://items/consumables/bow/arrow.png"
|
||||
dest_files=["res://.godot/imported/arrow.png-2cffe6fabf19679230c231a1fd8a329e.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://dfva4dhflxglr"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bglrm0bb4nla" path="res://items/active_items/bow/arrow.gd" id="1_lxthq"]
|
||||
[ext_resource type="Texture2D" uid="uid://bavoghl2pxs83" path="res://items/active_items/bow/arrow.png" id="2_ilsew"]
|
||||
[ext_resource type="Script" uid="uid://bglrm0bb4nla" path="res://items/consumables/bow/arrow.gd" id="1_lxthq"]
|
||||
[ext_resource type="Texture2D" uid="uid://bavoghl2pxs83" path="res://items/consumables/bow/arrow.png" id="2_ilsew"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_tfcgf"]
|
||||
size = Vector2(20, 5)
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://bu3j6ambrybd2"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bavoghl2pxs83" path="res://items/active_items/bow/arrow.png" id="1_7lvex"]
|
||||
[ext_resource type="Texture2D" uid="uid://bavoghl2pxs83" path="res://items/consumables/bow/arrow.png" id="1_7lvex"]
|
||||
|
||||
[node name="TextureRect" type="TextureRect"]
|
||||
custom_minimum_size = Vector2(0, 3)
|
||||
|
Before Width: | Height: | Size: 967 B After Width: | Height: | Size: 967 B |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d01h01le82gyh"
|
||||
path="res://.godot/imported/bow.png-5c21d924e7ed46a9ae9ef92089b84a58.ctex"
|
||||
path="res://.godot/imported/bow.png-7ca2f79a3aaf0404b0d2a5f64b2c7b38.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://items/active_items/bow/bow.png"
|
||||
dest_files=["res://.godot/imported/bow.png-5c21d924e7ed46a9ae9ef92089b84a58.ctex"]
|
||||
source_file="res://items/consumables/bow/bow.png"
|
||||
dest_files=["res://.godot/imported/bow.png-7ca2f79a3aaf0404b0d2a5f64b2c7b38.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
[gd_scene load_steps=10 format=3 uid="uid://ddn025xnjngko"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bkcip66at5sug" path="res://items/active_items/bow/bow.gd" id="1_xppub"]
|
||||
[ext_resource type="PackedScene" uid="uid://dfva4dhflxglr" path="res://items/active_items/bow/arrow.tscn" id="2_0id2q"]
|
||||
[ext_resource type="Texture2D" uid="uid://d01h01le82gyh" path="res://items/active_items/bow/bow.png" id="3_vkelq"]
|
||||
[ext_resource type="Script" uid="uid://bkcip66at5sug" path="res://items/consumables/bow/bow.gd" id="1_xppub"]
|
||||
[ext_resource type="PackedScene" uid="uid://dfva4dhflxglr" path="res://items/consumables/bow/arrow.tscn" id="2_0id2q"]
|
||||
[ext_resource type="Texture2D" uid="uid://d01h01le82gyh" path="res://items/consumables/bow/bow.png" id="3_vkelq"]
|
||||
[ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="4_0id2q"]
|
||||
[ext_resource type="PackedScene" uid="uid://bu3j6ambrybd2" path="res://items/active_items/bow/arrow_icon.tscn" id="4_2dslu"]
|
||||
[ext_resource type="PackedScene" uid="uid://bu3j6ambrybd2" path="res://items/consumables/bow/arrow_icon.tscn" id="4_2dslu"]
|
||||
[ext_resource type="AudioStream" uid="uid://bg1w0fyeyys2p" path="res://sounds/item-equip-6904.mp3" id="5_gfbg0"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/ItemShine.png" id="5_o1smo"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/generic/ItemShine.png" id="5_o1smo"]
|
||||
[ext_resource type="AudioStream" uid="uid://10ljbd4djqgb" path="res://sounds/263675__porkmuncher__bow_release_cut.wav" id="7_o1smo"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_gllxn"]
|
||||
|
Before Width: | Height: | Size: 928 B After Width: | Height: | Size: 928 B |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dog2yksitfgu1"
|
||||
path="res://.godot/imported/heal_item.png-fd96dcbc8e00ec13b19c3e58ef0188e6.ctex"
|
||||
path="res://.godot/imported/heal_item.png-8a8830bfa8056f0430b6f7daf94a6634.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://items/immediate_items/heal_item/heal_item.png"
|
||||
dest_files=["res://.godot/imported/heal_item.png-fd96dcbc8e00ec13b19c3e58ef0188e6.ctex"]
|
||||
source_file="res://items/consumables/heal_item/heal_item.png"
|
||||
dest_files=["res://.godot/imported/heal_item.png-8a8830bfa8056f0430b6f7daf94a6634.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://b00185vygcka1"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b43fudwi47qfd" path="res://items/immediate_items/heal_item/heal_item.gd" id="1_3vbv8"]
|
||||
[ext_resource type="Texture2D" uid="uid://dog2yksitfgu1" path="res://items/immediate_items/heal_item/heal_item.png" id="2_bqles"]
|
||||
[ext_resource type="Script" uid="uid://b43fudwi47qfd" path="res://items/consumables/heal_item/heal_item.gd" id="1_3vbv8"]
|
||||
[ext_resource type="Texture2D" uid="uid://dog2yksitfgu1" path="res://items/consumables/heal_item/heal_item.png" id="2_bqles"]
|
||||
[ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="2_evqwq"]
|
||||
[ext_resource type="Texture2D" uid="uid://djfc7sdc8wxp6" path="res://player/Heart_cut.png" id="3_fvuym"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/ItemShine.png" id="4_sr4am"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/generic/ItemShine.png" id="4_sr4am"]
|
||||
[ext_resource type="AudioStream" uid="uid://b37akn7hmk2r3" path="res://sounds/471834__keshafilm__health-pickup.wav" id="5_1ujdq"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_hvhjo"]
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://dy17xhg1yrl0o"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://jq326dmuaj22" path="res://items/active_items/horizontal_dash/horizontal_dash.gd" id="1_ktd5x"]
|
||||
[ext_resource type="Texture2D" uid="uid://cnn3tadylge8y" path="res://items/active_items/horizontal_dash/horizontaldash.png" id="3_ktd5x"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/ItemShine.png" id="3_vqrqe"]
|
||||
[ext_resource type="Script" uid="uid://jq326dmuaj22" path="res://items/consumables/horizontal_dash/horizontal_dash.gd" id="1_ktd5x"]
|
||||
[ext_resource type="Texture2D" uid="uid://cnn3tadylge8y" path="res://items/consumables/horizontal_dash/horizontaldash.png" id="3_ktd5x"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/generic/ItemShine.png" id="3_vqrqe"]
|
||||
[ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="4_gtuhj"]
|
||||
[ext_resource type="AudioStream" uid="uid://bg1w0fyeyys2p" path="res://sounds/item-equip-6904.mp3" id="5_5y0ew"]
|
||||
[ext_resource type="AudioStream" uid="uid://ds0yw3au0quae" path="res://sounds/whoosh.mp3" id="6_a6gm0"]
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cnn3tadylge8y"
|
||||
path="res://.godot/imported/horizontaldash.png-3a6880e60346d9b8d19d47557212a382.ctex"
|
||||
path="res://.godot/imported/horizontaldash.png-9fe6fddd3110882a6c56740b08ea51eb.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://items/active_items/horizontal_dash/horizontaldash.png"
|
||||
dest_files=["res://.godot/imported/horizontaldash.png-3a6880e60346d9b8d19d47557212a382.ctex"]
|
||||
source_file="res://items/consumables/horizontal_dash/horizontaldash.png"
|
||||
dest_files=["res://.godot/imported/horizontaldash.png-9fe6fddd3110882a6c56740b08ea51eb.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dxcfkdhl4g24c"
|
||||
path="res://.godot/imported/updash.png-ddc6856a4b101f20557ef85572ee190a.ctex"
|
||||
path="res://.godot/imported/updash.png-6cf7335cc7a138df6d0425e524bb4bb8.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://items/active_items/updash/updash.png"
|
||||
dest_files=["res://.godot/imported/updash.png-ddc6856a4b101f20557ef85572ee190a.ctex"]
|
||||
source_file="res://items/consumables/updash/updash.png"
|
||||
dest_files=["res://.godot/imported/updash.png-6cf7335cc7a138df6d0425e524bb4bb8.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://ewe36lqcjojk"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bbwsc2a2hd0ow" path="res://items/active_items/updash/updash.gd" id="1_ghbl6"]
|
||||
[ext_resource type="Texture2D" uid="uid://dxcfkdhl4g24c" path="res://items/active_items/updash/updash.png" id="3_a5yxq"]
|
||||
[ext_resource type="Script" uid="uid://bbwsc2a2hd0ow" path="res://items/consumables/updash/updash.gd" id="1_ghbl6"]
|
||||
[ext_resource type="Texture2D" uid="uid://dxcfkdhl4g24c" path="res://items/consumables/updash/updash.png" id="3_a5yxq"]
|
||||
[ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="3_ktv3s"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/ItemShine.png" id="3_ssiqx"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/generic/ItemShine.png" id="3_ssiqx"]
|
||||
[ext_resource type="AudioStream" uid="uid://bg1w0fyeyys2p" path="res://sounds/item-equip-6904.mp3" id="5_ssiqx"]
|
||||
[ext_resource type="AudioStream" uid="uid://ds0yw3au0quae" path="res://sounds/whoosh.mp3" id="6_mbe12"]
|
||||
|
||||
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d4mrbgfl7jpqq"
|
||||
path="res://.godot/imported/ItemShine.png-41425a3fac8f6530e2b2e4df0c180258.ctex"
|
||||
path="res://.godot/imported/ItemShine.png-034066fd9fe20ff0370bbee7c72c08ef.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://items/ItemShine.png"
|
||||
dest_files=["res://.godot/imported/ItemShine.png-41425a3fac8f6530e2b2e4df0c180258.ctex"]
|
||||
source_file="res://items/generic/ItemShine.png"
|
||||
dest_files=["res://.godot/imported/ItemShine.png-034066fd9fe20ff0370bbee7c72c08ef.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
|
@ -37,6 +37,7 @@ func activate():
|
|||
assert(false)
|
||||
|
||||
func remove(reset_player_active = true):
|
||||
if player.active_item == self:
|
||||
uses = 0
|
||||
if reset_player_active:
|
||||
player.active_item = null
|
||||
|
|
@ -1,18 +1,18 @@
|
|||
[gd_resource type="Resource" script_class="ItemPool" load_steps=11 format=3 uid="uid://m6yj45qvoecs"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b00185vygcka1" path="res://items/immediate_items/heal_item/heal_item.tscn" id="1_2l6sh"]
|
||||
[ext_resource type="PackedScene" uid="uid://wc7kgtomy6xm" path="res://items/permanent_items/extrajump/extrajump.tscn" id="2_rli0f"]
|
||||
[ext_resource type="PackedScene" uid="uid://gwctb2xqsbj" path="res://items/immediate_items/healthup/healthup.tscn" id="3_g002j"]
|
||||
[ext_resource type="PackedScene" uid="uid://ewe36lqcjojk" path="res://items/active_items/updash/updash.tscn" id="4_vpswe"]
|
||||
[ext_resource type="PackedScene" uid="uid://ddn025xnjngko" path="res://items/active_items/bow/bow.tscn" id="5_jwi73"]
|
||||
[ext_resource type="PackedScene" uid="uid://bbpf28ohayd8n" path="res://items/permanent_items/backslash/backslash.tscn" id="6_73uum"]
|
||||
[ext_resource type="PackedScene" uid="uid://b00185vygcka1" path="res://items/consumables/heal_item/heal_item.tscn" id="1_rli0f"]
|
||||
[ext_resource type="PackedScene" uid="uid://dy17xhg1yrl0o" path="res://items/consumables/horizontal_dash/horizontal_dash.tscn" id="2_g002j"]
|
||||
[ext_resource type="PackedScene" uid="uid://ddn025xnjngko" path="res://items/consumables/bow/bow.tscn" id="3_vpswe"]
|
||||
[ext_resource type="PackedScene" uid="uid://ewe36lqcjojk" path="res://items/consumables/updash/updash.tscn" id="4_jwi73"]
|
||||
[ext_resource type="PackedScene" uid="uid://gwctb2xqsbj" path="res://items/rare_items/healthup/healthup.tscn" id="5_73uum"]
|
||||
[ext_resource type="Script" uid="uid://bgbqefa6h7ckv" path="res://items/generic/item_pool.gd" id="6_rli0f"]
|
||||
[ext_resource type="PackedScene" uid="uid://bpgo1djj8f1rg" path="res://items/permanent_items/high_jump/high_jump.tscn" id="7_k6eth"]
|
||||
[ext_resource type="PackedScene" uid="uid://bwtdls58ajair" path="res://items/permanent_items/upslash/upslash.tscn" id="8_8cxou"]
|
||||
[ext_resource type="PackedScene" uid="uid://dy17xhg1yrl0o" path="res://items/active_items/horizontal_dash/horizontal_dash.tscn" id="9_esvgx"]
|
||||
[ext_resource type="PackedScene" uid="uid://bbpf28ohayd8n" path="res://items/unique_items/backslash/backslash.tscn" id="7_k6eth"]
|
||||
[ext_resource type="PackedScene" uid="uid://bpgo1djj8f1rg" path="res://items/unique_items/high_jump/high_jump.tscn" id="8_8cxou"]
|
||||
[ext_resource type="PackedScene" uid="uid://bwtdls58ajair" path="res://items/unique_items/upslash/upslash.tscn" id="9_esvgx"]
|
||||
[ext_resource type="PackedScene" uid="uid://wc7kgtomy6xm" path="res://items/unique_items/extrajump/extrajump.tscn" id="10_l52h1"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("6_rli0f")
|
||||
common = Array[PackedScene]([ExtResource("1_2l6sh"), ExtResource("1_2l6sh"), ExtResource("1_2l6sh"), ExtResource("9_esvgx"), ExtResource("5_jwi73"), ExtResource("4_vpswe")])
|
||||
rare = Array[PackedScene]([ExtResource("3_g002j"), ExtResource("2_rli0f")])
|
||||
unique = Array[PackedScene]([ExtResource("6_73uum"), ExtResource("7_k6eth"), ExtResource("8_8cxou")])
|
||||
common = Array[PackedScene]([ExtResource("1_rli0f"), ExtResource("1_rli0f"), ExtResource("1_rli0f"), ExtResource("2_g002j"), ExtResource("3_vpswe"), ExtResource("4_jwi73")])
|
||||
rare = Array[PackedScene]([ExtResource("5_73uum")])
|
||||
unique = Array[PackedScene]([ExtResource("7_k6eth"), ExtResource("8_8cxou"), ExtResource("9_esvgx"), ExtResource("10_l52h1"), ExtResource("5_73uum"), ExtResource("5_73uum"), ExtResource("5_73uum")])
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ static var item_pool = ResourceLoader.load("res://items/generic/item_pool.tres",
|
|||
@export var rarity_bonus : float = 0
|
||||
@export var guarantee_rare : bool = false
|
||||
|
||||
@export var unique_base_chance = 0.08
|
||||
@export var rare_base_chance = .16
|
||||
@export var unique_bonus_multiplier = .025
|
||||
@export var rare_bonus_multiplier = .1
|
||||
@export var unique_base_chance = 0.24
|
||||
@export var rare_base_chance = 0
|
||||
@export var unique_bonus_multiplier = .05
|
||||
@export var rare_bonus_multiplier = 0
|
||||
|
||||
var remove_after_spawn = false
|
||||
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 3 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cp4uia4l6j5nt"
|
||||
path="res://.godot/imported/healthup.png-154169bafb62b18f75d6b0b15f585161.ctex"
|
||||
path="res://.godot/imported/healthup.png-2c1ab3085e0e24d17f4f5b1fcfed814f.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://items/immediate_items/healthup/healthup.png"
|
||||
dest_files=["res://.godot/imported/healthup.png-154169bafb62b18f75d6b0b15f585161.ctex"]
|
||||
source_file="res://items/rare_items/healthup/healthup.png"
|
||||
dest_files=["res://.godot/imported/healthup.png-2c1ab3085e0e24d17f4f5b1fcfed814f.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://gwctb2xqsbj"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ce6fxbjarlvtk" path="res://items/immediate_items/healthup/healthup.gd" id="1_ivtxh"]
|
||||
[ext_resource type="Texture2D" uid="uid://cp4uia4l6j5nt" path="res://items/immediate_items/healthup/healthup.png" id="2_gb062"]
|
||||
[ext_resource type="Script" uid="uid://ce6fxbjarlvtk" path="res://items/rare_items/healthup/healthup.gd" id="1_ivtxh"]
|
||||
[ext_resource type="Texture2D" uid="uid://cp4uia4l6j5nt" path="res://items/rare_items/healthup/healthup.png" id="2_gb062"]
|
||||
[ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="2_lolop"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/ItemShine.png" id="3_gb062"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/generic/ItemShine.png" id="3_gb062"]
|
||||
[ext_resource type="AudioStream" uid="uid://b37akn7hmk2r3" path="res://sounds/471834__keshafilm__health-pickup.wav" id="6_uq82b"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_rlcnv"]
|
||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c7mrm8uel7r36"
|
||||
path="res://.godot/imported/backslash.png-627b3c40a1c8a6f83dc2a8bbc2d29adb.ctex"
|
||||
path="res://.godot/imported/backslash.png-d9537e0b7044cf5f7b1de9b329c0275d.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://items/permanent_items/backslash/backslash.png"
|
||||
dest_files=["res://.godot/imported/backslash.png-627b3c40a1c8a6f83dc2a8bbc2d29adb.ctex"]
|
||||
source_file="res://items/unique_items/backslash/backslash.png"
|
||||
dest_files=["res://.godot/imported/backslash.png-d9537e0b7044cf5f7b1de9b329c0275d.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://bbpf28ohayd8n"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://blg876atd71cg" path="res://items/permanent_items/backslash/backslash.gd" id="1_s4bdx"]
|
||||
[ext_resource type="Script" uid="uid://blg876atd71cg" path="res://items/unique_items/backslash/backslash.gd" id="1_s4bdx"]
|
||||
[ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="2_kiuxs"]
|
||||
[ext_resource type="PackedScene" uid="uid://d3e3kuyeh6mr1" path="res://player/sword.tscn" id="2_u6vk4"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/ItemShine.png" id="4_legpc"]
|
||||
[ext_resource type="Texture2D" uid="uid://c7mrm8uel7r36" path="res://items/permanent_items/backslash/backslash.png" id="5_qg660"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/generic/ItemShine.png" id="4_legpc"]
|
||||
[ext_resource type="Texture2D" uid="uid://c7mrm8uel7r36" path="res://items/unique_items/backslash/backslash.png" id="5_qg660"]
|
||||
[ext_resource type="AudioStream" uid="uid://pdd0sy3p4y0d" path="res://sounds/750240__universfield__coin-drop.mp3" id="6_qg660"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_hvhjo"]
|
||||
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dicx1uk4187dq"
|
||||
path="res://.godot/imported/extrajump.png-b4900058bcc784042b34649841ea8810.ctex"
|
||||
path="res://.godot/imported/extrajump.png-05dd8382741d643c60de1808878c2a6e.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://items/permanent_items/extrajump/extrajump.png"
|
||||
dest_files=["res://.godot/imported/extrajump.png-b4900058bcc784042b34649841ea8810.ctex"]
|
||||
source_file="res://items/unique_items/extrajump/extrajump.png"
|
||||
dest_files=["res://.godot/imported/extrajump.png-05dd8382741d643c60de1808878c2a6e.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://wc7kgtomy6xm"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bnr7cpjuvy6xj" path="res://items/permanent_items/extrajump/extrajump.gd" id="1_t7gtn"]
|
||||
[ext_resource type="Script" uid="uid://bnr7cpjuvy6xj" path="res://items/unique_items/extrajump/extrajump.gd" id="1_t7gtn"]
|
||||
[ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="2_70c5v"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/ItemShine.png" id="3_hw3fr"]
|
||||
[ext_resource type="Texture2D" uid="uid://dicx1uk4187dq" path="res://items/permanent_items/extrajump/extrajump.png" id="3_t7gtn"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/generic/ItemShine.png" id="3_hw3fr"]
|
||||
[ext_resource type="Texture2D" uid="uid://dicx1uk4187dq" path="res://items/unique_items/extrajump/extrajump.png" id="3_t7gtn"]
|
||||
[ext_resource type="AudioStream" uid="uid://pdd0sy3p4y0d" path="res://sounds/750240__universfield__coin-drop.mp3" id="5_kn13r"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_hw3fr"]
|
||||
|
|
@ -22,7 +22,7 @@ position = Vector2(1.90735e-06, 0.999999)
|
|||
shape = SubResource("RectangleShape2D_hw3fr")
|
||||
|
||||
[node name="Sprite2D2" type="Sprite2D" parent="."]
|
||||
modulate = Color(0.583047, 0.321422, 0.988413, 1)
|
||||
modulate = Color(0.7254902, 0.52156866, 0, 1)
|
||||
position = Vector2(0, 2)
|
||||
scale = Vector2(1.5, 1.5)
|
||||
texture = ExtResource("3_hw3fr")
|
||||
|
Before Width: | Height: | Size: 868 B After Width: | Height: | Size: 868 B |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c6pyyfgkhytu5"
|
||||
path="res://.godot/imported/high_jump.png-1048e30a3bfeaa9531008ef81208b49f.ctex"
|
||||
path="res://.godot/imported/high_jump.png-1067a48863a7f4045d2fdd5833c9cc16.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://items/permanent_items/high_jump/high_jump.png"
|
||||
dest_files=["res://.godot/imported/high_jump.png-1048e30a3bfeaa9531008ef81208b49f.ctex"]
|
||||
source_file="res://items/unique_items/high_jump/high_jump.png"
|
||||
dest_files=["res://.godot/imported/high_jump.png-1067a48863a7f4045d2fdd5833c9cc16.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://bpgo1djj8f1rg"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cq6h2iven3rly" path="res://items/permanent_items/high_jump/high_jump.gd" id="1_7gixi"]
|
||||
[ext_resource type="Script" uid="uid://cq6h2iven3rly" path="res://items/unique_items/high_jump/high_jump.gd" id="1_7gixi"]
|
||||
[ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="2_s7mjt"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/ItemShine.png" id="3_ui5no"]
|
||||
[ext_resource type="Texture2D" uid="uid://c6pyyfgkhytu5" path="res://items/permanent_items/high_jump/high_jump.png" id="4_7gixi"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/generic/ItemShine.png" id="3_ui5no"]
|
||||
[ext_resource type="Texture2D" uid="uid://c6pyyfgkhytu5" path="res://items/unique_items/high_jump/high_jump.png" id="4_7gixi"]
|
||||
[ext_resource type="AudioStream" uid="uid://pdd0sy3p4y0d" path="res://sounds/750240__universfield__coin-drop.mp3" id="5_s7mjt"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_bya24"]
|
||||
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
|
@ -3,15 +3,15 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bhsmtgdpbxq46"
|
||||
path="res://.godot/imported/upslash.png-284818e0c0e6551e342cba63442fd5f7.ctex"
|
||||
path="res://.godot/imported/upslash.png-80aa495c6e97ba4b13b5c25052544db0.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://items/permanent_items/upslash/upslash.png"
|
||||
dest_files=["res://.godot/imported/upslash.png-284818e0c0e6551e342cba63442fd5f7.ctex"]
|
||||
source_file="res://items/unique_items/upslash/upslash.png"
|
||||
dest_files=["res://.godot/imported/upslash.png-80aa495c6e97ba4b13b5c25052544db0.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://bwtdls58ajair"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cyql6o6m4xrv3" path="res://items/permanent_items/upslash/upslash.gd" id="1_vv4qh"]
|
||||
[ext_resource type="Script" uid="uid://cyql6o6m4xrv3" path="res://items/unique_items/upslash/upslash.gd" id="1_vv4qh"]
|
||||
[ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="3_ayb0v"]
|
||||
[ext_resource type="Texture2D" uid="uid://bhsmtgdpbxq46" path="res://items/permanent_items/upslash/upslash.png" id="4_4ynxq"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/ItemShine.png" id="4_35mg8"]
|
||||
[ext_resource type="Texture2D" uid="uid://bhsmtgdpbxq46" path="res://items/unique_items/upslash/upslash.png" id="4_4ynxq"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4mrbgfl7jpqq" path="res://items/generic/ItemShine.png" id="4_35mg8"]
|
||||
[ext_resource type="AudioStream" uid="uid://pdd0sy3p4y0d" path="res://sounds/750240__universfield__coin-drop.mp3" id="6_5tj4p"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_hvhjo"]
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=16 format=3 uid="uid://cxo6bq26huau7"]
|
||||
[gd_scene load_steps=17 format=3 uid="uid://cxo6bq26huau7"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cmaovvr15b3qk" path="res://player/player.tscn" id="2_1bvp3"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3fpq76anm4t7" path="res://world/Background Prototype/Background prototype.png" id="3_kek77"]
|
||||
|
|
@ -15,6 +15,7 @@
|
|||
[ext_resource type="PackedScene" uid="uid://cqn67nwyrtq3k" path="res://ui/journal/journal.tscn" id="10_w48qg"]
|
||||
[ext_resource type="PackedScene" uid="uid://cpe4s6vsn0ujd" path="res://enemies/boss/boss.tscn" id="11_efxa6"]
|
||||
[ext_resource type="Script" uid="uid://gul4u5tw1vxk" path="res://bg_image.gd" id="13_vivmo"]
|
||||
[ext_resource type="PackedScene" uid="uid://dhxnae8wbhp3u" path="res://vines_petals/bud.tscn" id="16_2cqfq"]
|
||||
|
||||
[node name="main" type="Node2D"]
|
||||
|
||||
|
|
@ -103,6 +104,9 @@ colors = Array[Color]([Color(0, 0.6441987, 0.6693053, 1), Color(0.90588236, 0.15
|
|||
script = ExtResource("10_efxa6")
|
||||
boss = ExtResource("11_efxa6")
|
||||
|
||||
[node name="Bud" parent="." instance=ExtResource("16_2cqfq")]
|
||||
position = Vector2(897, -3027)
|
||||
|
||||
[connection signal="active_item_changed" from="Player" to="UIOverlay/ItemUI" method="_on_player_active_item_changed"]
|
||||
[connection signal="health_changed" from="Player" to="UIOverlay/Healthbar" method="_on_player_health_changed"]
|
||||
[connection signal="max_hp_changed" from="Player" to="UIOverlay/Healthbar" method="_on_player_max_hp_changed"]
|
||||
|
|
|
|||
3
vine.gd
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
extends Node2D
|
||||
|
||||
var vine_nodes : Array[Vector2]
|
||||
1
vine.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://dnxttryo3t3sx
|
||||
6
vines_petals/bud.gd
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class_name Bud extends Node2D
|
||||
|
||||
func _on_opened():
|
||||
$AnimatedSprite2D.play("open")
|
||||
await $AnimatedSprite2D.animation_finished
|
||||
queue_free()
|
||||
1
vines_petals/bud.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://ceqsyf8voslys
|
||||
65
vines_petals/bud.tscn
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
[gd_scene load_steps=11 format=3 uid="uid://dhxnae8wbhp3u"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ceqsyf8voslys" path="res://vines_petals/bud.gd" id="1_543bc"]
|
||||
[ext_resource type="Texture2D" uid="uid://bvn8x53bmkkww" path="res://vines_petals/bud_closed.png" id="1_nxhvy"]
|
||||
[ext_resource type="Texture2D" uid="uid://dafanrd3fctmx" path="res://vines_petals/bud_half_open.png" id="2_t3v0v"]
|
||||
[ext_resource type="Texture2D" uid="uid://d15c1exwtp7sc" path="res://vines_petals/bud_open.png" id="3_543bc"]
|
||||
[ext_resource type="Texture2D" uid="uid://dcd5lpfmn67m" path="res://vines_petals/bud_open_full.png" id="4_tg157"]
|
||||
[ext_resource type="Script" uid="uid://ct8am2xeyymuj" path="res://utils/enemy_hurtbox.gd" id="6_tg157"]
|
||||
[ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="7_tg157"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_rnmbv"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("1_nxhvy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_t3v0v")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_543bc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_tg157")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"open",
|
||||
"speed": 7.5
|
||||
}]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_rnmbv"]
|
||||
radius = 12.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_rupnl"]
|
||||
|
||||
[node name="Bud" type="Node2D"]
|
||||
script = ExtResource("1_543bc")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
scale = Vector2(3, 3)
|
||||
sprite_frames = SubResource("SpriteFrames_rnmbv")
|
||||
animation = &"open"
|
||||
|
||||
[node name="EnemyHurtbox" type="Area2D" parent="."]
|
||||
scale = Vector2(3, 3)
|
||||
collision_layer = 16
|
||||
collision_mask = 0
|
||||
script = ExtResource("6_tg157")
|
||||
max_hp = 1
|
||||
flash_duration = 0.0
|
||||
flashColor = Color(1, 1, 1, 1)
|
||||
metadata/_custom_type_script = "uid://ct8am2xeyymuj"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="EnemyHurtbox"]
|
||||
position = Vector2(0, 3.5)
|
||||
shape = SubResource("CircleShape2D_rnmbv")
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="EnemyHurtbox"]
|
||||
position = Vector2(-0.5, -5)
|
||||
scale = Vector2(0.5, 1)
|
||||
shape = SubResource("CircleShape2D_rupnl")
|
||||
|
||||
[node name="EarthAligner" parent="." instance=ExtResource("7_tg157")]
|
||||
|
||||
[connection signal="died" from="EnemyHurtbox" to="." method="_on_opened"]
|
||||
BIN
vines_petals/bud_closed.pdn
Normal file
BIN
vines_petals/bud_closed.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
40
vines_petals/bud_closed.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bvn8x53bmkkww"
|
||||
path="res://.godot/imported/bud_closed.png-5f29bf0d52946dac84c82b0b648a63ec.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://vines_petals/bud_closed.png"
|
||||
dest_files=["res://.godot/imported/bud_closed.png-5f29bf0d52946dac84c82b0b648a63ec.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
vines_petals/bud_half_open.pdn
Normal file
BIN
vines_petals/bud_half_open.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
40
vines_petals/bud_half_open.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dafanrd3fctmx"
|
||||
path="res://.godot/imported/bud_half_open.png-a6b3a6e56720d62db70ded60347c8f67.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://vines_petals/bud_half_open.png"
|
||||
dest_files=["res://.godot/imported/bud_half_open.png-a6b3a6e56720d62db70ded60347c8f67.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
vines_petals/bud_open.pdn
Normal file
BIN
vines_petals/bud_open.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
40
vines_petals/bud_open.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d15c1exwtp7sc"
|
||||
path="res://.godot/imported/bud_open.png-7112d65aa9de2ae701c4de4b28800546.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://vines_petals/bud_open.png"
|
||||
dest_files=["res://.godot/imported/bud_open.png-7112d65aa9de2ae701c4de4b28800546.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
vines_petals/bud_open_full.pdn
Normal file
BIN
vines_petals/bud_open_full.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
40
vines_petals/bud_open_full.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dcd5lpfmn67m"
|
||||
path="res://.godot/imported/bud_open_full.png-bbb60391b276fa8ad5d5fe92b4b8dfba.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://vines_petals/bud_open_full.png"
|
||||
dest_files=["res://.godot/imported/bud_open_full.png-bbb60391b276fa8ad5d5fe92b4b8dfba.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
vines_petals/vine.pdn
Normal file
6
vines_petals/vine.tscn
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://b7o82cdfwuqd1"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dnxttryo3t3sx" path="res://vine.gd" id="1_3bbo6"]
|
||||
|
||||
[node name="Vine" type="Node2D"]
|
||||
script = ExtResource("1_3bbo6")
|
||||
BIN
vines_petals/vine_active_blue.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
40
vines_petals/vine_active_blue.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c8lw6or3jteqn"
|
||||
path="res://.godot/imported/vine_active_blue.png-87243f52c04f878aeb26495b1b6f9567.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://vines_petals/vine_active_blue.png"
|
||||
dest_files=["res://.godot/imported/vine_active_blue.png-87243f52c04f878aeb26495b1b6f9567.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
vines_petals/vine_active_cyan.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
40
vines_petals/vine_active_cyan.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c64dfr4y3umc3"
|
||||
path="res://.godot/imported/vine_active_cyan.png-c63839c9f6ceecc38ef186dd4af26f1e.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://vines_petals/vine_active_cyan.png"
|
||||
dest_files=["res://.godot/imported/vine_active_cyan.png-c63839c9f6ceecc38ef186dd4af26f1e.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
vines_petals/vine_active_green.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
40
vines_petals/vine_active_green.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ccu5nta4unn0k"
|
||||
path="res://.godot/imported/vine_active_green.png-4e6bbb87e7ee83304a3302b8a43f7440.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://vines_petals/vine_active_green.png"
|
||||
dest_files=["res://.godot/imported/vine_active_green.png-4e6bbb87e7ee83304a3302b8a43f7440.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
vines_petals/vine_active_purple.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
40
vines_petals/vine_active_purple.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://csu4u3ubbm7iu"
|
||||
path="res://.godot/imported/vine_active_purple.png-bf98a4fafd3d4ed84467af2fe31f9f55.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://vines_petals/vine_active_purple.png"
|
||||
dest_files=["res://.godot/imported/vine_active_purple.png-bf98a4fafd3d4ed84467af2fe31f9f55.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
vines_petals/vine_active_red.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
40
vines_petals/vine_active_red.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ckg53r1c1iu1"
|
||||
path="res://.godot/imported/vine_active_red.png-0b26e423cd94f9ee6333d4d7e15441a7.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://vines_petals/vine_active_red.png"
|
||||
dest_files=["res://.godot/imported/vine_active_red.png-0b26e423cd94f9ee6333d4d7e15441a7.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
vines_petals/vine_cross.pdn
Normal file
BIN
vines_petals/vine_inactive.png
Normal file
|
After Width: | Height: | Size: 982 B |
40
vines_petals/vine_inactive.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bec44g83brq0t"
|
||||
path="res://.godot/imported/vine_inactive.png-81aa5dea26b4c41dddf3d9ffb18374d0.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://vines_petals/vine_inactive.png"
|
||||
dest_files=["res://.godot/imported/vine_inactive.png-81aa5dea26b4c41dddf3d9ffb18374d0.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
|
||||
9
vines_petals/vine_node.gd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class_name VineNode extends Node2D
|
||||
@onready var grid : Grid = %Grid
|
||||
var grid_position : Vector2
|
||||
var angular_offset : float
|
||||
var height_offset : float
|
||||
var bud : Bud
|
||||
|
||||
func _ready() -> void:
|
||||
position = grid.
|
||||
1
vines_petals/vine_node.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://dmd5rpdq3ij1k
|
||||
|
|
@ -40,6 +40,11 @@ func add_building_to_collumn(building : Building, collumn : int):
|
|||
add_child(building)
|
||||
return true
|
||||
|
||||
func get_world_position (location: Vector2, offset: Vector2 = Vector2.ZERO) -> Vector2:
|
||||
var height = ground_radius + location.y * cell_height - offset.y # currently assumes anchor is bottom left
|
||||
var angle = (location.x + offset.x / cell_height) * TAU / num_collumns
|
||||
return height * Vector2.from_angle(angle)
|
||||
|
||||
# for testing
|
||||
#func _ready() -> void:
|
||||
#
|
||||
|
|
|
|||