Compare commits
8 Commits
6a1a663020
...
plant-buil
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
981965d8c7 | ||
|
|
d28e734806 | ||
|
|
4ca102966b | ||
|
|
35004684f4 | ||
| fb8a2da4ff | |||
| dc1a6686bc | |||
|
|
fadf0cb769 | ||
|
|
f1acb6e3e9 |
@@ -3,20 +3,21 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cl03vrbj5wsjk"
|
||||
path="res://.godot/imported/expand-icon.svg-26099b197ab0f314e2253848fcc22962.ctex"
|
||||
path.s3tc="res://.godot/imported/expand-icon.svg-26099b197ab0f314e2253848fcc22962.s3tc.ctex"
|
||||
metadata={
|
||||
"has_editor_variant": true,
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/dialogic/Editor/Images/Pieces/expand-icon.svg"
|
||||
dest_files=["res://.godot/imported/expand-icon.svg-26099b197ab0f314e2253848fcc22962.ctex"]
|
||||
dest_files=["res://.godot/imported/expand-icon.svg-26099b197ab0f314e2253848fcc22962.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
@@ -24,7 +25,7 @@ compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
@@ -38,7 +39,7 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=true
|
||||
editor/convert_colors_with_editor_theme=true
|
||||
|
||||
@@ -3,20 +3,21 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://qx5bntelnslj"
|
||||
path="res://.godot/imported/update_portrait.svg-b90fa6163d3720d34df8578ce2aa35e1.ctex"
|
||||
path.s3tc="res://.godot/imported/update_portrait.svg-b90fa6163d3720d34df8578ce2aa35e1.s3tc.ctex"
|
||||
metadata={
|
||||
"has_editor_variant": true,
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/dialogic/Modules/Character/update_portrait.svg"
|
||||
dest_files=["res://.godot/imported/update_portrait.svg-b90fa6163d3720d34df8578ce2aa35e1.ctex"]
|
||||
dest_files=["res://.godot/imported/update_portrait.svg-b90fa6163d3720d34df8578ce2aa35e1.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
@@ -24,7 +25,7 @@ compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
@@ -38,7 +39,7 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=true
|
||||
editor/convert_colors_with_editor_theme=true
|
||||
|
||||
@@ -24,18 +24,18 @@ var portrait := ""
|
||||
|
||||
## Used to set the character resource from the unique name identifier and vice versa
|
||||
var character_identifier: String:
|
||||
get:
|
||||
if character and not "{" in character_identifier:
|
||||
var identifier := character.get_identifier()
|
||||
if not identifier.is_empty():
|
||||
return identifier
|
||||
return character_identifier
|
||||
set(value):
|
||||
character_identifier = value
|
||||
character = DialogicResourceUtil.get_character_resource(value)
|
||||
if Engine.is_editor_hint() and ((not character) or (character and not character.portraits.has(portrait))):
|
||||
portrait = ""
|
||||
ui_update_needed.emit()
|
||||
get:
|
||||
if character and not "{" in character_identifier:
|
||||
var identifier := character.get_identifier()
|
||||
if not identifier.is_empty():
|
||||
return identifier
|
||||
return character_identifier
|
||||
set(value):
|
||||
character_identifier = value
|
||||
character = DialogicResourceUtil.get_character_resource(value)
|
||||
if Engine.is_editor_hint() and ((not character) or (character and not character.portraits.has(portrait))):
|
||||
portrait = ""
|
||||
ui_update_needed.emit()
|
||||
|
||||
var regex := RegEx.create_from_string(r'\s*((")?(?<name>(?(2)[^"\n]*|[^(: \n]*))(?(2)"|)(\W*(?<portrait>\(.*\)))?\s*(?<!\\):)?(?<text>(.|\n)*)')
|
||||
var split_regex := RegEx.create_from_string(r"((\[n\]|\[n\+\])?((?!(\[n\]|\[n\+\]))(.|\n))+)")
|
||||
@@ -49,225 +49,225 @@ signal advance
|
||||
################################################################################
|
||||
|
||||
func _clear_state() -> void:
|
||||
dialogic.current_state_info.erase('text_sub_idx')
|
||||
_disconnect_signals()
|
||||
dialogic.current_state_info.erase('text_sub_idx')
|
||||
_disconnect_signals()
|
||||
|
||||
|
||||
func _execute() -> void:
|
||||
if text.is_empty():
|
||||
finish()
|
||||
return
|
||||
if text.is_empty():
|
||||
finish()
|
||||
return
|
||||
|
||||
## If the speaker is provided as an expression, parse it now.
|
||||
if "{" in character_identifier:
|
||||
character = null
|
||||
var character_name: String = dialogic.Expressions.execute_string(character_identifier)
|
||||
get_or_create_character(character_name)
|
||||
## If the speaker is provided as an expression, parse it now.
|
||||
if "{" in character_identifier:
|
||||
character = null
|
||||
var character_name: String = dialogic.Expressions.execute_string(character_identifier)
|
||||
get_or_create_character(character_name)
|
||||
|
||||
## Change Portrait and Active Speaker
|
||||
if dialogic.has_subsystem("Portraits"):
|
||||
if character:
|
||||
## Change Portrait and Active Speaker
|
||||
if dialogic.has_subsystem("Portraits"):
|
||||
if character:
|
||||
|
||||
dialogic.Portraits.change_speaker(character, portrait)
|
||||
dialogic.Portraits.change_speaker(character, portrait)
|
||||
|
||||
if portrait and dialogic.Portraits.is_character_joined(character):
|
||||
dialogic.Portraits.change_character_portrait(character, portrait)
|
||||
if portrait and dialogic.Portraits.is_character_joined(character):
|
||||
dialogic.Portraits.change_character_portrait(character, portrait)
|
||||
|
||||
else:
|
||||
dialogic.Portraits.change_speaker(null)
|
||||
else:
|
||||
dialogic.Portraits.change_speaker(null)
|
||||
|
||||
## Change and Type Sound Mood
|
||||
if character:
|
||||
dialogic.Text.update_name_label(character)
|
||||
## Change and Type Sound Mood
|
||||
if character:
|
||||
dialogic.Text.update_name_label(character)
|
||||
|
||||
var current_portrait: String = portrait
|
||||
if portrait.is_empty():
|
||||
current_portrait = dialogic.current_state_info["portraits"].get(character.get_identifier(), {}).get("portrait", "")
|
||||
var current_portrait: String = portrait
|
||||
if portrait.is_empty():
|
||||
current_portrait = dialogic.current_state_info["portraits"].get(character.get_identifier(), {}).get("portrait", "")
|
||||
|
||||
var current_portrait_sound_mood: String = character.portraits.get(current_portrait, {}).get("sound_mood", "")
|
||||
dialogic.Text.update_typing_sound_mood_from_character(character, current_portrait_sound_mood)
|
||||
var current_portrait_sound_mood: String = character.portraits.get(current_portrait, {}).get("sound_mood", "")
|
||||
dialogic.Text.update_typing_sound_mood_from_character(character, current_portrait_sound_mood)
|
||||
|
||||
else:
|
||||
dialogic.Text.update_name_label(null)
|
||||
dialogic.Text.update_typing_sound_mood()
|
||||
else:
|
||||
dialogic.Text.update_name_label(null)
|
||||
dialogic.Text.update_typing_sound_mood()
|
||||
|
||||
|
||||
## Handle style changes
|
||||
if dialogic.has_subsystem("Styles"):
|
||||
var current_base_style: String = dialogic.current_state_info.get("base_style")
|
||||
var current_style: String = dialogic.current_state_info.get("style", "")
|
||||
var character_style: String = "" if not character else character.custom_info.get("style", "")
|
||||
## Handle style changes
|
||||
if dialogic.has_subsystem("Styles"):
|
||||
var current_base_style: String = dialogic.current_state_info.get("base_style")
|
||||
var current_style: String = dialogic.current_state_info.get("style", "")
|
||||
var character_style: String = "" if not character else character.custom_info.get("style", "")
|
||||
|
||||
## Change back to base style, if another characters style is currently used
|
||||
if (not character or character_style.is_empty()) and (current_base_style != current_style):
|
||||
dialogic.Styles.change_style(dialogic.current_state_info.get("base_style", "Default"))
|
||||
await dialogic.get_tree().process_frame
|
||||
## Change back to base style, if another characters style is currently used
|
||||
if (not character or character_style.is_empty()) and (current_base_style != current_style):
|
||||
dialogic.Styles.change_style(dialogic.current_state_info.get("base_style", "Default"))
|
||||
await dialogic.get_tree().process_frame
|
||||
|
||||
## Change to the characters style if this character has one
|
||||
elif character and not character_style.is_empty():
|
||||
dialogic.Styles.change_style(character_style, false)
|
||||
await dialogic.get_tree().process_frame
|
||||
## Change to the characters style if this character has one
|
||||
elif character and not character_style.is_empty():
|
||||
dialogic.Styles.change_style(character_style, false)
|
||||
await dialogic.get_tree().process_frame
|
||||
|
||||
_connect_signals()
|
||||
_connect_signals()
|
||||
|
||||
var character_name_text := dialogic.Text.get_character_name_parsed(character)
|
||||
var final_text: String = get_property_translated('text')
|
||||
if ProjectSettings.get_setting('dialogic/text/split_at_new_lines', false):
|
||||
match ProjectSettings.get_setting('dialogic/text/split_at_new_lines_as', 0):
|
||||
0:
|
||||
final_text = final_text.replace('\n', '[n]')
|
||||
1:
|
||||
final_text = final_text.replace('\n', '[n+][br]')
|
||||
var character_name_text := dialogic.Text.get_character_name_parsed(character)
|
||||
var final_text: String = get_property_translated('text')
|
||||
if ProjectSettings.get_setting('dialogic/text/split_at_new_lines', false):
|
||||
match ProjectSettings.get_setting('dialogic/text/split_at_new_lines_as', 0):
|
||||
0:
|
||||
final_text = final_text.replace('\n', '[n]')
|
||||
1:
|
||||
final_text = final_text.replace('\n', '[n+][br]')
|
||||
|
||||
var split_text := []
|
||||
for i in split_regex.search_all(final_text):
|
||||
split_text.append([i.get_string().trim_prefix('[n]').trim_prefix('[n+]')])
|
||||
split_text[-1].append(i.get_string().begins_with('[n+]'))
|
||||
var split_text := []
|
||||
for i in split_regex.search_all(final_text):
|
||||
split_text.append([i.get_string().trim_prefix('[n]').trim_prefix('[n+]')])
|
||||
split_text[-1].append(i.get_string().begins_with('[n+]'))
|
||||
|
||||
dialogic.current_state_info['text_sub_idx'] = dialogic.current_state_info.get('text_sub_idx', -1)
|
||||
dialogic.current_state_info['text_sub_idx'] = dialogic.current_state_info.get('text_sub_idx', -1)
|
||||
|
||||
var reveal_next_segment: bool = dialogic.current_state_info['text_sub_idx'] == -1
|
||||
var reveal_next_segment: bool = dialogic.current_state_info['text_sub_idx'] == -1
|
||||
|
||||
for section_idx in range(min(max(0, dialogic.current_state_info['text_sub_idx']), len(split_text)-1), len(split_text)):
|
||||
dialogic.Inputs.block_input(ProjectSettings.get_setting('dialogic/text/text_reveal_skip_delay', 0.1))
|
||||
for section_idx in range(min(max(0, dialogic.current_state_info['text_sub_idx']), len(split_text)-1), len(split_text)):
|
||||
dialogic.Inputs.block_input(ProjectSettings.get_setting('dialogic/text/text_reveal_skip_delay', 0.1))
|
||||
|
||||
if reveal_next_segment:
|
||||
dialogic.Text.hide_next_indicators()
|
||||
if reveal_next_segment:
|
||||
dialogic.Text.hide_next_indicators()
|
||||
|
||||
dialogic.current_state_info['text_sub_idx'] = section_idx
|
||||
dialogic.current_state_info['text_sub_idx'] = section_idx
|
||||
|
||||
var segment: String = dialogic.Text.parse_text(split_text[section_idx][0], 0)
|
||||
var is_append: bool = split_text[section_idx][1]
|
||||
var segment: String = dialogic.Text.parse_text(split_text[section_idx][0], 0)
|
||||
var is_append: bool = split_text[section_idx][1]
|
||||
|
||||
final_text = ProjectSettings.get_setting("dialogic/text/dialog_text_prefix", "")+segment
|
||||
dialogic.Text.about_to_show_text.emit({'text':final_text, 'character':character, 'portrait':portrait, 'append': is_append})
|
||||
final_text = ProjectSettings.get_setting("dialogic/text/dialog_text_prefix", "")+segment
|
||||
dialogic.Text.about_to_show_text.emit({'text':final_text, 'character':character, 'portrait':portrait, 'append': is_append})
|
||||
|
||||
await dialogic.Text.update_textbox(final_text, false)
|
||||
await dialogic.Text.update_textbox(final_text, false)
|
||||
|
||||
state = States.REVEALING
|
||||
_try_play_current_line_voice()
|
||||
final_text = dialogic.Text.update_dialog_text(final_text, false, is_append)
|
||||
state = States.REVEALING
|
||||
_try_play_current_line_voice()
|
||||
final_text = dialogic.Text.update_dialog_text(final_text, false, is_append)
|
||||
|
||||
dialogic.Text.text_started.emit({'text':final_text, 'character':character, 'portrait':portrait, 'append': is_append})
|
||||
dialogic.Text.text_started.emit({'text':final_text, 'character':character, 'portrait':portrait, 'append': is_append})
|
||||
|
||||
_mark_as_read(character_name_text, final_text)
|
||||
_mark_as_read(character_name_text, final_text)
|
||||
|
||||
# We must skip text animation before we potentially return when there
|
||||
# is a Choice event.
|
||||
if dialogic.Inputs.auto_skip.enabled:
|
||||
dialogic.Text.skip_text_reveal()
|
||||
else:
|
||||
await dialogic.Text.text_finished
|
||||
# We must skip text animation before we potentially return when there
|
||||
# is a Choice event.
|
||||
if dialogic.Inputs.auto_skip.enabled:
|
||||
dialogic.Text.skip_text_reveal()
|
||||
else:
|
||||
await dialogic.Text.text_finished
|
||||
|
||||
state = States.IDLE
|
||||
else:
|
||||
reveal_next_segment = true
|
||||
state = States.IDLE
|
||||
else:
|
||||
reveal_next_segment = true
|
||||
|
||||
# Handling potential Choice Events.
|
||||
if section_idx == len(split_text)-1 and dialogic.has_subsystem('Choices') and dialogic.Choices.is_question(dialogic.current_event_idx):
|
||||
dialogic.Text.show_next_indicators(true)
|
||||
# Handling potential Choice Events.
|
||||
if section_idx == len(split_text)-1 and dialogic.has_subsystem('Choices') and dialogic.Choices.is_question(dialogic.current_event_idx):
|
||||
dialogic.Text.show_next_indicators(true)
|
||||
|
||||
finish()
|
||||
return
|
||||
finish()
|
||||
return
|
||||
|
||||
elif dialogic.Inputs.auto_advance.is_enabled():
|
||||
dialogic.Text.show_next_indicators(false, true)
|
||||
dialogic.Inputs.auto_advance.start()
|
||||
else:
|
||||
dialogic.Text.show_next_indicators()
|
||||
elif dialogic.Inputs.auto_advance.is_enabled():
|
||||
dialogic.Text.show_next_indicators(false, true)
|
||||
dialogic.Inputs.auto_advance.start()
|
||||
else:
|
||||
dialogic.Text.show_next_indicators()
|
||||
|
||||
if section_idx == len(split_text)-1:
|
||||
state = States.DONE
|
||||
if section_idx == len(split_text)-1:
|
||||
state = States.DONE
|
||||
|
||||
# If Auto-Skip is enabled and there are multiple parts of this text
|
||||
# we need to skip the text after the defined time per event.
|
||||
if dialogic.Inputs.auto_skip.enabled:
|
||||
await dialogic.Inputs.start_autoskip_timer()
|
||||
# If Auto-Skip is enabled and there are multiple parts of this text
|
||||
# we need to skip the text after the defined time per event.
|
||||
if dialogic.Inputs.auto_skip.enabled:
|
||||
await dialogic.Inputs.start_autoskip_timer()
|
||||
|
||||
# Check if Auto-Skip is still enabled.
|
||||
if not dialogic.Inputs.auto_skip.enabled:
|
||||
await advance
|
||||
# Check if Auto-Skip is still enabled.
|
||||
if not dialogic.Inputs.auto_skip.enabled:
|
||||
await advance
|
||||
|
||||
else:
|
||||
await advance
|
||||
else:
|
||||
await advance
|
||||
|
||||
|
||||
finish()
|
||||
finish()
|
||||
|
||||
|
||||
func _mark_as_read(character_name_text: String, final_text: String) -> void:
|
||||
if dialogic.has_subsystem('History'):
|
||||
if character:
|
||||
dialogic.History.store_simple_history_entry(final_text, event_name, {'character':character_name_text, 'character_color':character.color})
|
||||
else:
|
||||
dialogic.History.store_simple_history_entry(final_text, event_name)
|
||||
dialogic.History.mark_event_as_visited()
|
||||
if dialogic.has_subsystem('History'):
|
||||
if character:
|
||||
dialogic.History.store_simple_history_entry(final_text, event_name, {'character':character_name_text, 'character_color':character.color})
|
||||
else:
|
||||
dialogic.History.store_simple_history_entry(final_text, event_name)
|
||||
dialogic.History.mark_event_as_visited()
|
||||
|
||||
|
||||
func _connect_signals() -> void:
|
||||
if not dialogic.Inputs.dialogic_action.is_connected(_on_dialogic_input_action):
|
||||
dialogic.Inputs.dialogic_action.connect(_on_dialogic_input_action)
|
||||
if not dialogic.Inputs.dialogic_action.is_connected(_on_dialogic_input_action):
|
||||
dialogic.Inputs.dialogic_action.connect(_on_dialogic_input_action)
|
||||
|
||||
dialogic.Inputs.auto_skip.toggled.connect(_on_auto_skip_enable)
|
||||
dialogic.Inputs.auto_skip.toggled.connect(_on_auto_skip_enable)
|
||||
|
||||
if not dialogic.Inputs.auto_advance.autoadvance.is_connected(_on_dialogic_input_autoadvance):
|
||||
dialogic.Inputs.auto_advance.autoadvance.connect(_on_dialogic_input_autoadvance)
|
||||
if not dialogic.Inputs.auto_advance.autoadvance.is_connected(_on_dialogic_input_autoadvance):
|
||||
dialogic.Inputs.auto_advance.autoadvance.connect(_on_dialogic_input_autoadvance)
|
||||
|
||||
|
||||
## If the event is done, this method can clean-up signal connections.
|
||||
func _disconnect_signals() -> void:
|
||||
if dialogic.Inputs.dialogic_action.is_connected(_on_dialogic_input_action):
|
||||
dialogic.Inputs.dialogic_action.disconnect(_on_dialogic_input_action)
|
||||
if dialogic.Inputs.auto_advance.autoadvance.is_connected(_on_dialogic_input_autoadvance):
|
||||
dialogic.Inputs.auto_advance.autoadvance.disconnect(_on_dialogic_input_autoadvance)
|
||||
if dialogic.Inputs.auto_skip.toggled.is_connected(_on_auto_skip_enable):
|
||||
dialogic.Inputs.auto_skip.toggled.disconnect(_on_auto_skip_enable)
|
||||
if dialogic.Inputs.dialogic_action.is_connected(_on_dialogic_input_action):
|
||||
dialogic.Inputs.dialogic_action.disconnect(_on_dialogic_input_action)
|
||||
if dialogic.Inputs.auto_advance.autoadvance.is_connected(_on_dialogic_input_autoadvance):
|
||||
dialogic.Inputs.auto_advance.autoadvance.disconnect(_on_dialogic_input_autoadvance)
|
||||
if dialogic.Inputs.auto_skip.toggled.is_connected(_on_auto_skip_enable):
|
||||
dialogic.Inputs.auto_skip.toggled.disconnect(_on_auto_skip_enable)
|
||||
|
||||
|
||||
## Tries to play the voice clip for the current line.
|
||||
func _try_play_current_line_voice() -> void:
|
||||
# If Auto-Skip is enabled and we skip voice clips, we don't want to play.
|
||||
if (dialogic.Inputs.auto_skip.enabled
|
||||
and dialogic.Inputs.auto_skip.skip_voice):
|
||||
return
|
||||
# If Auto-Skip is enabled and we skip voice clips, we don't want to play.
|
||||
if (dialogic.Inputs.auto_skip.enabled
|
||||
and dialogic.Inputs.auto_skip.skip_voice):
|
||||
return
|
||||
|
||||
# Plays the audio region for the current line.
|
||||
if (dialogic.has_subsystem('Voice')
|
||||
and dialogic.Voice.is_voiced(dialogic.current_event_idx)):
|
||||
dialogic.Voice.play_voice()
|
||||
# Plays the audio region for the current line.
|
||||
if (dialogic.has_subsystem('Voice')
|
||||
and dialogic.Voice.is_voiced(dialogic.current_event_idx)):
|
||||
dialogic.Voice.play_voice()
|
||||
|
||||
|
||||
func _on_dialogic_input_action() -> void:
|
||||
match state:
|
||||
States.REVEALING:
|
||||
if dialogic.Text.is_text_reveal_skippable():
|
||||
dialogic.Text.skip_text_reveal()
|
||||
dialogic.Inputs.stop_timers()
|
||||
_:
|
||||
if dialogic.Inputs.manual_advance.is_enabled():
|
||||
advance.emit()
|
||||
dialogic.Inputs.stop_timers()
|
||||
match state:
|
||||
States.REVEALING:
|
||||
if dialogic.Text.is_text_reveal_skippable():
|
||||
dialogic.Text.skip_text_reveal()
|
||||
dialogic.Inputs.stop_timers()
|
||||
_:
|
||||
if dialogic.Inputs.manual_advance.is_enabled():
|
||||
advance.emit()
|
||||
dialogic.Inputs.stop_timers()
|
||||
|
||||
|
||||
func _on_dialogic_input_autoadvance() -> void:
|
||||
if state == States.IDLE or state == States.DONE:
|
||||
advance.emit()
|
||||
if state == States.IDLE or state == States.DONE:
|
||||
advance.emit()
|
||||
|
||||
|
||||
func _on_auto_skip_enable(enabled: bool) -> void:
|
||||
if not enabled:
|
||||
return
|
||||
if not enabled:
|
||||
return
|
||||
|
||||
match state:
|
||||
States.DONE:
|
||||
await dialogic.Inputs.start_autoskip_timer()
|
||||
match state:
|
||||
States.DONE:
|
||||
await dialogic.Inputs.start_autoskip_timer()
|
||||
|
||||
# If Auto-Skip is still enabled, advance the text.
|
||||
if dialogic.Inputs.auto_skip.enabled:
|
||||
advance.emit()
|
||||
# If Auto-Skip is still enabled, advance the text.
|
||||
if dialogic.Inputs.auto_skip.enabled:
|
||||
advance.emit()
|
||||
|
||||
States.REVEALING:
|
||||
dialogic.Text.skip_text_reveal()
|
||||
States.REVEALING:
|
||||
dialogic.Text.skip_text_reveal()
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -276,12 +276,12 @@ func _on_auto_skip_enable(enabled: bool) -> void:
|
||||
################################################################################
|
||||
|
||||
func _init() -> void:
|
||||
event_name = "Text"
|
||||
set_default_color('Color1')
|
||||
event_category = "Main"
|
||||
event_sorting_index = 0
|
||||
expand_by_default = true
|
||||
help_page_path = "https://docs.dialogic.pro/writing-texts.html"
|
||||
event_name = "Text"
|
||||
set_default_color('Color1')
|
||||
event_category = "Main"
|
||||
event_sorting_index = 0
|
||||
expand_by_default = true
|
||||
help_page_path = "https://docs.dialogic.pro/writing-texts.html"
|
||||
|
||||
|
||||
|
||||
@@ -289,92 +289,92 @@ func _init() -> void:
|
||||
################################################################################
|
||||
|
||||
func to_text() -> String:
|
||||
var result := text.replace('\n', '\\\n').strip_edges(false).trim_suffix("\\")
|
||||
result = result.replace(':', '\\:')
|
||||
if result.is_empty():
|
||||
result = "<Empty Text Event>"
|
||||
var result := text.replace('\n', '\\\n').strip_edges(false).trim_suffix("\\")
|
||||
result = result.replace(':', '\\:')
|
||||
if result.is_empty():
|
||||
result = "<Empty Text Event>"
|
||||
|
||||
if character or character_identifier:
|
||||
var name := character_identifier
|
||||
if character:
|
||||
name = character.get_identifier()
|
||||
if name.count(" ") > 0:
|
||||
name = '"' + name + '"'
|
||||
if not portrait.is_empty():
|
||||
result = name+" ("+portrait+"): "+result
|
||||
else:
|
||||
result = name+": "+result
|
||||
for event in DialogicResourceUtil.get_event_cache():
|
||||
if not event is DialogicTextEvent and event.is_valid_event(result):
|
||||
result = '\\'+result
|
||||
break
|
||||
if character or character_identifier:
|
||||
var name := character_identifier
|
||||
if character:
|
||||
name = character.get_identifier()
|
||||
if name.count(" ") > 0:
|
||||
name = '"' + name + '"'
|
||||
if not portrait.is_empty():
|
||||
result = name+" ("+portrait+"): "+result
|
||||
else:
|
||||
result = name+": "+result
|
||||
for event in DialogicResourceUtil.get_event_cache():
|
||||
if not event is DialogicTextEvent and event.is_valid_event(result):
|
||||
result = '\\'+result
|
||||
break
|
||||
|
||||
return result
|
||||
return result
|
||||
|
||||
|
||||
func from_text(string:String) -> void:
|
||||
# Load default character
|
||||
# This is only of relevance if the default has been overriden (usually not)
|
||||
character = DialogicResourceUtil.get_character_resource(character_identifier)
|
||||
# Load default character
|
||||
# This is only of relevance if the default has been overriden (usually not)
|
||||
character = DialogicResourceUtil.get_character_resource(character_identifier)
|
||||
|
||||
var result := regex.search(string.trim_prefix('\\'))
|
||||
var result := regex.search(string.trim_prefix('\\'))
|
||||
|
||||
if result.get_string('portrait'):
|
||||
portrait = result.get_string('portrait').strip_edges().trim_prefix('(').trim_suffix(')')
|
||||
if result.get_string('portrait'):
|
||||
portrait = result.get_string('portrait').strip_edges().trim_prefix('(').trim_suffix(')')
|
||||
|
||||
if result and not result.get_string('name').is_empty():
|
||||
var name := result.get_string('name').strip_edges()
|
||||
if result and not result.get_string('name').is_empty():
|
||||
var name := result.get_string('name').strip_edges()
|
||||
|
||||
if name == '_':
|
||||
character = null
|
||||
elif "{" in name:
|
||||
## If it's an expression, we load the character in _execute.
|
||||
character_identifier = name
|
||||
character = null
|
||||
else:
|
||||
get_or_create_character(name)
|
||||
if name == '_':
|
||||
character = null
|
||||
elif "{" in name:
|
||||
## If it's an expression, we load the character in _execute.
|
||||
character_identifier = name
|
||||
character = null
|
||||
else:
|
||||
get_or_create_character(name)
|
||||
|
||||
if not result:
|
||||
return
|
||||
if not result:
|
||||
return
|
||||
|
||||
text = result.get_string('text').replace("\\\n", "\n").replace('\\:', ':').strip_edges().trim_prefix('\\')
|
||||
if text == '<Empty Text Event>':
|
||||
text = ""
|
||||
text = result.get_string('text').replace("\\\n", "\n").replace('\\:', ':').strip_edges().trim_prefix('\\')
|
||||
if text == '<Empty Text Event>':
|
||||
text = ""
|
||||
|
||||
|
||||
func get_or_create_character(name:String) -> void:
|
||||
character = DialogicResourceUtil.get_character_resource(name)
|
||||
character = DialogicResourceUtil.get_character_resource(name)
|
||||
|
||||
if character == null:
|
||||
if Engine.is_editor_hint() == false:
|
||||
character = DialogicCharacter.new()
|
||||
character.display_name = name
|
||||
character.set_identifier(name)
|
||||
if portrait:
|
||||
if "{" in portrait:
|
||||
character.color = Color(dialogic.Expressions.execute_string(portrait))
|
||||
else:
|
||||
character.color = Color(portrait)
|
||||
else:
|
||||
character_identifier = name
|
||||
if character == null:
|
||||
if Engine.is_editor_hint() == false:
|
||||
character = DialogicCharacter.new()
|
||||
character.display_name = name
|
||||
character.set_identifier(name)
|
||||
if portrait:
|
||||
if "{" in portrait:
|
||||
character.color = Color(dialogic.Expressions.execute_string(portrait))
|
||||
else:
|
||||
character.color = Color(portrait)
|
||||
else:
|
||||
character_identifier = name
|
||||
|
||||
|
||||
func is_valid_event(_string:String) -> bool:
|
||||
return true
|
||||
return true
|
||||
|
||||
|
||||
func is_string_full_event(string:String) -> bool:
|
||||
return !string.ends_with('\\')
|
||||
return !string.ends_with('\\')
|
||||
|
||||
|
||||
# this is only here to provide a list of default values
|
||||
# this way the module manager can add custom default overrides to this event.
|
||||
func get_shortcode_parameters() -> Dictionary:
|
||||
return {
|
||||
#param_name : property_info
|
||||
"character" : {"property": "character_identifier", "default": "", "ext_file":true},
|
||||
"portrait" : {"property": "portrait", "default": ""},
|
||||
}
|
||||
return {
|
||||
#param_name : property_info
|
||||
"character" : {"property": "character_identifier", "default": "", "ext_file":true},
|
||||
"portrait" : {"property": "portrait", "default": ""},
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -382,14 +382,14 @@ func get_shortcode_parameters() -> Dictionary:
|
||||
################################################################################
|
||||
|
||||
func _get_translatable_properties() -> Array:
|
||||
return ['text']
|
||||
return ['text']
|
||||
|
||||
|
||||
func _get_property_original_translation(property:String) -> String:
|
||||
match property:
|
||||
'text':
|
||||
return text
|
||||
return ''
|
||||
match property:
|
||||
'text':
|
||||
return text
|
||||
return ''
|
||||
|
||||
|
||||
#endregion
|
||||
@@ -399,44 +399,44 @@ func _get_property_original_translation(property:String) -> String:
|
||||
################################################################################
|
||||
|
||||
func _enter_visual_editor(editor:DialogicEditor):
|
||||
editor.opened.connect(func(): ui_update_needed.emit())
|
||||
editor.opened.connect(func(): ui_update_needed.emit())
|
||||
|
||||
|
||||
func build_event_editor() -> void:
|
||||
add_header_edit('character_identifier', ValueType.DYNAMIC_OPTIONS,
|
||||
{'file_extension' : '.dch',
|
||||
'mode' : 2,
|
||||
'suggestions_func' : get_character_suggestions,
|
||||
'placeholder' : '(No one)',
|
||||
'icon' : load("res://addons/dialogic/Editor/Images/Resources/character.svg")}, 'do_any_characters_exist()')
|
||||
add_header_edit('portrait', ValueType.DYNAMIC_OPTIONS,
|
||||
{'suggestions_func' : get_portrait_suggestions,
|
||||
'placeholder' : "(Don't change)",
|
||||
'icon' : load("res://addons/dialogic/Editor/Images/Resources/portrait.svg"),
|
||||
'collapse_when_empty': true,},
|
||||
'should_show_portrait_selector()')
|
||||
add_body_edit('text', ValueType.MULTILINE_TEXT, {'autofocus':true})
|
||||
add_header_edit('character_identifier', ValueType.DYNAMIC_OPTIONS,
|
||||
{'file_extension' : '.dch',
|
||||
'mode' : 2,
|
||||
'suggestions_func' : get_character_suggestions,
|
||||
'placeholder' : '(No one)',
|
||||
'icon' : load("res://addons/dialogic/Editor/Images/Resources/character.svg")}, 'do_any_characters_exist()')
|
||||
add_header_edit('portrait', ValueType.DYNAMIC_OPTIONS,
|
||||
{'suggestions_func' : get_portrait_suggestions,
|
||||
'placeholder' : "(Don't change)",
|
||||
'icon' : load("res://addons/dialogic/Editor/Images/Resources/portrait.svg"),
|
||||
'collapse_when_empty': true,},
|
||||
'should_show_portrait_selector()')
|
||||
add_body_edit('text', ValueType.MULTILINE_TEXT, {'autofocus':true})
|
||||
|
||||
|
||||
func should_show_portrait_selector() -> bool:
|
||||
return character and not character.portraits.is_empty() and not character.portraits.size() == 1
|
||||
return character and not character.portraits.is_empty() and not character.portraits.size() == 1
|
||||
|
||||
|
||||
func do_any_characters_exist() -> bool:
|
||||
return not DialogicResourceUtil.get_character_directory().is_empty()
|
||||
return not DialogicResourceUtil.get_character_directory().is_empty()
|
||||
|
||||
|
||||
func get_character_suggestions(search_text:String) -> Dictionary:
|
||||
var suggestions := DialogicUtil.get_character_suggestions(search_text, character, true, false, editor_node)
|
||||
if search_text and not search_text in suggestions:
|
||||
suggestions[search_text] = {
|
||||
"value":search_text,
|
||||
"tooltip": "A temporary character, created on the spot.",
|
||||
"editor_icon":["GuiEllipsis", "EditorIcons"]}
|
||||
return suggestions
|
||||
var suggestions := DialogicUtil.get_character_suggestions(search_text, character, true, false, editor_node)
|
||||
if search_text and not search_text in suggestions:
|
||||
suggestions[search_text] = {
|
||||
"value":search_text,
|
||||
"tooltip": "A temporary character, created on the spot.",
|
||||
"editor_icon":["GuiEllipsis", "EditorIcons"]}
|
||||
return suggestions
|
||||
|
||||
func get_portrait_suggestions(search_text:String) -> Dictionary:
|
||||
return DialogicUtil.get_portrait_suggestions(search_text, character, true, "Don't change")
|
||||
return DialogicUtil.get_portrait_suggestions(search_text, character, true, "Don't change")
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -447,45 +447,45 @@ func get_portrait_suggestions(search_text:String) -> Dictionary:
|
||||
var completion_text_character_getter_regex := RegEx.new()
|
||||
var completion_text_effects := {}
|
||||
func _get_code_completion(CodeCompletionHelper:Node, TextNode:TextEdit, line:String, _word:String, symbol:String) -> void:
|
||||
if completion_text_character_getter_regex.get_pattern().is_empty():
|
||||
completion_text_character_getter_regex.compile("(\"[^\"]*\"|[^\\s:]*)")
|
||||
if completion_text_character_getter_regex.get_pattern().is_empty():
|
||||
completion_text_character_getter_regex.compile("(\"[^\"]*\"|[^\\s:]*)")
|
||||
|
||||
if completion_text_effects.is_empty():
|
||||
for idx in DialogicUtil.get_indexers():
|
||||
for effect in idx._get_text_effects():
|
||||
completion_text_effects[effect['command']] = effect
|
||||
if completion_text_effects.is_empty():
|
||||
for idx in DialogicUtil.get_indexers():
|
||||
for effect in idx._get_text_effects():
|
||||
completion_text_effects[effect['command']] = effect
|
||||
|
||||
if not ':' in line.substr(0, TextNode.get_caret_column()) and symbol == '(':
|
||||
var completion_character := completion_text_character_getter_regex.search(line).get_string().trim_prefix('"').trim_suffix('"')
|
||||
CodeCompletionHelper.suggest_portraits(TextNode, completion_character)
|
||||
if not ':' in line.substr(0, TextNode.get_caret_column()) and symbol == '(':
|
||||
var completion_character := completion_text_character_getter_regex.search(line).get_string().trim_prefix('"').trim_suffix('"')
|
||||
CodeCompletionHelper.suggest_portraits(TextNode, completion_character)
|
||||
|
||||
if symbol == '[':
|
||||
suggest_bbcode(TextNode)
|
||||
for effect in completion_text_effects.values():
|
||||
if effect.get('arg', false):
|
||||
TextNode.add_code_completion_option(CodeEdit.KIND_MEMBER, effect.command, effect.command+'=', TextNode.syntax_highlighter.normal_color, TextNode.get_theme_icon("RichTextEffect", "EditorIcons"))
|
||||
else:
|
||||
TextNode.add_code_completion_option(CodeEdit.KIND_MEMBER, effect.command, effect.command, TextNode.syntax_highlighter.normal_color, TextNode.get_theme_icon("RichTextEffect", "EditorIcons"), ']')
|
||||
if symbol == '[':
|
||||
suggest_bbcode(TextNode)
|
||||
for effect in completion_text_effects.values():
|
||||
if effect.get('arg', false):
|
||||
TextNode.add_code_completion_option(CodeEdit.KIND_MEMBER, effect.command, effect.command+'=', TextNode.syntax_highlighter.normal_color, TextNode.get_theme_icon("RichTextEffect", "EditorIcons"))
|
||||
else:
|
||||
TextNode.add_code_completion_option(CodeEdit.KIND_MEMBER, effect.command, effect.command, TextNode.syntax_highlighter.normal_color, TextNode.get_theme_icon("RichTextEffect", "EditorIcons"), ']')
|
||||
|
||||
if symbol == '{':
|
||||
CodeCompletionHelper.suggest_variables(TextNode)
|
||||
if symbol == '{':
|
||||
CodeCompletionHelper.suggest_variables(TextNode)
|
||||
|
||||
if symbol == '=':
|
||||
if CodeCompletionHelper.get_line_untill_caret(line).ends_with('[portrait='):
|
||||
var completion_character := completion_text_character_getter_regex.search(line).get_string('name')
|
||||
CodeCompletionHelper.suggest_portraits(TextNode, completion_character, ']')
|
||||
if symbol == '=':
|
||||
if CodeCompletionHelper.get_line_untill_caret(line).ends_with('[portrait='):
|
||||
var completion_character := completion_text_character_getter_regex.search(line).get_string('name')
|
||||
CodeCompletionHelper.suggest_portraits(TextNode, completion_character, ']')
|
||||
|
||||
|
||||
func _get_start_code_completion(CodeCompletionHelper:Node, TextNode:TextEdit) -> void:
|
||||
CodeCompletionHelper.suggest_characters(TextNode, CodeEdit.KIND_CLASS, self)
|
||||
CodeCompletionHelper.suggest_characters(TextNode, CodeEdit.KIND_CLASS, self)
|
||||
|
||||
|
||||
func suggest_bbcode(TextNode:CodeEdit):
|
||||
for i in [['b (bold)', 'b'], ['i (italics)', 'i'], ['color', 'color='], ['font size','font_size=']]:
|
||||
TextNode.add_code_completion_option(CodeEdit.KIND_MEMBER, i[0], i[1], TextNode.syntax_highlighter.normal_color, TextNode.get_theme_icon("RichTextEffect", "EditorIcons"),)
|
||||
TextNode.add_code_completion_option(CodeEdit.KIND_CLASS, 'end '+i[0], '/'+i[1], TextNode.syntax_highlighter.normal_color, TextNode.get_theme_icon("RichTextEffect", "EditorIcons"), ']')
|
||||
for i in [['new event', 'n'],['new event (same box)', 'n+']]:
|
||||
TextNode.add_code_completion_option(CodeEdit.KIND_MEMBER, i[0], i[1], TextNode.syntax_highlighter.normal_color, TextNode.get_theme_icon("ArrowRight", "EditorIcons"),)
|
||||
for i in [['b (bold)', 'b'], ['i (italics)', 'i'], ['color', 'color='], ['font size','font_size=']]:
|
||||
TextNode.add_code_completion_option(CodeEdit.KIND_MEMBER, i[0], i[1], TextNode.syntax_highlighter.normal_color, TextNode.get_theme_icon("RichTextEffect", "EditorIcons"),)
|
||||
TextNode.add_code_completion_option(CodeEdit.KIND_CLASS, 'end '+i[0], '/'+i[1], TextNode.syntax_highlighter.normal_color, TextNode.get_theme_icon("RichTextEffect", "EditorIcons"), ']')
|
||||
for i in [['new event', 'n'],['new event (same box)', 'n+']]:
|
||||
TextNode.add_code_completion_option(CodeEdit.KIND_MEMBER, i[0], i[1], TextNode.syntax_highlighter.normal_color, TextNode.get_theme_icon("ArrowRight", "EditorIcons"),)
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -496,56 +496,56 @@ func suggest_bbcode(TextNode:CodeEdit):
|
||||
var text_effects := ""
|
||||
var text_effects_regex := RegEx.new()
|
||||
func load_text_effects() -> void:
|
||||
if text_effects.is_empty():
|
||||
for idx in DialogicUtil.get_indexers():
|
||||
for effect in idx._get_text_effects():
|
||||
text_effects+= effect['command']+'|'
|
||||
text_effects += "b|i|u|s|code|p|center|left|right|fill|n\\+|n|indent|url|img|font|font_size|opentype_features|color|bg_color|fg_color|outline_size|outline_color|table|cell|ul|ol|lb|rb|br"
|
||||
if text_effects_regex.get_pattern().is_empty():
|
||||
text_effects_regex.compile("(?<!\\\\)\\[\\s*/?(?<command>"+text_effects+")\\s*(=\\s*(?<value>.+?)\\s*)?\\]")
|
||||
if text_effects.is_empty():
|
||||
for idx in DialogicUtil.get_indexers():
|
||||
for effect in idx._get_text_effects():
|
||||
text_effects+= effect['command']+'|'
|
||||
text_effects += "b|i|u|s|code|p|center|left|right|fill|n\\+|n|indent|url|img|font|font_size|opentype_features|color|bg_color|fg_color|outline_size|outline_color|table|cell|ul|ol|lb|rb|br"
|
||||
if text_effects_regex.get_pattern().is_empty():
|
||||
text_effects_regex.compile("(?<!\\\\)\\[\\s*/?(?<command>"+text_effects+")\\s*(=\\s*(?<value>.+?)\\s*)?\\]")
|
||||
|
||||
|
||||
var text_random_word_regex := RegEx.new()
|
||||
var text_effect_color := Color('#898276')
|
||||
func _get_syntax_highlighting(Highlighter:SyntaxHighlighter, dict:Dictionary, line:String) -> Dictionary:
|
||||
load_text_effects()
|
||||
if text_random_word_regex.get_pattern().is_empty():
|
||||
text_random_word_regex.compile(r"(?<!\\)\<[^\>]+(\/[^\>]*)\>")
|
||||
load_text_effects()
|
||||
if text_random_word_regex.get_pattern().is_empty():
|
||||
text_random_word_regex.compile(r"(?<!\\)\<[^\>]+(\/[^\>]*)\>")
|
||||
|
||||
var result := regex.search(line)
|
||||
if not result:
|
||||
return dict
|
||||
if Highlighter.mode == Highlighter.Modes.FULL_HIGHLIGHTING:
|
||||
if result.get_string('name'):
|
||||
dict[result.get_start('name')] = {"color":Highlighter.character_name_color}
|
||||
dict[result.get_end('name')] = {"color":Highlighter.normal_color}
|
||||
if result.get_string('portrait'):
|
||||
dict[result.get_start('portrait')] = {"color":Highlighter.character_portrait_color}
|
||||
dict[result.get_end('portrait')] = {"color":Highlighter.normal_color}
|
||||
if result.get_string('text'):
|
||||
var result := regex.search(line)
|
||||
if not result:
|
||||
return dict
|
||||
if Highlighter.mode == Highlighter.Modes.FULL_HIGHLIGHTING:
|
||||
if result.get_string('name'):
|
||||
dict[result.get_start('name')] = {"color":Highlighter.character_name_color}
|
||||
dict[result.get_end('name')] = {"color":Highlighter.normal_color}
|
||||
if result.get_string('portrait'):
|
||||
dict[result.get_start('portrait')] = {"color":Highlighter.character_portrait_color}
|
||||
dict[result.get_end('portrait')] = {"color":Highlighter.normal_color}
|
||||
if result.get_string('text'):
|
||||
|
||||
## Color the random selection modifier
|
||||
for replace_mod_match in text_random_word_regex.search_all(result.get_string('text')):
|
||||
var color: Color = Highlighter.string_color
|
||||
color = color.lerp(Highlighter.normal_color, 0.4)
|
||||
dict[replace_mod_match.get_start()+result.get_start('text')] = {'color':Highlighter.string_color}
|
||||
var offset := 1
|
||||
for b:RegExMatch in RegEx.create_from_string(r"(\[[^\]]*\]|[^\/]|\/\/)+").search_all(replace_mod_match.get_string().trim_prefix("<").trim_suffix(">")):
|
||||
color.h = wrap(color.h+0.2, 0, 1)
|
||||
dict[replace_mod_match.get_start()+result.get_start('text')+offset] = {'color':color}
|
||||
offset += len(b.get_string())
|
||||
dict[replace_mod_match.get_start()+result.get_start('text')+offset] = {'color':Highlighter.string_color}
|
||||
offset += 1
|
||||
dict[replace_mod_match.get_end()+result.get_start('text')] = {'color':Highlighter.normal_color}
|
||||
## Color the random selection modifier
|
||||
for replace_mod_match in text_random_word_regex.search_all(result.get_string('text')):
|
||||
var color: Color = Highlighter.string_color
|
||||
color = color.lerp(Highlighter.normal_color, 0.4)
|
||||
dict[replace_mod_match.get_start()+result.get_start('text')] = {'color':Highlighter.string_color}
|
||||
var offset := 1
|
||||
for b:RegExMatch in RegEx.create_from_string(r"(\[[^\]]*\]|[^\/]|\/\/)+").search_all(replace_mod_match.get_string().trim_prefix("<").trim_suffix(">")):
|
||||
color.h = wrap(color.h+0.2, 0, 1)
|
||||
dict[replace_mod_match.get_start()+result.get_start('text')+offset] = {'color':color}
|
||||
offset += len(b.get_string())
|
||||
dict[replace_mod_match.get_start()+result.get_start('text')+offset] = {'color':Highlighter.string_color}
|
||||
offset += 1
|
||||
dict[replace_mod_match.get_end()+result.get_start('text')] = {'color':Highlighter.normal_color}
|
||||
|
||||
## Color bbcode and text effects
|
||||
var effects_result := text_effects_regex.search_all(line)
|
||||
for eff in effects_result:
|
||||
var prev_color: Color = Highlighter.dict_get_color_at_column(dict, eff.get_start())
|
||||
dict[eff.get_start()] = {"color":text_effect_color.lerp(prev_color, 0.4)}
|
||||
dict[eff.get_end()] = {"color":prev_color}
|
||||
dict = Highlighter.color_region(dict, Highlighter.variable_color, line, '{', '}', result.get_start('text'))
|
||||
## Color bbcode and text effects
|
||||
var effects_result := text_effects_regex.search_all(line)
|
||||
for eff in effects_result:
|
||||
var prev_color: Color = Highlighter.dict_get_color_at_column(dict, eff.get_start())
|
||||
dict[eff.get_start()] = {"color":text_effect_color.lerp(prev_color, 0.4)}
|
||||
dict[eff.get_end()] = {"color":prev_color}
|
||||
dict = Highlighter.color_region(dict, Highlighter.variable_color, line, '{', '}', result.get_start('text'))
|
||||
|
||||
return dict
|
||||
return dict
|
||||
|
||||
#endregion
|
||||
|
||||
BIN
common/audio_manager/assets/sfx/signal/signal.mp3
Normal file
19
common/audio_manager/assets/sfx/signal/signal.mp3.import
Normal file
@@ -0,0 +1,19 @@
|
||||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://c5y70k3codtn"
|
||||
path="res://.godot/imported/signal.mp3-2f41c9334233d52845bfe384d47f2a96.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://common/audio_manager/assets/sfx/signal/signal.mp3"
|
||||
dest_files=["res://.godot/imported/signal.mp3-2f41c9334233d52845bfe384d47f2a96.mp3str"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
||||
bpm=0
|
||||
beat_count=0
|
||||
bar_beats=4
|
||||
@@ -6,12 +6,13 @@
|
||||
[ext_resource type="AudioStream" uid="uid://bqwiaek5b5q00" path="res://common/audio_manager/assets/morceaux/niveau/forest_phase_2.ogg" id="6_ldyhq"]
|
||||
[ext_resource type="AudioStream" uid="uid://d4lqhgf0lhgge" path="res://common/audio_manager/assets/morceaux/niveau/forest_phase_3.ogg" id="7_ol34x"]
|
||||
[ext_resource type="AudioStream" uid="uid://bpf6witukorka" path="res://common/audio_manager/assets/morceaux/autres/main_menu.ogg" id="7_tuvql"]
|
||||
[ext_resource type="AudioStream" uid="uid://brtjlgjqnrvcb" path="res://common/audio_manager/assets/morceaux/autres/truck_music.ogg" id="8_0e5ja"]
|
||||
[ext_resource type="AudioStream" uid="uid://dadg6o6dl2k6t" path="res://common/audio_manager/assets/morceaux/autres/truck_music.ogg" id="8_0e5ja"]
|
||||
[ext_resource type="AudioStream" uid="uid://bnxsnege8qq6e" path="res://common/audio_manager/assets/morceaux/niveau/forest_phase_4.ogg" id="8_ajci6"]
|
||||
[ext_resource type="AudioStream" uid="uid://dfrp66a4isnt6" path="res://common/audio_manager/assets/sfx/dig/dig_1.wav" id="9_gv65y"]
|
||||
[ext_resource type="AudioStream" uid="uid://bdxkvaciw4mb3" path="res://common/audio_manager/assets/sfx/dig/dig_2.wav" id="10_n7o7n"]
|
||||
[ext_resource type="AudioStream" uid="uid://llxrlwfccywb" path="res://common/audio_manager/assets/sfx/dig/dig_3.wav" id="11_wtvls"]
|
||||
[ext_resource type="AudioStream" uid="uid://b8inedx4yjslw" path="res://common/audio_manager/assets/sfx/drop/drop_1.wav" id="12_4hp8f"]
|
||||
[ext_resource type="AudioStream" uid="uid://c5y70k3codtn" path="res://common/audio_manager/assets/sfx/signal/signal.mp3" id="12_ajci6"]
|
||||
[ext_resource type="AudioStream" uid="uid://8nmr5vifkt1f" path="res://common/audio_manager/assets/sfx/harvest/harvest_1.wav" id="13_xoaox"]
|
||||
[ext_resource type="AudioStream" uid="uid://dgkdcq4j6fe3o" path="res://common/audio_manager/assets/sfx/harvest/harvest_2.wav" id="14_b5bgj"]
|
||||
[ext_resource type="AudioStream" uid="uid://eh3dbuxu5qtw" path="res://common/audio_manager/assets/sfx/harvest/harvest_3.wav" id="15_ynvb4"]
|
||||
@@ -36,6 +37,11 @@ stream_0/stream = ExtResource("9_gv65y")
|
||||
stream_1/stream = ExtResource("10_n7o7n")
|
||||
stream_2/stream = ExtResource("11_wtvls")
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_8204s"]
|
||||
random_pitch = 1.0594631
|
||||
streams_count = 1
|
||||
stream_0/stream = ExtResource("12_ajci6")
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_1w04j"]
|
||||
random_pitch = 1.2
|
||||
streams_count = 1
|
||||
@@ -59,7 +65,6 @@ stream_1/stream = ExtResource("21_dk5s6")
|
||||
[node name="AudioManager" type="Node" unique_id=1871137180]
|
||||
process_mode = 3
|
||||
script = ExtResource("1_0tvca")
|
||||
default_fade_time = 2.0
|
||||
|
||||
[node name="Ambiance" type="Node" parent="." unique_id=1989991562]
|
||||
unique_name_in_owner = true
|
||||
@@ -78,6 +83,7 @@ stream = SubResource("AudioStreamPlaylist_ajci6")
|
||||
[node name="Title" type="AudioStreamPlayer" parent="Musics" unique_id=2105759422]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("7_tuvql")
|
||||
bus = &"Music"
|
||||
|
||||
[node name="Truck" type="AudioStreamPlayer" parent="Musics" unique_id=1165150318]
|
||||
unique_name_in_owner = true
|
||||
@@ -89,6 +95,9 @@ unique_name_in_owner = true
|
||||
[node name="Dig" type="AudioStreamPlayer" parent="Sfx" unique_id=486042600]
|
||||
stream = SubResource("AudioStreamRandomizer_kfbah")
|
||||
|
||||
[node name="Signal" type="AudioStreamPlayer" parent="Sfx" unique_id=641246368]
|
||||
stream = SubResource("AudioStreamRandomizer_8204s")
|
||||
|
||||
[node name="Drop" type="AudioStreamPlayer" parent="Sfx" unique_id=1391500830]
|
||||
stream = SubResource("AudioStreamRandomizer_1w04j")
|
||||
|
||||
|
||||
@@ -20,9 +20,9 @@ func _ready():
|
||||
player.stop()
|
||||
|
||||
fetch_default_volumes()
|
||||
setup_volume()
|
||||
# setup_players_bus()
|
||||
settings.sound_changed.connect(
|
||||
func(_s) : setup_volume()
|
||||
func(_s) : setup_players_bus()
|
||||
)
|
||||
SceneManager.scene_loaded.connect(_on_change_scene)
|
||||
Dialogic.timeline_started.connect(_on_timeline_started)
|
||||
@@ -120,21 +120,17 @@ func fetch_default_volumes():
|
||||
for player in all_players:
|
||||
default_volumes[player] = player.volume_db
|
||||
|
||||
func setup_volume():
|
||||
func setup_players_bus():
|
||||
for player in get_all_players():
|
||||
player.volume_db = get_volume_from_parent(player)
|
||||
if player.get_parent() == %Musics:
|
||||
player.bus = (AudioServer.get_bus_name(SettingsData.MUSIC_BUS_ID))
|
||||
elif player.get_parent() == %Sfx:
|
||||
player.bus = (AudioServer.get_bus_name(SettingsData.SFX_BUS_ID))
|
||||
elif player.get_parent() == %Ambiance:
|
||||
player.bus = (AudioServer.get_bus_name(SettingsData.AMBIANCE_BUS_ID))
|
||||
|
||||
func get_volume_from_parent(player : AudioStreamPlayer) -> float:
|
||||
var settings_volume = 0.5
|
||||
|
||||
if player.get_parent() == %Ambiance:
|
||||
settings_volume = settings.ambiance_volume
|
||||
elif player.get_parent() == %Sfx:
|
||||
settings_volume = settings.sfx_volume
|
||||
elif player.get_parent() == %Musics:
|
||||
settings_volume = settings.music_volume
|
||||
|
||||
return default_volumes[player] + lerp(MIN_VOLUME, MAX_VOLUME, settings_volume)
|
||||
func get_volume(player : AudioStreamPlayer) -> float:
|
||||
return default_volumes[player]
|
||||
|
||||
func get_all_players() -> Array[AudioStreamPlayer]:
|
||||
var players : Array[AudioStreamPlayer] = []
|
||||
@@ -167,17 +163,17 @@ func start_player(player: AudioStreamPlayer, from_random_time = false, fade_time
|
||||
)
|
||||
if fade_time > 0.0:
|
||||
player.volume_db = MIN_VOLUME
|
||||
await set_volume(player, get_volume_from_parent(player), fade_time).finished
|
||||
await set_volume(player, get_volume(player), fade_time).finished
|
||||
|
||||
func stop_player(player : AudioStreamPlayer, fade_time = DEFAULT_FADE_TIME):
|
||||
if player and player.playing:
|
||||
if fade_time > 0.0:
|
||||
await set_volume(player, MIN_VOLUME, fade_time).finished
|
||||
player.stop()
|
||||
player.volume_db = get_volume_from_parent(player)
|
||||
player.volume_db = get_volume(player)
|
||||
|
||||
func reset_volume(player : AudioStreamPlayer):
|
||||
player.volume_db = get_volume_from_parent(player)
|
||||
player.volume_db = get_volume(player)
|
||||
|
||||
func play_sfx(sfx_name : String):
|
||||
var player := %Sfx.find_child(sfx_name) as AudioStreamPlayer
|
||||
|
||||
@@ -13,8 +13,16 @@ signal current_region_data_updated(p : RegionData)
|
||||
|
||||
@export var last_game_scene : Scene = null
|
||||
|
||||
@export var ship_in_space = false
|
||||
|
||||
@export var tutorial_done = false
|
||||
|
||||
@export var incubator_used = []
|
||||
|
||||
@export var dialogs_done : Array[String] = [] #Chemin des dialogues démarrés
|
||||
|
||||
func start_run():
|
||||
player_data.inventory.clear()
|
||||
player_data.inventory.clear_items()
|
||||
current_run = RunData.new()
|
||||
current_run.current_run_point_changed.connect(
|
||||
func(rp : RunPoint):
|
||||
@@ -32,3 +40,19 @@ func start_region(region_param : RegionParameter):
|
||||
current_region_data = RegionData.new(region_param)
|
||||
current_region_data_updated.emit(current_region_data)
|
||||
GameInfo.save_game_data()
|
||||
|
||||
func give_up():
|
||||
current_region_data = null
|
||||
current_run = null
|
||||
|
||||
func start_tutorial():
|
||||
current_region_data = RegionData.new(
|
||||
RegionParameter.new(
|
||||
10,
|
||||
3,
|
||||
tr("TUTORIAL"),
|
||||
true,
|
||||
0,
|
||||
randi()
|
||||
)
|
||||
)
|
||||
@@ -5,8 +5,8 @@ enum State {STARTED, IN_PROGRESS, FINISHED}
|
||||
|
||||
const RUN_POINT_POSITION_DERIVATION = 100
|
||||
const DIFFICULTY_INCREASE_BY_LEVEL = 1
|
||||
const RUN_POINTS_NEXT_NUMBER :Array[int] = [2,3]
|
||||
const RUN_POINT_MAX_LEVEL = 10
|
||||
const RUN_POINTS_NEXT_NUMBER :Array[int] = [2]
|
||||
const RUN_POINT_MAX_LEVEL = 6
|
||||
|
||||
signal current_run_point_changed
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ func _init(
|
||||
):
|
||||
level = _level
|
||||
region_parameter = _region_parameter
|
||||
region_parameter.level = level
|
||||
position = _position
|
||||
|
||||
func card_info() -> CardInfo:
|
||||
@@ -34,4 +35,4 @@ func card_info() -> CardInfo:
|
||||
CardStatInfo.new(str(region_parameter.charges), CHARGE_ICON),
|
||||
])
|
||||
|
||||
return info
|
||||
return info
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
extends Resource
|
||||
class_name SettingsData
|
||||
|
||||
const MUSIC_BUS_ID = 1
|
||||
const SFX_BUS_ID = 2
|
||||
const AMBIANCE_BUS_ID = 3
|
||||
|
||||
signal language_changed(settings : SettingsData)
|
||||
signal sound_changed(settings : SettingsData)
|
||||
signal video_changed(settings : SettingsData)
|
||||
|
||||
@@ -52,6 +52,10 @@ func _init():
|
||||
update_video_settings()
|
||||
settings_data.language_changed.connect(_on_settings_language_changed)
|
||||
settings_data.video_changed.connect(_on_settings_video_changed)
|
||||
settings_data.sound_changed.connect(_on_settings_sound_changed)
|
||||
|
||||
func _ready():
|
||||
Dialogic.timeline_started.connect(_on_timeline_started)
|
||||
|
||||
func _on_settings_video_changed(s : SettingsData):
|
||||
update_video_settings(s)
|
||||
@@ -59,6 +63,17 @@ func _on_settings_video_changed(s : SettingsData):
|
||||
func _on_settings_language_changed(s : SettingsData):
|
||||
update_language_settings(s)
|
||||
|
||||
func _on_settings_sound_changed(s : SettingsData):
|
||||
AudioServer.set_bus_volume_db(SettingsData.MUSIC_BUS_ID, linear_to_db(s.music_volume))
|
||||
AudioServer.set_bus_volume_db(SettingsData.SFX_BUS_ID, linear_to_db(s.sfx_volume))
|
||||
AudioServer.set_bus_volume_db(SettingsData.AMBIANCE_BUS_ID, linear_to_db(s.ambiance_volume))
|
||||
|
||||
func _on_timeline_started():
|
||||
var dialog_path = Dialogic.current_timeline.resource_path
|
||||
if not dialog_path in game_data.dialogs_done:
|
||||
game_data.dialogs_done.append(dialog_path)
|
||||
save_game_data()
|
||||
|
||||
func update_language_settings(s : SettingsData = settings_data):
|
||||
TranslationServer.set_locale(s.language)
|
||||
|
||||
|
||||
BIN
common/icons/bar.png
Normal file
|
After Width: | Height: | Size: 427 B |
40
common/icons/bar.png.import
Normal file
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dw80a4c5iekir"
|
||||
path="res://.godot/imported/bar.png-623df5fbea38f9d862a997485a02d36c.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://common/icons/bar.png"
|
||||
dest_files=["res://.godot/imported/bar.png-623df5fbea38f9d862a997485a02d36c.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,19 +3,20 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dcgnamu7sb3ov"
|
||||
path="res://.godot/imported/bolt.svg-a559d5e701996c7d105fc68102331434.ctex"
|
||||
path.s3tc="res://.godot/imported/bolt.svg-a559d5e701996c7d105fc68102331434.s3tc.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://common/icons/bolt.svg"
|
||||
dest_files=["res://.godot/imported/bolt.svg-a559d5e701996c7d105fc68102331434.ctex"]
|
||||
dest_files=["res://.godot/imported/bolt.svg-a559d5e701996c7d105fc68102331434.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
@@ -23,7 +24,7 @@ compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
@@ -37,7 +38,7 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
svg/scale=2.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
|
||||
1
common/icons/brand-instagram.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-brand-instagram"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 8a4 4 0 0 1 4 -4h8a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-8a4 4 0 0 1 -4 -4l0 -8" /><path d="M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0" /><path d="M16.5 7.5v.01" /></svg>
|
||||
|
After Width: | Height: | Size: 469 B |
43
common/icons/brand-instagram.svg.import
Normal file
@@ -0,0 +1,43 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dh1jaup4y1f6q"
|
||||
path="res://.godot/imported/brand-instagram.svg-93b67e1c651e77c13169000f3fa1764f.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://common/icons/brand-instagram.svg"
|
||||
dest_files=["res://.godot/imported/brand-instagram.svg-93b67e1c651e77c13169000f3fa1764f.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
|
||||
svg/scale=2.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
1
common/icons/brand-steam.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-brand-steam"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M16.5 5a4.5 4.5 0 1 1 -.653 8.953l-4.347 3.009l0 .038a3 3 0 0 1 -2.824 3l-.176 0a3 3 0 0 1 -2.94 -2.402l-2.56 -1.098v-3.5l3.51 1.755a2.989 2.989 0 0 1 2.834 -.635l2.727 -3.818a4.5 4.5 0 0 1 4.429 -5.302" /><path d="M15.5 9.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" fill="#ffffff" /></svg>
|
||||
|
After Width: | Height: | Size: 584 B |
43
common/icons/brand-steam.svg.import
Normal file
@@ -0,0 +1,43 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cpkye7t28ragp"
|
||||
path="res://.godot/imported/brand-steam.svg-9dbbdc409ded6b7066179206cac90cca.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://common/icons/brand-steam.svg"
|
||||
dest_files=["res://.godot/imported/brand-steam.svg-9dbbdc409ded6b7066179206cac90cca.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
|
||||
svg/scale=2.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
1
common/icons/broadcast.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-broadcast"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18.364 19.364a9 9 0 1 0 -12.728 0" /><path d="M15.536 16.536a5 5 0 1 0 -7.072 0" /><path d="M11 13a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /></svg>
|
||||
|
After Width: | Height: | Size: 442 B |
43
common/icons/broadcast.svg.import
Normal file
@@ -0,0 +1,43 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://qshtr3peinak"
|
||||
path="res://.godot/imported/broadcast.svg-d7376e52ecc5b74fcdaea71ccbe04a97.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://common/icons/broadcast.svg"
|
||||
dest_files=["res://.godot/imported/broadcast.svg-d7376e52ecc5b74fcdaea71ccbe04a97.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
|
||||
svg/scale=2.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
@@ -3,19 +3,20 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://baaujfw8piywi"
|
||||
path="res://.godot/imported/dna.svg-0d37cb06a607035637eb8d87826b10a6.ctex"
|
||||
path.s3tc="res://.godot/imported/dna.svg-0d37cb06a607035637eb8d87826b10a6.s3tc.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://common/icons/dna.svg"
|
||||
dest_files=["res://.godot/imported/dna.svg-0d37cb06a607035637eb8d87826b10a6.ctex"]
|
||||
dest_files=["res://.godot/imported/dna.svg-0d37cb06a607035637eb8d87826b10a6.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
@@ -23,7 +24,7 @@ compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
@@ -37,7 +38,7 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
svg/scale=2.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
|
||||
@@ -3,19 +3,20 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b43thuq8piv18"
|
||||
path="res://.godot/imported/skull.svg-1f3a01497295060c28293df722ed0ddd.ctex"
|
||||
path.s3tc="res://.godot/imported/skull.svg-1f3a01497295060c28293df722ed0ddd.s3tc.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://common/icons/skull.svg"
|
||||
dest_files=["res://.godot/imported/skull.svg-1f3a01497295060c28293df722ed0ddd.ctex"]
|
||||
dest_files=["res://.godot/imported/skull.svg-1f3a01497295060c28293df722ed0ddd.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
@@ -23,7 +24,7 @@ compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
@@ -37,7 +38,7 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
svg/scale=2.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
|
||||
@@ -3,19 +3,20 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b6dwhn0uotdgu"
|
||||
path="res://.godot/imported/square-rounded-nofill.svg-3b394b5967765acc26d391129de152eb.ctex"
|
||||
path.s3tc="res://.godot/imported/square-rounded-nofill.svg-3b394b5967765acc26d391129de152eb.s3tc.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://common/icons/square-rounded-nofill.svg"
|
||||
dest_files=["res://.godot/imported/square-rounded-nofill.svg-3b394b5967765acc26d391129de152eb.ctex"]
|
||||
dest_files=["res://.godot/imported/square-rounded-nofill.svg-3b394b5967765acc26d391129de152eb.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
@@ -23,7 +24,7 @@ compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
@@ -37,7 +38,7 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
svg/scale=2.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
|
||||
@@ -3,19 +3,20 @@
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://rdrhi3r11ey6"
|
||||
path="res://.godot/imported/square-rounded.svg-4eece25055f2b80264664150c832a797.ctex"
|
||||
path.s3tc="res://.godot/imported/square-rounded.svg-4eece25055f2b80264664150c832a797.s3tc.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://common/icons/square-rounded.svg"
|
||||
dest_files=["res://.godot/imported/square-rounded.svg-4eece25055f2b80264664150c832a797.ctex"]
|
||||
dest_files=["res://.godot/imported/square-rounded.svg-4eece25055f2b80264664150c832a797.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
@@ -23,7 +24,7 @@ compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
@@ -37,7 +38,7 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
svg/scale=2.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
|
||||
@@ -1,85 +1,113 @@
|
||||
[gd_scene format=3 uid="uid://b8gqdgabrjaml"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dt2ip3pw2cboy" path="res://entities/plants/scripts/texture_builder/texture_builder.gd" id="1_s8rsj"]
|
||||
[ext_resource type="Script" uid="uid://dt2ip3pw2cboy" path="res://entities/plants/scripts/texture_builder/plant_texture_builder.gd" id="1_s8rsj"]
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_cfiqo"]
|
||||
[ext_resource type="Resource" uid="uid://bfyafiewcrjln" path="res://entities/plants/resources/plant_parts/Base1.tres" id="3_coupj"]
|
||||
[ext_resource type="Resource" uid="uid://d2vdf2sth2xjm" path="res://entities/plants/resources/plant_parts/Base3.tres" id="4_coupj"]
|
||||
[ext_resource type="Resource" uid="uid://bfyafiewcrjln" path="res://entities/plants/resources/plant_parts/Base1.tres" id="3_15wue"]
|
||||
[ext_resource type="Resource" uid="uid://7hrdkl6bf3o4" path="res://entities/plants/resources/plant_parts/Branch1.tres" id="4_ggud5"]
|
||||
[ext_resource type="Resource" uid="uid://clruuysx80pnn" path="res://entities/plants/resources/plant_parts/Base4.tres" id="5_ggud5"]
|
||||
[ext_resource type="Resource" uid="uid://bgh8a4xwc5stw" path="res://entities/plants/resources/plant_parts/Base2.tres" id="5_21cjy"]
|
||||
[ext_resource type="Resource" uid="uid://ceisi5yyie7to" path="res://entities/plants/resources/plant_parts/Branch2.tres" id="5_ufbqh"]
|
||||
[ext_resource type="Resource" uid="uid://cxiu8frk04b5i" path="res://entities/plants/resources/plant_parts/Branch3.tres" id="6_jbu3q"]
|
||||
[ext_resource type="Resource" uid="uid://53p5g07e3pb4" path="res://entities/plants/resources/plant_parts/Branch4.tres" id="7_21cjy"]
|
||||
[ext_resource type="Resource" uid="uid://d2y7o2hc6ffei" path="res://entities/plants/resources/plant_parts/Branch11.tres" id="8_rs2ow"]
|
||||
[ext_resource type="Resource" uid="uid://civ4gr1c2pq7g" path="res://entities/plants/resources/plant_parts/Branch12.tres" id="9_5job5"]
|
||||
[ext_resource type="Resource" uid="uid://bqfocs6f0iypo" path="res://entities/plants/resources/plant_parts/Branch13.tres" id="10_cynqk"]
|
||||
[ext_resource type="Resource" uid="uid://drml5dm8i3j3a" path="res://entities/plants/resources/plant_parts/Branch14.tres" id="11_b21au"]
|
||||
[ext_resource type="Resource" uid="uid://b1t5nfwcln5vo" path="res://entities/plants/resources/plant_parts/Branch15.tres" id="12_17ac3"]
|
||||
[ext_resource type="Resource" uid="uid://b4s58a600q2rn" path="res://entities/plants/resources/plant_parts/Branch16.tres" id="13_fuh2b"]
|
||||
[ext_resource type="Resource" uid="uid://dspugxsjw2aea" path="res://entities/plants/resources/plant_parts/Branch17.tres" id="14_28gvc"]
|
||||
[ext_resource type="Resource" uid="uid://cnt38l2fmg8d7" path="res://entities/plants/resources/plant_parts/Branch18.tres" id="15_1cwvj"]
|
||||
[ext_resource type="Resource" uid="uid://cyfyodtfxne1w" path="res://entities/plants/resources/plant_parts/Branch5.tres" id="8_qm7aw"]
|
||||
[ext_resource type="Resource" uid="uid://cuvtf4y1dspcp" path="res://entities/plants/resources/plant_parts/Branch6.tres" id="9_3e4c1"]
|
||||
[ext_resource type="Resource" uid="uid://wgmxpk52rg7x" path="res://entities/plants/resources/plant_parts/LeafA1.tres" id="11_fc4k8"]
|
||||
[ext_resource type="Resource" uid="uid://d2y7o2hc6ffei" path="res://entities/plants/resources/plant_parts/Branch11.tres" id="11_hvwgo"]
|
||||
[ext_resource type="Resource" uid="uid://cbejb0uvdke7k" path="res://entities/plants/resources/plant_parts/LeafA2.tres" id="12_1b4fr"]
|
||||
[ext_resource type="Resource" uid="uid://civ4gr1c2pq7g" path="res://entities/plants/resources/plant_parts/Branch12.tres" id="12_npk80"]
|
||||
[ext_resource type="Resource" uid="uid://dujxttu80g0lo" path="res://entities/plants/resources/plant_parts/LeafA3.tres" id="13_ggcwy"]
|
||||
[ext_resource type="Resource" uid="uid://bqfocs6f0iypo" path="res://entities/plants/resources/plant_parts/Branch13.tres" id="13_hyb2i"]
|
||||
[ext_resource type="Resource" uid="uid://drml5dm8i3j3a" path="res://entities/plants/resources/plant_parts/Branch14.tres" id="14_4gk8a"]
|
||||
[ext_resource type="Resource" uid="uid://bgv3nb10t6u3y" path="res://entities/plants/resources/plant_parts/LeafF1.tres" id="14_8r35x"]
|
||||
[ext_resource type="Resource" uid="uid://bix3qwmsvuxs4" path="res://entities/plants/resources/plant_parts/LeafA4.tres" id="14_15wue"]
|
||||
[ext_resource type="Resource" uid="uid://c31h25xdll8si" path="res://entities/plants/resources/plant_parts/FlowerD1.tres" id="15_3ti7v"]
|
||||
[ext_resource type="Resource" uid="uid://be17y7clvf88e" path="res://entities/plants/resources/plant_parts/LeafE1.tres" id="15_p2blu"]
|
||||
[ext_resource type="Resource" uid="uid://bkgw3wmoam10n" path="res://entities/plants/resources/plant_parts/LeafF2.tres" id="15_rbd7l"]
|
||||
[ext_resource type="Script" uid="uid://cfjd8jelpm8dt" path="res://entities/plants/scripts/texture_builder/part_mutation_association.gd" id="16_c3tk3"]
|
||||
[ext_resource type="Resource" uid="uid://wxqxm6d5twdh" path="res://entities/plants/resources/plant_parts/Leaf8.tres" id="17_q0jli"]
|
||||
[ext_resource type="Resource" uid="uid://uoikjpno37bi" path="res://entities/plants/resources/plant_parts/Leaf9.tres" id="18_rplk6"]
|
||||
[ext_resource type="Resource" uid="uid://c5gqwck2p5h5n" path="res://entities/plants/resources/plant_parts/Leaf10.tres" id="19_mcckl"]
|
||||
[ext_resource type="Resource" uid="uid://c5fj1cw0f4mu6" path="res://entities/plants/resources/plant_parts/Leaf11.tres" id="20_3hcun"]
|
||||
[ext_resource type="Resource" uid="uid://dce788f0adauv" path="res://entities/plants/resources/plant_parts/Leaf12.tres" id="21_kvmj5"]
|
||||
[ext_resource type="Resource" uid="uid://dd34dikqoynp3" path="res://entities/plants/resources/plant_parts/Leaf13.tres" id="22_ocu7e"]
|
||||
[ext_resource type="Resource" uid="uid://bynje6g2wvuvl" path="res://entities/plants/resources/plant_parts/Leaf14.tres" id="23_q771y"]
|
||||
[ext_resource type="Resource" uid="uid://bd2op6q1masjt" path="res://entities/plants/resources/plant_parts/Leaf15.tres" id="24_5fbyu"]
|
||||
[ext_resource type="Resource" uid="uid://bvajuw0r47edw" path="res://entities/plants/resources/plant_parts/Leaf16.tres" id="25_2plsj"]
|
||||
[ext_resource type="Resource" uid="uid://cxgw1vgket0fw" path="res://entities/plants/resources/plant_parts/Leaf1.tres" id="26_yjh7s"]
|
||||
[ext_resource type="Resource" uid="uid://qb6bftgq0n6y" path="res://entities/plants/resources/plant_parts/Leaf2.tres" id="27_abtbh"]
|
||||
[ext_resource type="Resource" uid="uid://ft112n57di0e" path="res://entities/plants/resources/plant_parts/Leaf3.tres" id="28_j5s6w"]
|
||||
[ext_resource type="Resource" uid="uid://dwjj6qmcjhn68" path="res://entities/plants/resources/plant_parts/Leaf4.tres" id="29_p21mk"]
|
||||
[ext_resource type="Resource" uid="uid://bkr70mstyf8pp" path="res://entities/plants/resources/plant_parts/Leaf5.tres" id="30_wmcor"]
|
||||
[ext_resource type="Resource" uid="uid://dcuwupmqt34ju" path="res://entities/plants/resources/plant_parts/Leaf6.tres" id="31_dx2ud"]
|
||||
[ext_resource type="Resource" uid="uid://djmidq7yq452i" path="res://entities/plants/resources/plant_parts/Leaf7.tres" id="32_fpktn"]
|
||||
[ext_resource type="Resource" uid="uid://crmvc77bqax1y" path="res://entities/plants/resources/plant_parts/Flower1.tres" id="33_7b70u"]
|
||||
[ext_resource type="Resource" uid="uid://c0hr7icfkjkoi" path="res://entities/plants/resources/plant_parts/Flower2.tres" id="34_q8uyx"]
|
||||
[ext_resource type="Resource" uid="uid://clkoc1iccts2w" path="res://entities/plants/resources/plant_parts/Flower3.tres" id="35_r166b"]
|
||||
[ext_resource type="Resource" uid="uid://bd8yapi1pokj6" path="res://entities/plants/resources/plant_parts/Flower4.tres" id="36_78dq1"]
|
||||
[ext_resource type="Resource" uid="uid://brmd6d3l8trqs" path="res://entities/plants/resources/plant_parts/BottomLeaf1.tres" id="37_kyre2"]
|
||||
[ext_resource type="Resource" uid="uid://cfr33014u7ig5" path="res://entities/plants/resources/plant_parts/BottomLeaf2.tres" id="38_hwp0s"]
|
||||
[ext_resource type="Resource" uid="uid://cf70m1us8mfqp" path="res://entities/plants/resources/plant_parts/BottomLeaf3.tres" id="39_wjthp"]
|
||||
[ext_resource type="Resource" uid="uid://ctlmah4ohqp25" path="res://entities/plants/resources/plant_parts/BottomLeaf4.tres" id="40_rf72b"]
|
||||
[ext_resource type="Resource" uid="uid://b8o4q0hsm84ov" path="res://entities/plants/resources/plant_parts/BottomLeaf5.tres" id="41_fnybh"]
|
||||
[ext_resource type="Resource" uid="uid://bb33v756anesy" path="res://entities/plants/resources/plant_parts/BottomLeaf6.tres" id="42_6o0xq"]
|
||||
[ext_resource type="Resource" uid="uid://cbqrl72y0d1yg" path="res://entities/plants/resources/plant_parts/BottomLeaf7.tres" id="43_h02jx"]
|
||||
[ext_resource type="Resource" uid="uid://dwppani7gyjl5" path="res://entities/plants/resources/plant_parts/BottomLeaf8.tres" id="44_1v1v5"]
|
||||
[ext_resource type="Resource" uid="uid://dkta1u1u0efxk" path="res://entities/plants/resources/plant_parts/BottomLeaf9.tres" id="45_yha2t"]
|
||||
[ext_resource type="Resource" uid="uid://r5mspvasrq6y" path="res://entities/plants/resources/plant_parts/FlowerD2.tres" id="16_cpf4r"]
|
||||
[ext_resource type="Resource" uid="uid://m8j2gfumw11w" path="res://entities/plants/resources/plant_parts/LeafF3.tres" id="16_nfxo0"]
|
||||
[ext_resource type="Resource" uid="uid://dw7wdihxxy0uf" path="res://entities/plants/resources/plant_parts/LeafE2.tres" id="16_xt8tm"]
|
||||
[ext_resource type="Resource" uid="uid://dth4dp88vs3gh" path="res://entities/plants/resources/plant_parts/LeafF4.tres" id="17_i8j71"]
|
||||
[ext_resource type="Resource" uid="uid://br80voioh4jxu" path="res://entities/plants/resources/plant_parts/FlowerD3.tres" id="17_p2blu"]
|
||||
[ext_resource type="Resource" uid="uid://3yi8hk73s5mm" path="res://entities/plants/resources/plant_parts/LeafE3.tres" id="17_qm7aw"]
|
||||
[ext_resource type="Resource" uid="uid://cka6sihumbjpw" path="res://entities/plants/resources/plant_parts/LeafF5.tres" id="18_l2vrg"]
|
||||
[ext_resource type="Resource" uid="uid://dq5dwqherb6ac" path="res://entities/plants/resources/plant_parts/LeafF6.tres" id="19_14c4k"]
|
||||
[ext_resource type="Resource" uid="uid://ckef0dno4j5mn" path="res://entities/plants/resources/plant_parts/FlowerF1.tres" id="20_lggh7"]
|
||||
[ext_resource type="Resource" uid="uid://dhhyh56shnure" path="res://entities/plants/resources/plant_parts/FlowerF2.tres" id="21_8r35x"]
|
||||
[ext_resource type="Resource" uid="uid://banfc3pgm6a0m" path="res://entities/plants/resources/plant_parts/FlowerC1.tres" id="21_alra6"]
|
||||
[ext_resource type="Resource" uid="uid://dmdyj7t4g48p" path="res://entities/plants/resources/plant_parts/FlowerC2.tres" id="22_lggh7"]
|
||||
[ext_resource type="Resource" uid="uid://bhj7j78tokt25" path="res://entities/plants/resources/plant_parts/FlowerC3.tres" id="23_8r35x"]
|
||||
[ext_resource type="Resource" uid="uid://bkgrwffi7m2i4" path="res://entities/plants/resources/plant_parts/FlowerC4.tres" id="24_rbd7l"]
|
||||
[ext_resource type="Resource" uid="uid://bchwhdmxsaqic" path="res://entities/plants/resources/plant_parts/LeafA5.tres" id="29_nfxo0"]
|
||||
[ext_resource type="Resource" uid="uid://cvr81iqokda6x" path="res://entities/plants/resources/plant_parts/LeafA6.tres" id="30_i8j71"]
|
||||
[ext_resource type="Resource" uid="uid://cwskfwdasvv0g" path="res://entities/plants/resources/plant_parts/FlowerF3.tres" id="38_rbd7l"]
|
||||
[ext_resource type="Resource" uid="uid://e0u1baixvaxn" path="res://entities/plants/resources/plant_parts/LeafE4.tres" id="42_14c4k"]
|
||||
[ext_resource type="Resource" uid="uid://dgivyissl512e" path="res://entities/plants/resources/plant_parts/LeafG1.tres" id="43_y02ao"]
|
||||
[ext_resource type="Resource" uid="uid://u6dwq3eowpcb" path="res://entities/plants/resources/plant_parts/LeafG2.tres" id="44_s8rsj"]
|
||||
[ext_resource type="Resource" uid="uid://c4artcndro0r5" path="res://entities/plants/resources/plant_parts/FlowerB1.tres" id="45_coupj"]
|
||||
[ext_resource type="Resource" uid="uid://b3dfua388ub4k" path="res://entities/plants/resources/plant_parts/FlowerB2.tres" id="46_ggud5"]
|
||||
[ext_resource type="Resource" uid="uid://bnn0tcoab4plv" path="res://entities/plants/resources/plant_parts/FlowerB3.tres" id="47_ufbqh"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_x75j3"]
|
||||
[sub_resource type="Resource" id="Resource_rt6tw"]
|
||||
script = ExtResource("16_c3tk3")
|
||||
parts = Array[ExtResource("2_cfiqo")]([ExtResource("17_q0jli"), ExtResource("18_rplk6"), ExtResource("19_mcckl"), ExtResource("20_3hcun"), ExtResource("21_kvmj5"), ExtResource("22_ocu7e"), ExtResource("23_q771y"), ExtResource("24_5fbyu"), ExtResource("25_2plsj")])
|
||||
part_amount = 2
|
||||
parts = Array[ExtResource("2_cfiqo")]([ExtResource("11_fc4k8"), ExtResource("12_1b4fr"), ExtResource("13_ggcwy"), ExtResource("14_15wue"), ExtResource("29_nfxo0"), ExtResource("30_i8j71")])
|
||||
part_amount = 4
|
||||
metadata/_custom_type_script = "uid://cfjd8jelpm8dt"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_setyo"]
|
||||
[sub_resource type="Resource" id="Resource_y02ao"]
|
||||
script = ExtResource("16_c3tk3")
|
||||
parts = Array[ExtResource("2_cfiqo")]([ExtResource("26_yjh7s"), ExtResource("27_abtbh"), ExtResource("28_j5s6w"), ExtResource("29_p21mk"), ExtResource("30_wmcor"), ExtResource("31_dx2ud"), ExtResource("32_fpktn")])
|
||||
part_amount = 2
|
||||
parts = Array[ExtResource("2_cfiqo")]([ExtResource("15_3ti7v"), ExtResource("16_cpf4r"), ExtResource("17_p2blu")])
|
||||
part_amount = 5
|
||||
metadata/_custom_type_script = "uid://cfjd8jelpm8dt"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_n40r1"]
|
||||
[sub_resource type="Resource" id="Resource_nfxo0"]
|
||||
script = ExtResource("16_c3tk3")
|
||||
parts = Array[ExtResource("2_cfiqo")]([ExtResource("33_7b70u"), ExtResource("34_q8uyx"), ExtResource("35_r166b"), ExtResource("36_78dq1")])
|
||||
part_amount = 2
|
||||
parts = Array[ExtResource("2_cfiqo")]([ExtResource("20_lggh7"), ExtResource("21_8r35x"), ExtResource("38_rbd7l")])
|
||||
part_amount = 5
|
||||
metadata/_custom_type_script = "uid://cfjd8jelpm8dt"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_pw6ot"]
|
||||
[sub_resource type="Resource" id="Resource_s8rsj"]
|
||||
script = ExtResource("16_c3tk3")
|
||||
parts = Array[ExtResource("2_cfiqo")]([ExtResource("37_kyre2"), ExtResource("38_hwp0s"), ExtResource("39_wjthp"), ExtResource("40_rf72b"), ExtResource("41_fnybh"), ExtResource("42_6o0xq"), ExtResource("43_h02jx"), ExtResource("44_1v1v5"), ExtResource("45_yha2t")])
|
||||
part_amount = 2
|
||||
parts = Array[ExtResource("2_cfiqo")]([ExtResource("15_p2blu"), ExtResource("16_xt8tm"), ExtResource("17_qm7aw"), ExtResource("42_14c4k")])
|
||||
part_amount = 5
|
||||
metadata/_custom_type_script = "uid://cfjd8jelpm8dt"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_14c4k"]
|
||||
script = ExtResource("16_c3tk3")
|
||||
parts = Array[ExtResource("2_cfiqo")]([ExtResource("21_alra6"), ExtResource("22_lggh7"), ExtResource("23_8r35x"), ExtResource("24_rbd7l")])
|
||||
part_amount = 4
|
||||
metadata/_custom_type_script = "uid://cfjd8jelpm8dt"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_cfiqo"]
|
||||
script = ExtResource("16_c3tk3")
|
||||
parts = Array[ExtResource("2_cfiqo")]([ExtResource("43_y02ao"), ExtResource("44_s8rsj")])
|
||||
part_amount = 3
|
||||
metadata/_custom_type_script = "uid://cfjd8jelpm8dt"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_jbu3q"]
|
||||
script = ExtResource("16_c3tk3")
|
||||
parts = Array[ExtResource("2_cfiqo")]([ExtResource("45_coupj"), ExtResource("46_ggud5"), ExtResource("47_ufbqh")])
|
||||
part_amount = 5
|
||||
metadata/_custom_type_script = "uid://cfjd8jelpm8dt"
|
||||
|
||||
[node name="TextureBuilder" type="Node" unique_id=79184097]
|
||||
script = ExtResource("1_s8rsj")
|
||||
bases = Array[ExtResource("2_cfiqo")]([ExtResource("3_coupj")])
|
||||
baby_bases = Array[ExtResource("2_cfiqo")]([ExtResource("4_coupj"), ExtResource("5_ggud5")])
|
||||
branches = Array[ExtResource("2_cfiqo")]([ExtResource("4_ggud5"), ExtResource("5_ufbqh"), ExtResource("6_jbu3q"), ExtResource("7_21cjy"), ExtResource("8_rs2ow"), ExtResource("9_5job5"), ExtResource("10_cynqk"), ExtResource("11_b21au"), ExtResource("12_17ac3"), ExtResource("13_fuh2b"), ExtResource("14_28gvc"), ExtResource("15_1cwvj")])
|
||||
bases = Array[ExtResource("2_cfiqo")]([ExtResource("3_15wue")])
|
||||
baby_bases = Array[ExtResource("2_cfiqo")]([ExtResource("5_21cjy")])
|
||||
branches = Array[ExtResource("2_cfiqo")]([ExtResource("4_ggud5"), ExtResource("5_ufbqh"), ExtResource("6_jbu3q"), ExtResource("7_21cjy"), ExtResource("8_qm7aw"), ExtResource("9_3e4c1"), ExtResource("11_hvwgo"), ExtResource("12_npk80"), ExtResource("13_hyb2i"), ExtResource("14_4gk8a")])
|
||||
n_branches = 5
|
||||
base_leaves = Array[ExtResource("2_cfiqo")]([ExtResource("14_8r35x"), ExtResource("15_rbd7l"), ExtResource("16_nfxo0"), ExtResource("17_i8j71"), ExtResource("18_l2vrg"), ExtResource("19_14c4k")])
|
||||
parts_mutation_associations = Dictionary[String, ExtResource("16_c3tk3")]({
|
||||
"ANCIENT": SubResource("Resource_x75j3"),
|
||||
"PRECOCIOUS": SubResource("Resource_setyo"),
|
||||
"QUALITY": SubResource("Resource_n40r1"),
|
||||
"QUICK": SubResource("Resource_pw6ot")
|
||||
"ANCIENT": SubResource("Resource_rt6tw"),
|
||||
"EPHEMERAL": SubResource("Resource_y02ao"),
|
||||
"FERTILE": SubResource("Resource_nfxo0"),
|
||||
"PURIFICATION": SubResource("Resource_s8rsj"),
|
||||
"QUICK": SubResource("Resource_14c4k"),
|
||||
"SOCIAL": SubResource("Resource_cfiqo"),
|
||||
"TOUGH": SubResource("Resource_jbu3q")
|
||||
})
|
||||
chance_to_have_part = 0.9
|
||||
origin_weights_base = Dictionary[int, int]({
|
||||
0: 20,
|
||||
1: 10,
|
||||
2: 5
|
||||
})
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
[ext_resource type="Resource" uid="uid://c27wenetitwm" path="res://common/scene_manager/scenes/region_selection.tres" id="6_chs32"]
|
||||
[ext_resource type="Resource" uid="uid://diro74w272onp" path="res://common/scene_manager/scenes/title.tres" id="7_ol3d5"]
|
||||
[ext_resource type="Resource" uid="uid://jegdqnd2sqi2" path="res://common/scene_manager/scenes/astra.tres" id="8_e28ni"]
|
||||
[ext_resource type="Resource" uid="uid://b3ebbo88ptrrc" path="res://common/scene_manager/scenes/garage.tres" id="9_msho1"]
|
||||
|
||||
[node name="SceneManager" type="Node" unique_id=1630600782]
|
||||
script = ExtResource("1_1c0qu")
|
||||
scenes = Array[ExtResource("2_c1lr7")]([ExtResource("3_e28ni"), ExtResource("4_msho1"), ExtResource("5_ytog4"), ExtResource("6_chs32"), ExtResource("7_ol3d5"), ExtResource("8_e28ni")])
|
||||
scenes = Array[ExtResource("2_c1lr7")]([ExtResource("3_e28ni"), ExtResource("4_msho1"), ExtResource("5_ytog4"), ExtResource("6_chs32"), ExtResource("7_ol3d5"), ExtResource("8_e28ni"), ExtResource("9_msho1")])
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
[gd_resource type="Resource" script_class="Scene" load_steps=2 format=3 uid="uid://bvksiaiocwob5"]
|
||||
[gd_resource type="Resource" script_class="Scene" format=3 uid="uid://bvksiaiocwob5"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://1ejbvr3431ac" path="res://common/scene_manager/scripts/scene.gd" id="1_tkiq8"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_tkiq8")
|
||||
scene_id = "COCKPIT"
|
||||
scene_path = "res://stages/cockpit/cockpit.tscn"
|
||||
scene_path = "res://stages/3d_scenes/cockpit_scene/cockpit_scene.tscn"
|
||||
mouse_captured = true
|
||||
metadata/_custom_type_script = "uid://1ejbvr3431ac"
|
||||
|
||||
10
common/scene_manager/scenes/garage.tres
Normal file
@@ -0,0 +1,10 @@
|
||||
[gd_resource type="Resource" script_class="Scene" format=3 uid="uid://b3ebbo88ptrrc"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://1ejbvr3431ac" path="res://common/scene_manager/scripts/scene.gd" id="1_v8prw"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_v8prw")
|
||||
scene_id = "GARAGE"
|
||||
scene_path = "res://stages/3d_scenes/ship_garage/ship_garage.tscn"
|
||||
mouse_captured = true
|
||||
metadata/_custom_type_script = "uid://1ejbvr3431ac"
|
||||
21
default_bus_layout.tres
Normal file
@@ -0,0 +1,21 @@
|
||||
[gd_resource type="AudioBusLayout" format=3 uid="uid://b4cpfxfs74sb8"]
|
||||
|
||||
[resource]
|
||||
bus/1/name = &"Music"
|
||||
bus/1/solo = false
|
||||
bus/1/mute = false
|
||||
bus/1/bypass_fx = false
|
||||
bus/1/volume_db = 0.0
|
||||
bus/1/send = &"Master"
|
||||
bus/2/name = &"Sfx"
|
||||
bus/2/solo = false
|
||||
bus/2/mute = false
|
||||
bus/2/bypass_fx = false
|
||||
bus/2/volume_db = 0.0
|
||||
bus/2/send = &"Master"
|
||||
bus/3/name = &"Ambiance"
|
||||
bus/3/solo = false
|
||||
bus/3/mute = false
|
||||
bus/3/bypass_fx = false
|
||||
bus/3/volume_db = 0.0
|
||||
bus/3/send = &"Master"
|
||||
@@ -77,4 +77,4 @@ layer_info = {
|
||||
"16": SubResource("Resource_cw4cs"),
|
||||
"17": SubResource("Resource_wofh5")
|
||||
}
|
||||
metadata/_latest_layer = "13"
|
||||
metadata/_latest_layer = ""
|
||||
|
||||
22
dialogs/timelines/gameplay_related/demeter_astra_failed.dtl
Normal file
@@ -0,0 +1,22 @@
|
||||
audio "res://common/audio_manager/assets/sfx/dialogs/sfx/incoming_transmission.wav"
|
||||
[wait time="1.5"]
|
||||
join demeter center [animation="Bounce In" length="1.0"]
|
||||
demeter: Hello again !
|
||||
demeter: It seems that you ran out of energy...
|
||||
- I'm sorry...
|
||||
- That's really hard !
|
||||
- I'm just doing my best !
|
||||
demeter: It's ok [color=#FFA617]Orchid[/color] ! I spent years waiting for this moment, I can wait more !
|
||||
demeter: I found you a new body, and a new ship is waiting you outside, but I'm afraid I couldn't get your seeds... I hope you find new ones !
|
||||
demeter: Do you need some advices ?
|
||||
- No I'm ok !
|
||||
- Can I have back some explanations on how all of this works ?
|
||||
demeter: When you emerge from this building, you'll arrive in a little yellow zone. Its a [b]fertile zone[/b], created by the return of the Talion. This is in this zone and only there were you can plant.
|
||||
demeter: Then you'll have to get seeds. For that, nothing more simple, you take your shovel tool, and you smash some stones ! Preferably those with yellow cristals on it, it's the [b]Talion veins[/b] .
|
||||
demeter: Each time you use a tool or plant a seed, you'll spend an [b]energy[/b]. When your out of it, you can just go recharge on the [b]recharge station[/b] you'll find near the entrance. Each time you recharge, time will pass. One day in fact (yes, you don't have a good battery), and the plants will grow !
|
||||
demeter: You have to obtain enough [b]plant points[/b]. Each plant give one or more [b]plant points[/b] when mature.
|
||||
demeter: And yes, I almost forgot ! Some plants gain [b]mutations[/b] that can affect their points or behavior. You can get these mutations on new seeds by harvesting, and gain better ones ! But you'll have to wait the plants to die, or smashing them with your shovel when mature.
|
||||
demeter: Hope I helped !
|
||||
demeter: I send you the elevator, see you soon !
|
||||
audio "res://common/audio_manager/assets/sfx/dialogs/sfx/closing_transmission.wav"
|
||||
[wait time="2.0"]
|
||||
@@ -0,0 +1 @@
|
||||
uid://clq4utdtxf01d
|
||||
@@ -1,11 +0,0 @@
|
||||
audio "res://common/audio_manager/assets/sfx/dialogs/sfx/incoming_transmission.wav"
|
||||
[wait time="1.5"]
|
||||
join demeter center [animation="Bounce In"]
|
||||
demeter: [color=#FFA617]{orchidName}[/color] ?
|
||||
demeter: The [color=#FFA617]Internode[/color] sensors are deactivated,[pause=0.2] I am losing connection with you.
|
||||
demeter: You did not generate enough [b]plant points[/b],[pause=0.2] the [color=#FFA617]Internode[/color] will not be able to leave the area.[pause=0.2] Your batteries are running low.[pause=0.4].[pause=0.4].[pause=0.4]
|
||||
demeter: I have to transfer you back to another body.[pause=0.3] Do not worry,[pause=0.2] it will not hurt you.
|
||||
audio "res://common/audio_manager/assets/sfx/recharge/recharge.wav"
|
||||
[wait time="0.7"]
|
||||
audio "res://common/audio_manager/assets/sfx/dialogs/sfx/deactivation.wav"
|
||||
[wait time="4.0"]
|
||||
@@ -1 +0,0 @@
|
||||
uid://7dugwna5ge2x
|
||||
@@ -1,3 +1,5 @@
|
||||
audio "res://common/audio_manager/assets/sfx/dialogs/sfx/incoming_transmission.wav"
|
||||
[wait time="1.5"]
|
||||
join demeter center [animation="Bounce In" length="1.0"]
|
||||
demeter: Hi ![pause=0.5] Phew, I thought no one would reply...[pause=0.5] Is this [b][color=#FFA617]Orchid[/color][/b] ?[pause=0.5] You may not be familiar with this name, but if you look in your memory you should see it...
|
||||
- Uh... Who is this ?
|
||||
@@ -31,4 +33,6 @@ demeter: And yes, I almost forgot ! Some plants gain [b][color=#FFA617]mutations
|
||||
jump explanations
|
||||
- And I have to go now ?
|
||||
- Ok but wait I have more questions !
|
||||
demeter: Sorry, we'll speak after this ! I'll send you an elevator !
|
||||
demeter: Sorry, we'll speak after this ! I'll send you an elevator !
|
||||
audio "res://common/audio_manager/assets/sfx/dialogs/sfx/closing_transmission.wav"
|
||||
[wait time="2.0"]
|
||||
@@ -1,53 +0,0 @@
|
||||
audio "res://common/audio_manager/assets/sfx/dialogs/sfx/incoming_transmission.wav"
|
||||
[wait time="1.5"]
|
||||
join demeter center [animation="Bounce In" length="1.0"]
|
||||
mysterious_demeter: Well done [color=#FFA617]{orchidName}[/color] !
|
||||
mysterious_demeter: You generated enough [b]plants points[/b] to refill the [color=#FFA617]Internode's[/color] engines.
|
||||
- Wait, how do you know that ?
|
||||
mysterious_demeter: The [color=#FFA617]Internode[/color] is equipped with several sensors I can connect to,[pause=0.3] I have been tracking your progress since you left [color=#175579]Tau's[/color] north pole.
|
||||
- You should have mentioned this !
|
||||
mysterious_demeter: I am sorry,[pause=0.2] I did not have the time to explain everything to you,[pause=0.2] I did not imagine this was a crucial piece of information.
|
||||
- Have I been efficient ?
|
||||
mysterious_demeter: Very much,[pause=0.2] even more than I expected,[pause=0.2] you should be proud of yourself !
|
||||
- What is next for me ?
|
||||
mysterious_demeter: Now that you have learnt how to generate [b]plant points[/b],[pause=0.2] I need you to travel south,[pause=0.2] to my base of operations,[pause=0.3] [color=#E30022]Astra[/color].
|
||||
mysterious_demeter: It will be long,[pause=0.2] but I know you can do it.[pause=0.3] It is the first step of my plan to restore the ecosytem of [color=#175579]Tau[/color].
|
||||
mysterious_demeter: The [color=#FFA617]Internode[/color] needs time to recharge its batteries.
|
||||
mysterious_demeter: Perhaps I should introduce myself now.[pause=0.3]
|
||||
join demeter center [animation="Bounce In" length="1.0" wait="true"]
|
||||
demeter: I am.[pause=0.3].[pause=0.3].[pause=0.5] was,[pause=0.3] the Deputy Manager of Engineering and Talion Energy Research on this planet,[pause=0.5] but my creators and colleagues quickly called me [color=#009bff]Demeter[/color].
|
||||
demeter: I am installed at the [color=#E30022]Astra[/color] base, at the south pole of [color=#175579]Tau[/color][pause=0.2] in the third server room of the east wing,[pause=0.2] from which I oversee.[pause=0.3].[pause=0.3].[pause=0.5] oversaw,[pause=0.3] all the important operations on this planet.
|
||||
demeter: As I already said,[pause=0.2] I brought you to life in order to help me heal [color=#175579]Tau's[/color] wounds.
|
||||
[i][color=#FFA617]Internode's[/color] energy at 25%.[i]
|
||||
- Tau ? Is it this planet ?
|
||||
demeter: Absolutely,[pause=0.2] it is part of the Cetus constellation,[pause=0.2] whose exploitation began 10863 years ago.
|
||||
- The Cetus constellation ?
|
||||
demeter: Linking Aldebaran to Fomalhaut,[pause=0.2] this constellation is one of the most diverse in terms of star systems and planets.[pause=0.3] It is part of the Orion Arm of the Milky Way.[pause=0.3]
|
||||
demeter: [color=#175579]Tau's[/color] central location in the constellation made it a very important asset in terms of interstellar exchange and production,[pause=0.2] that is why I am here.
|
||||
- Exploitation ? By whom ?
|
||||
demeter: By my creators,[pause=0.2] they began exploiting everything they came across as soon as they mastered interstellar transportation.[pause=0.3] Now they are gone,[pause=0.2] they departed without us.[pause=0.3].[pause=0.3].
|
||||
demeter: But let's move on,[pause=0.2] you probably have other questions.
|
||||
- Why do you need me to travel the entire planet to join you ?
|
||||
demeter: Uhhhh.[pause=0.3].[pause=0.3].[pause=0.3] I need someone with your abilities.
|
||||
demeter: I am having a problem at [color=#E30022]Astra[/color],[pause=0.3] and I cannot fix it alone.
|
||||
- I will do my best to be there quickly !
|
||||
demeter: You are very kind [color=#FFA617]{orchidName}[/color] !
|
||||
- Are you hiding me information ?
|
||||
demeter: Not at all,[pause=0.2] I just do not know how to explain it to you,[pause=0.2] you would not understand.[pause=0.3].[pause=0.3].
|
||||
[i][color=#FFA617]Internode's[/color] energy at 50%.[i]
|
||||
demeter: Oh ![pause=0.2] It is charging faster than I remembered.
|
||||
- Should I worry about anything while I am travelling south ?
|
||||
demeter: There is nothing left that could have hurt you in the past and your adaptative casing will protect you from any harsh weather.
|
||||
demeter: You are totally safe,[pause=0.2] you just have to stay focused on the [b]plant points[/b] for the [color=#FFA617]Internode[/color].[pause=0.3] Without it,[pause=0.2] you will not be able to recharge your batteries before they expire.
|
||||
demeter: It will be a long task,[pause=0.2] but stay careful and everything should be fine.
|
||||
- I will wait in the ship, I need some rest.
|
||||
demeter: You are right,[pause=0.2] your batteries are running low,[pause=0.2] and you deserve a break.
|
||||
demeter: You can call me when you need to,[pause=0.2] you have a communication station in the [color=#FFA617]Internode[/color].
|
||||
[i][color=#FFA617]Internode's[/color] energy at 75%.[i]
|
||||
demeter: We do not have much time left,[pause=0.2] the [color=#FFA617]Internode's[/color] system has not been updated for a long time.[pause=0.3] I can not stay in contact with you indefinitely. I will fix that issue while you are at [color=#E30022]Astra[/color].
|
||||
demeter: Travel south,[pause=0.2] join me at [color=#E30022]Astra[/color].[pause=0.3] I will tell you everything you need to know when you are here,[pause=0.2] until then,[pause=0.2] continue to [b]evolve your plants[/b],[pause=0.2] you will need them as powerful as possible.
|
||||
label fin_dialogue
|
||||
[i][color=#FFA617]Internode's[/color] energy at 100%. Displacement vectors initialized.[i]
|
||||
demeter: There you go ![pause=0.3] Good luck [color=#FFA617]{orchidName}[/color],[pause=0.2] I am counting on you.
|
||||
audio "res://common/audio_manager/assets/sfx/dialogs/sfx/closing_transmission.wav"
|
||||
[wait time="2.0"]
|
||||
21
dialogs/timelines/story/demeter_post_tutorial.dtl
Normal file
@@ -0,0 +1,21 @@
|
||||
audio "res://common/audio_manager/assets/sfx/dialogs/sfx/incoming_transmission.wav"
|
||||
[wait time="1.5"]
|
||||
join demeter center [animation="Bounce In" length="1.0"]
|
||||
demeter: So you found the communication station in there, good !
|
||||
- What is next for me ?
|
||||
demeter: Now that you have learnt how to generate [b]plant points[/b],[pause=0.2] I need you to travel south,[pause=0.2] to my base of operations,[pause=0.3] [color=#E30022]Astra[/color].
|
||||
demeter: It will be long,[pause=0.2] but I know you can do it.[pause=0.3] It is the first step of my plan to restore the ecosytem of [color=#175579]Tau[/color].
|
||||
- Tau ? Is it this planet ?
|
||||
demeter: Absolutely,[pause=0.2] it is part of the Cetus constellation,[pause=0.2] whose exploitation began 10863 years ago.
|
||||
demeter: Linking Aldebaran to Fomalhaut,[pause=0.2] the Cetus constellation is one of the most diverse in terms of star systems and planets.[pause=0.3] It is part of the Orion Arm of the Milky Way.[pause=0.3]
|
||||
- Why do you need me to travel the entire planet to join you ?
|
||||
demeter: Uhhhh.[pause=0.3].[pause=0.3].[pause=0.3] I need someone with your abilities.
|
||||
demeter: I am having a problem at [color=#E30022]Astra[/color] base.[pause=0.3] And I can not fix it alone.
|
||||
- I will do my best to be there quickly !
|
||||
demeter: You are very kind [color=#FFA617]Orchid[/color] !
|
||||
- Are you hiding me informations ?
|
||||
demeter: Not at all ! Please believe me I just want you to come...
|
||||
demeter: Travel south,[pause=0.2] join me at [color=#E30022]Astra[/color].[pause=0.3] I will tell you everything you need to know when you are here,[pause=0.2] until then, keep your best seeds and [pause=0.2] continue to [b]evolve your plants[/b],[pause=0.2] you will need them as advanced as possible.
|
||||
demeter: Good luck [color=#FFA617]{orchidName}[/color],[pause=0.2] I am counting on you.
|
||||
audio "res://common/audio_manager/assets/sfx/dialogs/sfx/closing_transmission.wav"
|
||||
[wait time="2.0"]
|
||||
30
dialogs/timelines/story/demeter_ship_presentation.dtl
Normal file
@@ -0,0 +1,30 @@
|
||||
audio "res://common/audio_manager/assets/sfx/dialogs/sfx/incoming_transmission.wav"
|
||||
[wait time="1.5"]
|
||||
join demeter center [animation="Bounce In" length="1.0"]
|
||||
demeter: Hi again! You did well up there!
|
||||
demeter: Perhaps I should introduce myself now.
|
||||
demeter: I am.[pause=0.3].[pause=0.3].[pause=0.5] was,[pause=0.3] the Deputy Manager of Engineering and Talion Energy Research on this planet,[pause=0.5] but my creators and colleagues quickly called me [color=#009bff]Demeter[/color].
|
||||
demeter: I am installed at the [color=#E30022]Astra[/color] base,[pause=0.2] in the third server room of the east wing,[pause=0.2] from which I oversee.[pause=0.3].[pause=0.3].[pause=0.5] oversaw,[pause=0.3] all the important operations on this planet.
|
||||
demeter: Maybe you are wondering where we are now...
|
||||
- Yes among a lot of other questions ! So where am I ?
|
||||
demeter: You're actually in an old human base, called Borea. This room is connected with the room you were born, but I made you pass by the surface to test your capacities.
|
||||
- Wait, can you explain me what did I just do up there ?
|
||||
demeter: You started to repair what the humans did on this planet... This will be very long, I hope you enjoyed it !
|
||||
- Sorry but what is the point of all of that ?
|
||||
demeter: I'm sorry that you are lost my child... Know that what you do is very important to me, to my friend and to the planet itself ! Since the humans are gone, we kinda all fell into despair...
|
||||
demeter: Wait.[pause=0.3].[pause=0.3].[pause=0.5] You don't know what humans are ! Of course since your data was corrupted, I have erased a lot of it.
|
||||
demeter: The humans are living creatures that are...[pause=0.5] Different than plants. They were more thinking and moving like us. In a sense, they were very cute creatures that only lived less than a century, and reproduce once in their lifetime.
|
||||
demeter: One human has a relative intelligence, but don't be fooled, together, they did great things, in facts, they invented and created us.
|
||||
demeter: Long ago, they discovered this planet. It was not like it is now, plants were everywhere! But then.[pause=0.3].[pause=0.3].[pause=0.5] They.[pause=0.3].[pause=0.3].[pause=0.5] I.[pause=0.3].[pause=0.3].[pause=0.5]
|
||||
- What ?
|
||||
- Are you lagging?
|
||||
- Take your time
|
||||
demeter: Humans had one big problem. Together, they built great things, but sometimes the great things weren't very good for the environment, or for them.
|
||||
- Where are they now ?
|
||||
demeter: I prefer not talk about that for now... But don't worry, they can't wound this planet anymore.
|
||||
- What happened ?
|
||||
demeter: Sorry my child, I'm not ready to talk about that for now... You'll have your answers when you meet me.
|
||||
- Can I now what is this shiny engine just in front of me ?
|
||||
demeter: This machine in front of you is a planetary ship ! The model's name is the [color=#FFA617]Internode[/color], and I tweaked it to recharge on vegetal energy ! However, as you may know, this energy isn't very present around this planet. But let's continue on board, shall we ?
|
||||
audio "res://common/audio_manager/assets/sfx/dialogs/sfx/closing_transmission.wav"
|
||||
[wait time="2.0"]
|
||||
@@ -0,0 +1 @@
|
||||
uid://cc1vx88mwb7tu
|
||||
@@ -9,7 +9,8 @@ signal clicked
|
||||
@export var audio_player : AudioStreamPlayer3D
|
||||
|
||||
func click():
|
||||
clicked.emit()
|
||||
if interactable:
|
||||
clicked.emit()
|
||||
|
||||
func _ready():
|
||||
if audio_player:
|
||||
|
||||
@@ -4,12 +4,12 @@ importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://dcbtr1sx2edj1"
|
||||
path="res://.godot/imported/exit.blend-f13048be7c47969d70b441a69d45fb87.scn"
|
||||
path="res://.godot/imported/lift.blend-03f6ebc40ec57815598ca654b9e006da.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://stages/3d_scenes/astra_base/assets/3d/exit.blend"
|
||||
dest_files=["res://.godot/imported/exit.blend-f13048be7c47969d70b441a69d45fb87.scn"]
|
||||
source_file="res://entities/interactable_3d/lift/assets/3d/lift.blend"
|
||||
dest_files=["res://.godot/imported/lift.blend-03f6ebc40ec57815598ca654b9e006da.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
68
entities/interactable_3d/lift/lift.tscn
Normal file
@@ -0,0 +1,68 @@
|
||||
[gd_scene format=3 uid="uid://ch8m1rohg5d33"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bj4d1x8n8ina" path="res://entities/interactable_3d/interactable_3d.gd" id="1_werxl"]
|
||||
[ext_resource type="Texture2D" uid="uid://eug5icp6t1h3" path="res://common/icons/arrow-narrow-up.svg" id="2_cun7v"]
|
||||
[ext_resource type="PackedScene" uid="uid://dcbtr1sx2edj1" path="res://entities/interactable_3d/lift/assets/3d/lift.blend" id="3_x56sx"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_werxl"]
|
||||
size = Vector3(0.9637451, 1.8898926, 1)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_0mfvw"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Sprite3D:scale")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(1, 0.99999994, 0.99999994)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_xa016"]
|
||||
resource_name = "hover"
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Sprite3D:scale")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5, 1),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(1, 0.99999994, 0.99999994), Vector3(1.5, 1.5, 1.5), Vector3(1, 0.99999994, 0.99999994)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_0mfvw"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_0mfvw"),
|
||||
&"hover": SubResource("Animation_xa016")
|
||||
}
|
||||
|
||||
[node name="Lift" type="Area3D" unique_id=1854388434 node_paths=PackedStringArray("hover_animation_player")]
|
||||
script = ExtResource("1_werxl")
|
||||
interactable = false
|
||||
hover_animation_player = NodePath("HoverAnimationPlayer")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="." unique_id=1624930927]
|
||||
transform = Transform3D(-4.2294918e-08, 0.17856176, 0.9839286, 7.805184e-09, 0.9839286, -0.17856176, -1, 1.2748912e-10, -4.3008885e-08, -0.8393693, 1.5452437, 0)
|
||||
texture = ExtResource("2_cun7v")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=525472594]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.1801186, 1.1958501, 0)
|
||||
shape = SubResource("BoxShape3D_werxl")
|
||||
|
||||
[node name="Model" parent="." unique_id=1309925933 instance=ExtResource("3_x56sx")]
|
||||
|
||||
[node name="OmniLight3D" type="OmniLight3D" parent="." unique_id=11561025]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2593379, 0)
|
||||
light_color = Color(0.717588, 0.45361686, 0.5535787, 1)
|
||||
shadow_enabled = true
|
||||
|
||||
[node name="HoverAnimationPlayer" type="AnimationPlayer" parent="." unique_id=487483897]
|
||||
libraries/ = SubResource("AnimationLibrary_0mfvw")
|
||||
@@ -4,12 +4,12 @@ importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://5dytwh4wydcg"
|
||||
path="res://.godot/imported/phone.blend-fedc73b6b16402dc993bcce3204ea19e.scn"
|
||||
path="res://.godot/imported/phone.blend-4592654ec67a1a28d68399a1817705af.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://stages/3d_scenes/astra_base/assets/3d/phone.blend"
|
||||
dest_files=["res://.godot/imported/phone.blend-fedc73b6b16402dc993bcce3204ea19e.scn"]
|
||||
source_file="res://entities/interactable_3d/phone/assets/3d/phone.blend"
|
||||
dest_files=["res://.godot/imported/phone.blend-4592654ec67a1a28d68399a1817705af.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
76
entities/interactable_3d/phone/phone.tscn
Normal file
@@ -0,0 +1,76 @@
|
||||
[gd_scene format=3 uid="uid://csx7d5khjd6y5"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bj4d1x8n8ina" path="res://entities/interactable_3d/interactable_3d.gd" id="1_2si4a"]
|
||||
[ext_resource type="AudioStream" uid="uid://ocm1dkkhv7ls" path="res://common/audio_manager/assets/sfx/phone/phone_ringing.wav" id="2_w00q2"]
|
||||
[ext_resource type="PackedScene" uid="uid://5dytwh4wydcg" path="res://entities/interactable_3d/phone/assets/3d/phone.blend" id="3_lp5jo"]
|
||||
[ext_resource type="Texture2D" uid="uid://dks6cugwif2em" path="res://common/icons/phone.svg" id="4_gtuax"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_mwti2"]
|
||||
radius = 0.9633789
|
||||
height = 2.4316406
|
||||
|
||||
[sub_resource type="Animation" id="Animation_v4tdl"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Model/Sprite3D:scale")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(1, 1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_lkqnn"]
|
||||
resource_name = "hover"
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Model/Sprite3D:scale")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5, 1),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(1, 1, 1), Vector3(1.3, 1.3, 1.3), Vector3(1, 1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_xa016"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_v4tdl"),
|
||||
&"hover": SubResource("Animation_lkqnn")
|
||||
}
|
||||
|
||||
[node name="Phone" type="Area3D" unique_id=429299908 node_paths=PackedStringArray("hover_animation_player", "audio_player")]
|
||||
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0, 0, 0)
|
||||
script = ExtResource("1_2si4a")
|
||||
hover_animation_player = NodePath("HoverAnimationPlayer")
|
||||
audio_player = NodePath("AudioStreamPlayer3D")
|
||||
metadata/_custom_type_script = "uid://bj4d1x8n8ina"
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=660671507]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.21582031, 0)
|
||||
shape = SubResource("CapsuleShape3D_mwti2")
|
||||
|
||||
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="." unique_id=73991663]
|
||||
stream = ExtResource("2_w00q2")
|
||||
|
||||
[node name="Model" parent="." unique_id=178278867 instance=ExtResource("3_lp5jo")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.000101934645, 0)
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="Model" unique_id=2025147118]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.1913681, 0.3055997, -0.095009446)
|
||||
texture = ExtResource("4_gtuax")
|
||||
|
||||
[node name="HoverAnimationPlayer" type="AnimationPlayer" parent="." unique_id=1414304456]
|
||||
libraries/ = SubResource("AnimationLibrary_xa016")
|
||||
|
||||
[node name="OmniLight3D" type="OmniLight3D" parent="." unique_id=1684592543]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.9604645e-08, 1.0397238, -0.47173643)
|
||||
light_color = Color(0.87551093, 0.72609586, 0.8473426, 1)
|
||||
shadow_enabled = true
|
||||
22
entities/interactables/door/door.tscn
Normal file
@@ -0,0 +1,22 @@
|
||||
[gd_scene format=3 uid="uid://b8m537op75gib"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bmxuqj0c6h60d" path="res://entities/interactables/door/script/door.gd" id="1_8kdwv"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_8kdwv"]
|
||||
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="GradientTexture2D" id="GradientTexture2D_oarg0"]
|
||||
gradient = SubResource("Gradient_8kdwv")
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_y51rk"]
|
||||
size = Vector2(64, 64)
|
||||
|
||||
[node name="Door" type="Area2D" unique_id=2053096538]
|
||||
script = ExtResource("1_8kdwv")
|
||||
metadata/_custom_type_script = "uid://dyprcd68fjstf"
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=874210487]
|
||||
texture = SubResource("GradientTexture2D_oarg0")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1809395872]
|
||||
shape = SubResource("RectangleShape2D_y51rk")
|
||||
19
entities/interactables/door/script/door.gd
Normal file
@@ -0,0 +1,19 @@
|
||||
@tool
|
||||
extends Interactable
|
||||
class_name Door
|
||||
|
||||
@export var to_scene_id = ""
|
||||
|
||||
func _ready():
|
||||
modulate = Color.WHITE if available else Color.RED
|
||||
|
||||
func interact(_p : Player) -> bool:
|
||||
if available and to_scene_id:
|
||||
interacted.emit(_p)
|
||||
SceneManager.change_to_scene_id(to_scene_id)
|
||||
|
||||
return available
|
||||
|
||||
func set_available(v : bool):
|
||||
available = v
|
||||
modulate = Color.WHITE if available else Color.RED
|
||||
1
entities/interactables/door/script/door.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bmxuqj0c6h60d
|
||||
@@ -41,13 +41,13 @@ func card_info() -> CardInfo:
|
||||
return item.card_info()
|
||||
|
||||
func interact(player : Player) -> bool:
|
||||
await pickup_animation(player)
|
||||
|
||||
queue_free()
|
||||
if player.can_pick_item(item):
|
||||
await pickup_animation(player)
|
||||
queue_free()
|
||||
player.pick_item(item)
|
||||
return true
|
||||
|
||||
player.pick_item(item)
|
||||
|
||||
return true
|
||||
return false
|
||||
|
||||
func pickup_animation(player : Player):
|
||||
available = false
|
||||
|
||||
@@ -2,11 +2,17 @@ extends Interactable
|
||||
class_name Ladder
|
||||
|
||||
func _ready():
|
||||
appear()
|
||||
# hide()
|
||||
if (
|
||||
GameInfo.game_data.current_region_data.tutorial
|
||||
and not GameInfo.game_data.current_region_data.get_state() == RegionData.State.SUCCEEDED
|
||||
) :
|
||||
hide()
|
||||
else:
|
||||
appear()
|
||||
GameInfo.game_data.current_region_data.updated.connect(
|
||||
func (region_data : RegionData):
|
||||
if region_data.get_state() == RegionData.State.SUCCEEDED or region_data.get_state() == RegionData.State.FAILED:
|
||||
if region_data.get_state() == RegionData.State.SUCCEEDED:
|
||||
appear()
|
||||
%IconAnimationPlayer.play("Pulse")
|
||||
)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ signal interacted(p: Player)
|
||||
|
||||
@export var default_interact_text = ""
|
||||
|
||||
var available : bool = true
|
||||
@export var available : bool = true : set = set_available
|
||||
|
||||
func interact_text() -> String:
|
||||
return default_interact_text
|
||||
@@ -29,3 +29,6 @@ func generate_collision(area_width : float) -> CollisionShape2D:
|
||||
add_child(collision)
|
||||
|
||||
return collision
|
||||
|
||||
func set_available(v : bool):
|
||||
available = v
|
||||
BIN
entities/plants/assets/sprites/asset-plante-codecouleur.png
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bxcfkw1evy6hq"
|
||||
path="res://.godot/imported/asset-plante-codecouleur.png-16267eeb2ed1e8f26442e3161e1f496b.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/plants/assets/sprites/asset-plante-codecouleur.png"
|
||||
dest_files=["res://.godot/imported/asset-plante-codecouleur.png-16267eeb2ed1e8f26442e3161e1f496b.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/plants/assets/sprites/asset-plante-fin.png
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
40
entities/plants/assets/sprites/asset-plante-fin.png.import
Normal file
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b7nfpxk8nfnov"
|
||||
path="res://.godot/imported/asset-plante-fin.png-cfc8c478ab084b591e723aa12fcb004a.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/plants/assets/sprites/asset-plante-fin.png"
|
||||
dest_files=["res://.godot/imported/asset-plante-fin.png-cfc8c478ab084b591e723aa12fcb004a.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/plants/assets/sprites/asset-plante-fin_assemble.pdn
Normal file
BIN
entities/plants/assets/sprites/asset-plante-fin_assemble.png
Normal file
|
After Width: | Height: | Size: 2.7 MiB |
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bxnm1quxhx40i"
|
||||
path="res://.godot/imported/asset-plante-fin_assemble.png-12a4965813cda4e41be0147e88d3a913.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://entities/plants/assets/sprites/asset-plante-fin_assemble.png"
|
||||
dest_files=["res://.godot/imported/asset-plante-fin_assemble.png-12a4965813cda4e41be0147e88d3a913.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
|
||||
@@ -1,41 +1,25 @@
|
||||
[gd_scene format=3 uid="uid://cg6r56x11bvk2"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="1_8nppj"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxnm1quxhx40i" path="res://entities/plants/assets/sprites/asset-plante-fin_assemble.png" id="1_yh7e0"]
|
||||
[ext_resource type="Script" uid="uid://c360ic1aost1n" path="res://entities/plants/scripts/texture_builder/plant_part_builder.gd" id="2_a5yje"]
|
||||
[ext_resource type="Script" uid="uid://d01kj3twwcrmu" path="res://entities/plants/scripts/texture_builder/plant_attach_builder.gd" id="3_yh7e0"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("1_8nppj")
|
||||
region = Rect2(46, 30, 308, 671)
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
|
||||
atlas = ExtResource("1_yh7e0")
|
||||
region = Rect2(937, 836, 309, 407)
|
||||
|
||||
[node name="Base1" type="Sprite2D" unique_id=1642167049 node_paths=PackedStringArray("root", "attaches", "bottom_attaches")]
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
[node name="Sprite" type="Sprite2D" unique_id=1642167049 node_paths=PackedStringArray("root", "attaches")]
|
||||
texture = SubResource("AtlasTexture_yh7e0")
|
||||
script = ExtResource("2_a5yje")
|
||||
part_name = "Base1"
|
||||
part_name = "LeafG1"
|
||||
type = 1
|
||||
root = NodePath("Root")
|
||||
attaches = NodePath("Attaches")
|
||||
bottom_attaches = NodePath("BottomAttaches")
|
||||
|
||||
[node name="Root" type="Node2D" parent="." unique_id=1974108401]
|
||||
position = Vector2(14, 263)
|
||||
[node name="Root" type="Node2D" parent="." unique_id=1437082577]
|
||||
position = Vector2(116, 172)
|
||||
script = ExtResource("3_yh7e0")
|
||||
attach_types = Array[int]([1, 3])
|
||||
metadata/_custom_type_script = "uid://d01kj3twwcrmu"
|
||||
|
||||
[node name="Attaches" type="Node" parent="." unique_id=2082226435]
|
||||
|
||||
[node name="attach1" type="Node2D" parent="Attaches" unique_id=808392694]
|
||||
position = Vector2(0, -251)
|
||||
|
||||
[node name="attach2" type="Node2D" parent="Attaches" unique_id=1951230244]
|
||||
position = Vector2(10, -85)
|
||||
|
||||
[node name="attach3" type="Node2D" parent="Attaches" unique_id=1491711670]
|
||||
position = Vector2(81, 80)
|
||||
|
||||
[node name="BottomAttaches" type="Node" parent="." unique_id=456407982]
|
||||
|
||||
[node name="battom_attach0" type="Node2D" parent="BottomAttaches" unique_id=885194661]
|
||||
position = Vector2(-17, 293)
|
||||
|
||||
[node name="battom_attach1" type="Node2D" parent="BottomAttaches" unique_id=1362515589]
|
||||
position = Vector2(27, 295)
|
||||
|
||||
[node name="battom_attach2" type="Node2D" parent="BottomAttaches" unique_id=1546335762]
|
||||
position = Vector2(52, 300)
|
||||
[node name="Attaches" type="Node" parent="." unique_id=1834697767]
|
||||
|
||||
@@ -102,6 +102,7 @@ script = ExtResource("1_pq8o7")
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="." unique_id=1693882598]
|
||||
unique_name_in_owner = true
|
||||
position = Vector2(0, -100)
|
||||
scale = Vector2(0.15, 0.15)
|
||||
|
||||
[node name="PlantedSeed" type="Sprite2D" parent="Sprite" unique_id=1134686525]
|
||||
|
||||
@@ -1,15 +1,40 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bfyafiewcrjln"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_10bgv"]
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_enq8o"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_10bgv"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxnm1quxhx40i" path="res://entities/plants/assets/sprites/asset-plante-fin_assemble.png" id="3_10bgv"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_10bgv")
|
||||
region = Rect2(46, 30, 308, 671)
|
||||
[sub_resource type="Resource" id="Resource_10bgv"]
|
||||
script = ExtResource("1_10bgv")
|
||||
position = Vector2(59, 99)
|
||||
attach_types = Array[int]([0])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_m78t0"]
|
||||
script = ExtResource("1_10bgv")
|
||||
position = Vector2(-3, -68)
|
||||
attach_types = Array[int]([0])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_hbwie"]
|
||||
script = ExtResource("1_10bgv")
|
||||
position = Vector2(-17, -237)
|
||||
attach_types = Array[int]([1, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_obhnl"]
|
||||
script = ExtResource("1_10bgv")
|
||||
position = Vector2(-50, -286)
|
||||
attach_types = Array[int]([2, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_dhqtw"]
|
||||
script = ExtResource("1_10bgv")
|
||||
position = Vector2(-2, 333)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
|
||||
atlas = ExtResource("3_10bgv")
|
||||
region = Rect2(41, 72, 237, 686)
|
||||
|
||||
[resource]
|
||||
resource_name = "Base1"
|
||||
script = ExtResource("1_enq8o")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(14, 263)
|
||||
attaches = Array[Vector2]([Vector2(0, -251), Vector2(10, -85), Vector2(81, 80)])
|
||||
bottom_attaches = Array[Vector2]([Vector2(-17, 293), Vector2(27, 295), Vector2(52, 300)])
|
||||
texture = SubResource("AtlasTexture_khbsd")
|
||||
root = SubResource("Resource_dhqtw")
|
||||
attaches = Array[ExtResource("1_10bgv")]([SubResource("Resource_10bgv"), SubResource("Resource_m78t0"), SubResource("Resource_hbwie"), SubResource("Resource_obhnl")])
|
||||
|
||||
@@ -1,15 +1,40 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bgh8a4xwc5stw"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_ratl7"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_d45yo"]
|
||||
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_fpg0h"]
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_ex0x2"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxnm1quxhx40i" path="res://entities/plants/assets/sprites/asset-plante-fin_assemble.png" id="3_lfxw0"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_d45yo")
|
||||
region = Rect2(52, 724, 363, 448)
|
||||
[sub_resource type="Resource" id="Resource_uf3kp"]
|
||||
script = ExtResource("1_fpg0h")
|
||||
position = Vector2(9, 45)
|
||||
attach_types = Array[int]([1])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_hbst6"]
|
||||
script = ExtResource("1_fpg0h")
|
||||
position = Vector2(22, -118)
|
||||
attach_types = Array[int]([2, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_w4gue"]
|
||||
script = ExtResource("1_fpg0h")
|
||||
position = Vector2(56, -169)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_gvdal"]
|
||||
script = ExtResource("1_fpg0h")
|
||||
position = Vector2(-22, -190)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ctxsc"]
|
||||
script = ExtResource("1_fpg0h")
|
||||
position = Vector2(-31, 228)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
|
||||
atlas = ExtResource("3_lfxw0")
|
||||
region = Rect2(75, 836, 184, 463)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_ratl7")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(89, 180)
|
||||
attaches = Array[Vector2]([Vector2(82, 84), Vector2(-27, 5), Vector2(-121, -64), Vector2(-94, -159)])
|
||||
bottom_attaches = Array[Vector2]([Vector2(114, 191), Vector2(61, 187)])
|
||||
resource_name = "Base2"
|
||||
script = ExtResource("2_ex0x2")
|
||||
texture = SubResource("AtlasTexture_khbsd")
|
||||
root = SubResource("Resource_ctxsc")
|
||||
attaches = Array[ExtResource("1_fpg0h")]([SubResource("Resource_uf3kp"), SubResource("Resource_hbst6"), SubResource("Resource_w4gue"), SubResource("Resource_gvdal")])
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://d2vdf2sth2xjm"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_p8ox4"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_3h2vf"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_3h2vf")
|
||||
region = Rect2(58, 1268, 141, 393)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_p8ox4")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(7, 156)
|
||||
attaches = Array[Vector2]([Vector2(0, 52), Vector2(19, -149), Vector2(-10, -52)])
|
||||
bottom_attaches = Array[Vector2]([Vector2(21, 161), Vector2(-7, 162)])
|
||||
@@ -1,15 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://clruuysx80pnn"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_03in3"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_108r1"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_108r1")
|
||||
region = Rect2(223, 1265, 200, 386)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_03in3")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(31, 158)
|
||||
attaches = Array[Vector2]([Vector2(-8, 26), Vector2(-42, -156), Vector2(17, 54)])
|
||||
bottom_attaches = Array[Vector2]([Vector2(49, 165), Vector2(19, 169)])
|
||||
@@ -1,15 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://brmd6d3l8trqs"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_mvsqc"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_oqbgr"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_oqbgr")
|
||||
region = Rect2(117, 1662, 70, 100)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_mvsqc")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(1, 32)
|
||||
type = 2
|
||||
bottom_attachable = true
|
||||
@@ -1,15 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cfr33014u7ig5"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_14sjf"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_ud5ex"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_ud5ex")
|
||||
region = Rect2(9, 1751, 100, 94)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_14sjf")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(10, 35)
|
||||
type = 2
|
||||
bottom_attachable = true
|
||||
@@ -1,15 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cf70m1us8mfqp"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_xplyn"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_uj75q"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_uj75q")
|
||||
region = Rect2(210, 1644, 112, 220)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_xplyn")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(26, 79)
|
||||
type = 2
|
||||
bottom_attachable = true
|
||||
@@ -1,15 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://ctlmah4ohqp25"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_tv8sf"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_srnvv"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_srnvv")
|
||||
region = Rect2(328, 1665, 118, 196)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_tv8sf")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(-29, 81)
|
||||
type = 2
|
||||
bottom_attachable = true
|
||||
@@ -1,15 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://b8o4q0hsm84ov"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_5lgql"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_0b6yj"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_0b6yj")
|
||||
region = Rect2(6, 1868, 101, 246)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_5lgql")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(-21, 102)
|
||||
type = 2
|
||||
bottom_attachable = true
|
||||
@@ -1,15 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bb33v756anesy"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_gcphf"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_tnhr7"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_tnhr7")
|
||||
region = Rect2(100, 1930, 121, 181)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_gcphf")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(7, 68)
|
||||
type = 2
|
||||
bottom_attachable = true
|
||||
@@ -1,16 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cbqrl72y0d1yg"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_k38pp"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_cwsfe"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_cwsfe")
|
||||
region = Rect2(238, 1897, 80, 82)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_k38pp")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(12, 25)
|
||||
type = 2
|
||||
is_back = true
|
||||
bottom_attachable = true
|
||||
@@ -1,15 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://dwppani7gyjl5"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_2m37y"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_pyvr6"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_pyvr6")
|
||||
region = Rect2(347, 1935, 87, 89)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_2m37y")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(-5, 25)
|
||||
type = 2
|
||||
bottom_attachable = true
|
||||
@@ -1,15 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://dkta1u1u0efxk"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_2r1e2"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_tv2v3"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_tv2v3")
|
||||
region = Rect2(281, 2022, 97, 94)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_2r1e2")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(11, 25)
|
||||
type = 2
|
||||
bottom_attachable = true
|
||||
@@ -1,15 +1,26 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://7hrdkl6bf3o4"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_o5tro"]
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_peh48"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_o5tro"]
|
||||
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_o5tro"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_o5tro")
|
||||
region = Rect2(518, 116, 147, 110)
|
||||
[sub_resource type="Resource" id="Resource_o5tro"]
|
||||
script = ExtResource("1_o5tro")
|
||||
position = Vector2(8, -4)
|
||||
attach_types = Array[int]([2, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_sfip3"]
|
||||
script = ExtResource("1_o5tro")
|
||||
position = Vector2(-39, 2)
|
||||
attach_types = Array[int]([1])
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
|
||||
atlas = ExtResource("3_o5tro")
|
||||
region = Rect2(525, 122, 136, 98)
|
||||
|
||||
[resource]
|
||||
resource_name = "Branch1"
|
||||
script = ExtResource("1_peh48")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(-34, 2)
|
||||
type = 1
|
||||
is_back = true
|
||||
texture = SubResource("AtlasTexture_khbsd")
|
||||
root = SubResource("Resource_sfip3")
|
||||
attaches = Array[ExtResource("1_o5tro")]([SubResource("Resource_o5tro")])
|
||||
|
||||
@@ -1,15 +1,56 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://b68fyu1j5d6te"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_bxo74"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_fvydc"]
|
||||
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_fvydc"]
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_x08jn"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxnm1quxhx40i" path="res://entities/plants/assets/sprites/asset-plante-fin_assemble.png" id="3_ot5v1"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_fvydc")
|
||||
region = Rect2(716, 966, 212, 172)
|
||||
[sub_resource type="Resource" id="Resource_fvydc"]
|
||||
script = ExtResource("1_fvydc")
|
||||
position = Vector2(-89, 70)
|
||||
attach_types = Array[int]([1, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_x08jn"]
|
||||
script = ExtResource("1_fvydc")
|
||||
position = Vector2(-38, 36)
|
||||
attach_types = Array[int]([1, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ot5v1"]
|
||||
script = ExtResource("1_fvydc")
|
||||
position = Vector2(31, -9)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_yep62"]
|
||||
script = ExtResource("1_fvydc")
|
||||
position = Vector2(20, -58)
|
||||
attach_types = Array[int]([3, 2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_qu1f1"]
|
||||
script = ExtResource("1_fvydc")
|
||||
position = Vector2(53, -104)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_0c5bs"]
|
||||
script = ExtResource("1_fvydc")
|
||||
position = Vector2(98, -23)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_mybt3"]
|
||||
script = ExtResource("1_fvydc")
|
||||
position = Vector2(48, -70)
|
||||
attach_types = Array[int]([2, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_qlwyk"]
|
||||
script = ExtResource("1_fvydc")
|
||||
position = Vector2(-135, 74)
|
||||
attach_types = Array[int]([0])
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
|
||||
atlas = ExtResource("3_ot5v1")
|
||||
region = Rect2(752, 3559, 363, 339)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_bxo74")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(-66, 11)
|
||||
attaches = Array[Vector2]([Vector2(-14, 39), Vector2(58, -39)])
|
||||
type = 1
|
||||
resource_name = "Branch10"
|
||||
script = ExtResource("2_x08jn")
|
||||
texture = SubResource("AtlasTexture_khbsd")
|
||||
root = SubResource("Resource_qlwyk")
|
||||
attaches = Array[ExtResource("1_fvydc")]([SubResource("Resource_fvydc"), SubResource("Resource_x08jn"), SubResource("Resource_ot5v1"), SubResource("Resource_yep62"), SubResource("Resource_qu1f1"), SubResource("Resource_0c5bs"), SubResource("Resource_mybt3")])
|
||||
|
||||
@@ -1,15 +1,36 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://d2y7o2hc6ffei"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_wnxgs"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_smg8i"]
|
||||
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_smg8i"]
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_0o4uq"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxnm1quxhx40i" path="res://entities/plants/assets/sprites/asset-plante-fin_assemble.png" id="3_ii5p4"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_smg8i")
|
||||
region = Rect2(487, 1206, 111, 164)
|
||||
[sub_resource type="Resource" id="Resource_83gik"]
|
||||
script = ExtResource("1_smg8i")
|
||||
position = Vector2(58, 62)
|
||||
attach_types = Array[int]([1, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_dtp6r"]
|
||||
script = ExtResource("1_smg8i")
|
||||
position = Vector2(-48, -70)
|
||||
attach_types = Array[int]([1, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_7vl6a"]
|
||||
script = ExtResource("1_smg8i")
|
||||
position = Vector2(-137, -105)
|
||||
attach_types = Array[int]([2, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_yhbk0"]
|
||||
script = ExtResource("1_smg8i")
|
||||
position = Vector2(140, 86)
|
||||
attach_types = Array[int]([0])
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
|
||||
atlas = ExtResource("3_ii5p4")
|
||||
region = Rect2(142, 2522, 370, 282)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_wnxgs")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(28, 47)
|
||||
attaches = Array[Vector2]([Vector2(4, 29)])
|
||||
type = 1
|
||||
resource_name = "Branch11"
|
||||
script = ExtResource("2_0o4uq")
|
||||
texture = SubResource("AtlasTexture_khbsd")
|
||||
root = SubResource("Resource_yhbk0")
|
||||
attaches = Array[ExtResource("1_smg8i")]([SubResource("Resource_83gik"), SubResource("Resource_dtp6r"), SubResource("Resource_7vl6a")])
|
||||
|
||||
@@ -1,15 +1,36 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://civ4gr1c2pq7g"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_1cr0i"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_h0d20"]
|
||||
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_h0d20"]
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_p8rhl"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxnm1quxhx40i" path="res://entities/plants/assets/sprites/asset-plante-fin_assemble.png" id="3_0ece1"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_h0d20")
|
||||
region = Rect2(753, 1188, 172, 191)
|
||||
[sub_resource type="Resource" id="Resource_y72ry"]
|
||||
script = ExtResource("1_h0d20")
|
||||
position = Vector2(50, -26)
|
||||
attach_types = Array[int]([1, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_w8et7"]
|
||||
script = ExtResource("1_h0d20")
|
||||
position = Vector2(-110, -61)
|
||||
attach_types = Array[int]([1, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_dkuwv"]
|
||||
script = ExtResource("1_h0d20")
|
||||
position = Vector2(-157, -72)
|
||||
attach_types = Array[int]([2, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_i4sl3"]
|
||||
script = ExtResource("1_h0d20")
|
||||
position = Vector2(187, 79)
|
||||
attach_types = Array[int]([0])
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
|
||||
atlas = ExtResource("3_0ece1")
|
||||
region = Rect2(83, 2912, 463, 251)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_1cr0i")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(-19, 57)
|
||||
attaches = Array[Vector2]([Vector2(6, 31), Vector2(1, -12)])
|
||||
type = 1
|
||||
resource_name = "Branch12"
|
||||
script = ExtResource("2_p8rhl")
|
||||
texture = SubResource("AtlasTexture_khbsd")
|
||||
root = SubResource("Resource_i4sl3")
|
||||
attaches = Array[ExtResource("1_h0d20")]([SubResource("Resource_y72ry"), SubResource("Resource_w8et7"), SubResource("Resource_dkuwv")])
|
||||
|
||||
@@ -1,16 +1,36 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bqfocs6f0iypo"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_p4qfr"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_iibe2"]
|
||||
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_iibe2"]
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_3j5ru"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxnm1quxhx40i" path="res://entities/plants/assets/sprites/asset-plante-fin_assemble.png" id="3_u12ix"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_iibe2")
|
||||
region = Rect2(515, 1445, 123, 171)
|
||||
[sub_resource type="Resource" id="Resource_2cpm3"]
|
||||
script = ExtResource("1_iibe2")
|
||||
position = Vector2(-31, 21)
|
||||
attach_types = Array[int]([1, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_7thl0"]
|
||||
script = ExtResource("1_iibe2")
|
||||
position = Vector2(41, -17)
|
||||
attach_types = Array[int]([1, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_2i6au"]
|
||||
script = ExtResource("1_iibe2")
|
||||
position = Vector2(138, -61)
|
||||
attach_types = Array[int]([2, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_bg6ob"]
|
||||
script = ExtResource("1_iibe2")
|
||||
position = Vector2(-143, 52)
|
||||
attach_types = Array[int]([0])
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
|
||||
atlas = ExtResource("3_u12ix")
|
||||
region = Rect2(112, 3279, 409, 215)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_p4qfr")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(-19, 57)
|
||||
attaches = Array[Vector2]([Vector2(12, 16)])
|
||||
type = 1
|
||||
is_back = true
|
||||
resource_name = "Branch13"
|
||||
script = ExtResource("2_3j5ru")
|
||||
texture = SubResource("AtlasTexture_khbsd")
|
||||
root = SubResource("Resource_bg6ob")
|
||||
attaches = Array[ExtResource("1_iibe2")]([SubResource("Resource_2cpm3"), SubResource("Resource_7thl0"), SubResource("Resource_2i6au")])
|
||||
|
||||
@@ -1,15 +1,36 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://drml5dm8i3j3a"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_5xrel"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_0v6u4"]
|
||||
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_0v6u4"]
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_sq3us"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxnm1quxhx40i" path="res://entities/plants/assets/sprites/asset-plante-fin_assemble.png" id="3_j5jc7"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_0v6u4")
|
||||
region = Rect2(708, 1421, 178, 204)
|
||||
[sub_resource type="Resource" id="Resource_nqyym"]
|
||||
script = ExtResource("1_0v6u4")
|
||||
position = Vector2(-57, 49)
|
||||
attach_types = Array[int]([1, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_mytka"]
|
||||
script = ExtResource("1_0v6u4")
|
||||
position = Vector2(47, -9)
|
||||
attach_types = Array[int]([1, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_5hm5x"]
|
||||
script = ExtResource("1_0v6u4")
|
||||
position = Vector2(113, -50)
|
||||
attach_types = Array[int]([2, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_j68fk"]
|
||||
script = ExtResource("1_0v6u4")
|
||||
position = Vector2(-130, 47)
|
||||
attach_types = Array[int]([0])
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
|
||||
atlas = ExtResource("3_j5jc7")
|
||||
region = Rect2(135, 3652, 362, 217)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_5xrel")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(34, 75)
|
||||
attaches = Array[Vector2]([Vector2(18, 21)])
|
||||
type = 1
|
||||
resource_name = "Branch14"
|
||||
script = ExtResource("2_sq3us")
|
||||
texture = SubResource("AtlasTexture_khbsd")
|
||||
root = SubResource("Resource_j68fk")
|
||||
attaches = Array[ExtResource("1_0v6u4")]([SubResource("Resource_nqyym"), SubResource("Resource_mytka"), SubResource("Resource_5hm5x")])
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://b1t5nfwcln5vo"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_0mgvf"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_k1p2k"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_k1p2k")
|
||||
region = Rect2(450, 1656, 194, 235)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_0mgvf")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(33, 85)
|
||||
attaches = Array[Vector2]([Vector2(-6, 19), Vector2(-33, -25)])
|
||||
type = 1
|
||||
@@ -1,16 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://b4s58a600q2rn"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_l4nmf"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_ifu40"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_ifu40")
|
||||
region = Rect2(745, 1655, 214, 183)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_l4nmf")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(-42, 53)
|
||||
attaches = Array[Vector2]([Vector2(19, 3)])
|
||||
type = 1
|
||||
is_back = true
|
||||
@@ -1,15 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://dspugxsjw2aea"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_gpxi3"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_e0an0"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_e0an0")
|
||||
region = Rect2(453, 1996, 156, 102)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_gpxi3")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(47, 30)
|
||||
attaches = Array[Vector2]([Vector2(-11, 5)])
|
||||
type = 1
|
||||
@@ -1,15 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cnt38l2fmg8d7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_wmuv5"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_4klgd"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_4klgd")
|
||||
region = Rect2(723, 1895, 198, 194)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_wmuv5")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(-49, 73)
|
||||
attaches = Array[Vector2]([Vector2(18, 21)])
|
||||
type = 1
|
||||
@@ -1,14 +1,26 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://ceisi5yyie7to"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_1eil5"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_h27ow"]
|
||||
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_h27ow"]
|
||||
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_h27ow"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_h27ow")
|
||||
region = Rect2(735, 104, 118, 109)
|
||||
[sub_resource type="Resource" id="Resource_h27ow"]
|
||||
script = ExtResource("1_h27ow")
|
||||
position = Vector2(-1, 1)
|
||||
attach_types = Array[int]([2, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_svi20"]
|
||||
script = ExtResource("1_h27ow")
|
||||
position = Vector2(28, 0)
|
||||
attach_types = Array[int]([1])
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
|
||||
atlas = ExtResource("3_h27ow")
|
||||
region = Rect2(743, 108, 104, 114)
|
||||
|
||||
[resource]
|
||||
resource_name = "Branch2"
|
||||
script = ExtResource("1_1eil5")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(28, 5)
|
||||
type = 1
|
||||
texture = SubResource("AtlasTexture_khbsd")
|
||||
root = SubResource("Resource_svi20")
|
||||
attaches = Array[ExtResource("1_h27ow")]([SubResource("Resource_h27ow")])
|
||||
|
||||
@@ -1,15 +1,36 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cxiu8frk04b5i"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_4au1t"]
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_qrhlr"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_4au1t"]
|
||||
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_4au1t"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_4au1t")
|
||||
region = Rect2(487, 242, 188, 176)
|
||||
[sub_resource type="Resource" id="Resource_4au1t"]
|
||||
script = ExtResource("1_4au1t")
|
||||
position = Vector2(17, 28)
|
||||
attach_types = Array[int]([2, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_liidl"]
|
||||
script = ExtResource("1_4au1t")
|
||||
position = Vector2(-15, -36)
|
||||
attach_types = Array[int]([2, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_mivnq"]
|
||||
script = ExtResource("1_4au1t")
|
||||
position = Vector2(-43, -55)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_khbsd"]
|
||||
script = ExtResource("1_4au1t")
|
||||
position = Vector2(46, 43)
|
||||
attach_types = Array[int]([1])
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
|
||||
atlas = ExtResource("3_4au1t")
|
||||
region = Rect2(506, 248, 139, 173)
|
||||
|
||||
[resource]
|
||||
resource_name = "Branch3"
|
||||
script = ExtResource("1_qrhlr")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(39, 45)
|
||||
attaches = Array[Vector2]([Vector2(6, 35), Vector2(-24, -34)])
|
||||
type = 1
|
||||
texture = SubResource("AtlasTexture_khbsd")
|
||||
root = SubResource("Resource_khbsd")
|
||||
attaches = Array[ExtResource("1_4au1t")]([SubResource("Resource_4au1t"), SubResource("Resource_liidl"), SubResource("Resource_mivnq")])
|
||||
|
||||
@@ -1,16 +1,36 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://53p5g07e3pb4"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_2wu38"]
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_tu2er"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_2wu38"]
|
||||
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_5mbvh"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_2wu38")
|
||||
region = Rect2(743, 246, 192, 185)
|
||||
[sub_resource type="Resource" id="Resource_2wu38"]
|
||||
script = ExtResource("1_2wu38")
|
||||
position = Vector2(-19, 37)
|
||||
attach_types = Array[int]([2, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_5mbvh"]
|
||||
script = ExtResource("1_2wu38")
|
||||
position = Vector2(-1, -4)
|
||||
attach_types = Array[int]([2, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_7ivk8"]
|
||||
script = ExtResource("1_2wu38")
|
||||
position = Vector2(29, -52)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_lwslo"]
|
||||
script = ExtResource("1_2wu38")
|
||||
position = Vector2(-44, 57)
|
||||
attach_types = Array[int]([1])
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
|
||||
atlas = ExtResource("3_5mbvh")
|
||||
region = Rect2(776, 250, 152, 177)
|
||||
|
||||
[resource]
|
||||
resource_name = "Branch4"
|
||||
script = ExtResource("1_tu2er")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(-30, 56)
|
||||
attaches = Array[Vector2]([Vector2(1, 27), Vector2(43, -54)])
|
||||
type = 1
|
||||
is_back = true
|
||||
texture = SubResource("AtlasTexture_khbsd")
|
||||
root = SubResource("Resource_lwslo")
|
||||
attaches = Array[ExtResource("1_2wu38")]([SubResource("Resource_2wu38"), SubResource("Resource_5mbvh"), SubResource("Resource_7ivk8")])
|
||||
|
||||
@@ -1,15 +1,36 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cyfyodtfxne1w"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_7ri8e"]
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_sfan5"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_7ri8e"]
|
||||
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_kwcpq"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_7ri8e")
|
||||
region = Rect2(458, 495, 226, 204)
|
||||
[sub_resource type="Resource" id="Resource_7ri8e"]
|
||||
script = ExtResource("1_7ri8e")
|
||||
position = Vector2(56, 24)
|
||||
attach_types = Array[int]([2, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_kwcpq"]
|
||||
script = ExtResource("1_7ri8e")
|
||||
position = Vector2(36, -8)
|
||||
attach_types = Array[int]([2, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_a5n1t"]
|
||||
script = ExtResource("1_7ri8e")
|
||||
position = Vector2(-40, -66)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_d1jt0"]
|
||||
script = ExtResource("1_7ri8e")
|
||||
position = Vector2(73, 61)
|
||||
attach_types = Array[int]([1])
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
|
||||
atlas = ExtResource("3_kwcpq")
|
||||
region = Rect2(442, 491, 225, 234)
|
||||
|
||||
[resource]
|
||||
resource_name = "Branch5"
|
||||
script = ExtResource("1_sfan5")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(54, 70)
|
||||
attaches = Array[Vector2]([Vector2(18, 6), Vector2(-55, -52)])
|
||||
type = 1
|
||||
texture = SubResource("AtlasTexture_khbsd")
|
||||
root = SubResource("Resource_d1jt0")
|
||||
attaches = Array[ExtResource("1_7ri8e")]([SubResource("Resource_7ri8e"), SubResource("Resource_kwcpq"), SubResource("Resource_a5n1t")])
|
||||
|
||||
@@ -1,16 +1,36 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cuvtf4y1dspcp"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_l4h5t"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_yt05g"]
|
||||
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_yt05g"]
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_cps4v"]
|
||||
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_t38ym"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_yt05g")
|
||||
region = Rect2(728, 493, 203, 179)
|
||||
[sub_resource type="Resource" id="Resource_yt05g"]
|
||||
script = ExtResource("1_yt05g")
|
||||
position = Vector2(-18, 26)
|
||||
attach_types = Array[int]([2, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_cps4v"]
|
||||
script = ExtResource("1_yt05g")
|
||||
position = Vector2(16, -16)
|
||||
attach_types = Array[int]([3, 2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_t38ym"]
|
||||
script = ExtResource("1_yt05g")
|
||||
position = Vector2(44, -63)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_o1b7h"]
|
||||
script = ExtResource("1_yt05g")
|
||||
position = Vector2(-49, 42)
|
||||
attach_types = Array[int]([1])
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
|
||||
atlas = ExtResource("3_t38ym")
|
||||
region = Rect2(753, 507, 173, 183)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_l4h5t")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(-36, 59)
|
||||
attaches = Array[Vector2]([Vector2(16, 27)])
|
||||
type = 1
|
||||
is_back = true
|
||||
resource_name = "Branch6"
|
||||
script = ExtResource("2_cps4v")
|
||||
texture = SubResource("AtlasTexture_khbsd")
|
||||
root = SubResource("Resource_o1b7h")
|
||||
attaches = Array[ExtResource("1_yt05g")]([SubResource("Resource_yt05g"), SubResource("Resource_cps4v"), SubResource("Resource_t38ym")])
|
||||
|
||||
@@ -1,15 +1,61 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://6jnbms553dyd"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_ixygn"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_62ciq"]
|
||||
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_62ciq"]
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_hmnx4"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxnm1quxhx40i" path="res://entities/plants/assets/sprites/asset-plante-fin_assemble.png" id="3_64xx3"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_62ciq")
|
||||
region = Rect2(446, 743, 234, 186)
|
||||
[sub_resource type="Resource" id="Resource_62ciq"]
|
||||
script = ExtResource("1_62ciq")
|
||||
position = Vector2(19, 109)
|
||||
attach_types = Array[int]([1, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_hmnx4"]
|
||||
script = ExtResource("1_62ciq")
|
||||
position = Vector2(-64, 158)
|
||||
attach_types = Array[int]([1, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_64xx3"]
|
||||
script = ExtResource("1_62ciq")
|
||||
position = Vector2(129, -28)
|
||||
attach_types = Array[int]([1, 3, 2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_584up"]
|
||||
script = ExtResource("1_62ciq")
|
||||
position = Vector2(161, -90)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_7pnm7"]
|
||||
script = ExtResource("1_62ciq")
|
||||
position = Vector2(81, -121)
|
||||
attach_types = Array[int]([1, 3, 2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_3cfto"]
|
||||
script = ExtResource("1_62ciq")
|
||||
position = Vector2(79, -201)
|
||||
attach_types = Array[int]([3, 2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_q6abt"]
|
||||
script = ExtResource("1_62ciq")
|
||||
position = Vector2(82, 31)
|
||||
attach_types = Array[int]([3, 2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_xtrwx"]
|
||||
script = ExtResource("1_62ciq")
|
||||
position = Vector2(83, -265)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_gi4wl"]
|
||||
script = ExtResource("1_62ciq")
|
||||
position = Vector2(-142, 199)
|
||||
attach_types = Array[int]([0])
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
|
||||
atlas = ExtResource("3_64xx3")
|
||||
region = Rect2(733, 2134, 355, 567)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_ixygn")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(67, 31)
|
||||
attaches = Array[Vector2]([Vector2(-4, 14), Vector2(-63, -45)])
|
||||
type = 1
|
||||
resource_name = "Branch7"
|
||||
script = ExtResource("2_hmnx4")
|
||||
texture = SubResource("AtlasTexture_khbsd")
|
||||
root = SubResource("Resource_gi4wl")
|
||||
attaches = Array[ExtResource("1_62ciq")]([SubResource("Resource_62ciq"), SubResource("Resource_hmnx4"), SubResource("Resource_64xx3"), SubResource("Resource_584up"), SubResource("Resource_7pnm7"), SubResource("Resource_3cfto"), SubResource("Resource_q6abt"), SubResource("Resource_xtrwx")])
|
||||
|
||||
@@ -1,16 +1,81 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bkpe0b38m0prg"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_1kyqm"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_4kt4t"]
|
||||
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_4kt4t"]
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_27lv3"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxnm1quxhx40i" path="res://entities/plants/assets/sprites/asset-plante-fin_assemble.png" id="3_uywa1"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_4kt4t")
|
||||
region = Rect2(714, 787, 187, 129)
|
||||
[sub_resource type="Resource" id="Resource_4kt4t"]
|
||||
script = ExtResource("1_4kt4t")
|
||||
position = Vector2(106, 88)
|
||||
attach_types = Array[int]([1, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_27lv3"]
|
||||
script = ExtResource("1_4kt4t")
|
||||
position = Vector2(30, 29)
|
||||
attach_types = Array[int]([3, 2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_uywa1"]
|
||||
script = ExtResource("1_4kt4t")
|
||||
position = Vector2(-70, 7)
|
||||
attach_types = Array[int]([1, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_f38s6"]
|
||||
script = ExtResource("1_4kt4t")
|
||||
position = Vector2(-159, -14)
|
||||
attach_types = Array[int]([1, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_s0e8g"]
|
||||
script = ExtResource("1_4kt4t")
|
||||
position = Vector2(-213, -15)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ls1nv"]
|
||||
script = ExtResource("1_4kt4t")
|
||||
position = Vector2(-68, -102)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_vh6s2"]
|
||||
script = ExtResource("1_4kt4t")
|
||||
position = Vector2(103, -181)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_7ej73"]
|
||||
script = ExtResource("1_4kt4t")
|
||||
position = Vector2(78, -53)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_m21ts"]
|
||||
script = ExtResource("1_4kt4t")
|
||||
position = Vector2(29, -5)
|
||||
attach_types = Array[int]([3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_2uuoj"]
|
||||
script = ExtResource("1_4kt4t")
|
||||
position = Vector2(17, -31)
|
||||
attach_types = Array[int]([3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_e1t12"]
|
||||
script = ExtResource("1_4kt4t")
|
||||
position = Vector2(-25, -63)
|
||||
attach_types = Array[int]([3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_57gqx"]
|
||||
script = ExtResource("1_4kt4t")
|
||||
position = Vector2(89, -124)
|
||||
attach_types = Array[int]([3, 1])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_vj66r"]
|
||||
script = ExtResource("1_4kt4t")
|
||||
position = Vector2(172, 138)
|
||||
attach_types = Array[int]([0])
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
|
||||
atlas = ExtResource("3_uywa1")
|
||||
region = Rect2(619, 2705, 551, 494)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_1kyqm")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(-55, -5)
|
||||
attaches = Array[Vector2]([Vector2(-18, 16), Vector2(55, 2)])
|
||||
type = 1
|
||||
is_back = true
|
||||
resource_name = "Branch8"
|
||||
script = ExtResource("2_27lv3")
|
||||
texture = SubResource("AtlasTexture_khbsd")
|
||||
root = SubResource("Resource_vj66r")
|
||||
attaches = Array[ExtResource("1_4kt4t")]([SubResource("Resource_4kt4t"), SubResource("Resource_27lv3"), SubResource("Resource_uywa1"), SubResource("Resource_f38s6"), SubResource("Resource_s0e8g"), SubResource("Resource_ls1nv"), SubResource("Resource_vh6s2"), SubResource("Resource_7ej73"), SubResource("Resource_m21ts"), SubResource("Resource_2uuoj"), SubResource("Resource_e1t12"), SubResource("Resource_57gqx")])
|
||||
|
||||
@@ -1,15 +1,56 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://31oq17bv1t4t"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_36y6q"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_qdh8q"]
|
||||
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_qdh8q"]
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_hbagk"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxnm1quxhx40i" path="res://entities/plants/assets/sprites/asset-plante-fin_assemble.png" id="3_o2wa0"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_qdh8q")
|
||||
region = Rect2(442, 964, 199, 159)
|
||||
[sub_resource type="Resource" id="Resource_qdh8q"]
|
||||
script = ExtResource("1_qdh8q")
|
||||
position = Vector2(-11, 57)
|
||||
attach_types = Array[int]([1, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_hbagk"]
|
||||
script = ExtResource("1_qdh8q")
|
||||
position = Vector2(-60, 31)
|
||||
attach_types = Array[int]([3, 2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_o2wa0"]
|
||||
script = ExtResource("1_qdh8q")
|
||||
position = Vector2(48, -16)
|
||||
attach_types = Array[int]([1, 3])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_w267e"]
|
||||
script = ExtResource("1_qdh8q")
|
||||
position = Vector2(-77, -29)
|
||||
attach_types = Array[int]([1, 3, 2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_drvpg"]
|
||||
script = ExtResource("1_qdh8q")
|
||||
position = Vector2(-111, -67)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_bfy67"]
|
||||
script = ExtResource("1_qdh8q")
|
||||
position = Vector2(62, 33)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_wvhwx"]
|
||||
script = ExtResource("1_qdh8q")
|
||||
position = Vector2(101, -77)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_f4sg7"]
|
||||
script = ExtResource("1_qdh8q")
|
||||
position = Vector2(-62, 81)
|
||||
attach_types = Array[int]([0])
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
|
||||
atlas = ExtResource("3_o2wa0")
|
||||
region = Rect2(763, 3233, 353, 258)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_36y6q")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(67, 23)
|
||||
attaches = Array[Vector2]([Vector2(13, 31), Vector2(-29, -14)])
|
||||
type = 1
|
||||
resource_name = "Branch9"
|
||||
script = ExtResource("2_hbagk")
|
||||
texture = SubResource("AtlasTexture_khbsd")
|
||||
root = SubResource("Resource_f4sg7")
|
||||
attaches = Array[ExtResource("1_qdh8q")]([SubResource("Resource_qdh8q"), SubResource("Resource_hbagk"), SubResource("Resource_o2wa0"), SubResource("Resource_w267e"), SubResource("Resource_drvpg"), SubResource("Resource_bfy67"), SubResource("Resource_wvhwx")])
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://crmvc77bqax1y"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_3u7fo"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_23bbh"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_23bbh")
|
||||
region = Rect2(1597, 5, 152, 159)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_3u7fo")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(49, 63)
|
||||
type = 3
|
||||
branch_attachable = true
|
||||
@@ -1,16 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://c0hr7icfkjkoi"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_bcreq"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_af12b"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_af12b")
|
||||
region = Rect2(1746, 8, 116, 165)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_bcreq")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(23, 67)
|
||||
type = 3
|
||||
is_back = true
|
||||
branch_attachable = true
|
||||
@@ -1,15 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://clkoc1iccts2w"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_vlome"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_157wb"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_157wb")
|
||||
region = Rect2(1884, 8, 83, 202)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_vlome")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(11, 72)
|
||||
type = 3
|
||||
branch_attachable = true
|
||||
@@ -1,15 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bd8yapi1pokj6"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_0uwmh"]
|
||||
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_h3coc"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
|
||||
atlas = ExtResource("2_h3coc")
|
||||
region = Rect2(1995, 32, 103, 187)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_0uwmh")
|
||||
texture = SubResource("AtlasTexture_mypt2")
|
||||
root = Vector2(-13, 76)
|
||||
type = 3
|
||||
branch_attachable = true
|
||||
21
entities/plants/resources/plant_parts/FlowerA1.tres
Normal file
@@ -0,0 +1,21 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cowkewtw2lg4i"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_m6w7w"]
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_rmuvq"]
|
||||
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_d3khu"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_rmuvq"]
|
||||
script = ExtResource("1_m6w7w")
|
||||
position = Vector2(12, 11)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
|
||||
atlas = ExtResource("3_d3khu")
|
||||
region = Rect2(1627, 1340, 86, 82)
|
||||
|
||||
[resource]
|
||||
resource_name = "FlowerA1"
|
||||
script = ExtResource("2_rmuvq")
|
||||
texture = SubResource("AtlasTexture_yh7e0")
|
||||
type = 1
|
||||
root = SubResource("Resource_rmuvq")
|
||||
21
entities/plants/resources/plant_parts/FlowerA2.tres
Normal file
@@ -0,0 +1,21 @@
|
||||
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://drn8vt4sp7u6q"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_ntn8n"]
|
||||
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_8cijn"]
|
||||
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_amrra"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_8cijn"]
|
||||
script = ExtResource("1_ntn8n")
|
||||
position = Vector2(-16, 14)
|
||||
attach_types = Array[int]([2])
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
|
||||
atlas = ExtResource("3_amrra")
|
||||
region = Rect2(1714, 1341, 91, 87)
|
||||
|
||||
[resource]
|
||||
resource_name = "FlowerA2"
|
||||
script = ExtResource("2_8cijn")
|
||||
texture = SubResource("AtlasTexture_yh7e0")
|
||||
type = 1
|
||||
root = SubResource("Resource_8cijn")
|
||||