Skip to content

Commit

Permalink
First push.
Browse files Browse the repository at this point in the history
First push.
  • Loading branch information
Atermnus authored Aug 11, 2023
0 parents commit a6c9d03
Show file tree
Hide file tree
Showing 13 changed files with 396 additions and 0 deletions.
41 changes: 41 additions & 0 deletions Transition_Types/CharacterBody2D.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
extends CharacterBody2D

signal larp_finished

@onready var starting_position = $"../Starting_Position"
@onready var ending_position = $"../Ending_Position"




var tween : Tween

func reset() -> void:
if tween != null:
tween.kill()
global_position = starting_position.global_position


#func calculate_time(from : Vector2,to : Vector2) -> float:
#
# var distance = from.distance_to(to)
# return distance/1000 * 2

#func larp_to_start() -> void:
#
# tween = create_tween()
# tween.tween_property(self,"global_position",Vector2.ZERO,calculate_time(global_position,Vector2.ZERO)).set_trans(Tween.TRANS_QUAD).set_ease(Tween.EASE_IN_OUT)
# await tween.finished


func larp(val : bool,time : float,transtype : int, ease_type : int) -> void:

tween = create_tween()
if val:
tween.tween_property(self,"global_position",ending_position.global_position,time).set_trans(transtype).set_ease(ease_type)
else:
tween.tween_property(self,"global_position",starting_position.global_position,time).set_trans(transtype).set_ease(ease_type)
await tween.finished
larp(!val,time,transtype,ease_type)

pass
23 changes: 23 additions & 0 deletions Transition_Types/Control.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
extends Control

@onready var character_body_2d = $"../../CharacterBody2D"

var trans_type := 0
var ease_type := 0
var time := 1.0

func _on_start_pressed():
character_body_2d.reset()
character_body_2d.larp(true,time,trans_type,ease_type)


func _on_ease_item_selected(index):
ease_type = index


func _on_transition_item_selected(index):
trans_type = index


func _on_spin_box_value_changed(value):
time = value
7 changes: 7 additions & 0 deletions Transition_Types/LineEdit.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends LineEdit




func _on_text_changed(new_text : String):
if new_text.right(1)
Binary file added Transition_Types/Transition_Types.pck
Binary file not shown.
Binary file added Transition_Types/Untitled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions Transition_Types/Untitled.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://v7p8be7crsvw"
path="res://.godot/imported/Untitled.png-30da513a925d9064453decddf41ecbd4.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://Untitled.png"
dest_files=["res://.godot/imported/Untitled.png-30da513a925d9064453decddf41ecbd4.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
10 changes: 10 additions & 0 deletions Transition_Types/character_body_2d.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[gd_scene load_steps=3 format=3 uid="uid://dktrb14pscb0e"]

[ext_resource type="Script" path="res://CharacterBody2D.gd" id="1_axocv"]
[ext_resource type="Texture2D" uid="uid://b8prxigrywvid" path="res://icon.svg" id="2_ibx73"]

[node name="CharacterBody2D" type="CharacterBody2D"]
script = ExtResource("1_axocv")

[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("2_ibx73")
61 changes: 61 additions & 0 deletions Transition_Types/export_presets.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
[preset.0]

name="Windows Desktop"
platform="Windows Desktop"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="../Transition_Types.exe"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false

[preset.0.options]

custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=1
binary_format/embed_pck=false
texture_format/bptc=true
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
binary_format/architecture="x86_64"
codesign/enable=false
codesign/timestamp=true
codesign/timestamp_server_url=""
codesign/digest_algorithm=1
codesign/description=""
codesign/custom_options=PackedStringArray()
application/modify_resources=true
application/icon="res://image_2023-08-11_150314608.ico"
application/console_wrapper_icon=""
application/icon_interpolation=4
application/file_version=""
application/product_version=""
application/company_name="Zaxrem"
application/product_name="Transition Types"
application/file_description=""
application/copyright=""
application/trademarks=""
ssh_remote_deploy/enabled=false
ssh_remote_deploy/host="user@host_ip"
ssh_remote_deploy/port="22"
ssh_remote_deploy/extra_args_ssh=""
ssh_remote_deploy/extra_args_scp=""
ssh_remote_deploy/run_script="Expand-Archive -LiteralPath '{temp_dir}\\{archive_name}' -DestinationPath '{temp_dir}'
$action = New-ScheduledTaskAction -Execute '{temp_dir}\\{exe_name}' -Argument '{cmd_args}'
$trigger = New-ScheduledTaskTrigger -Once -At 00:00
$settings = New-ScheduledTaskSettingsSet
$task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings
Register-ScheduledTask godot_remote_debug -InputObject $task -Force:$true
Start-ScheduledTask -TaskName godot_remote_debug
while (Get-ScheduledTask -TaskName godot_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 }
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue"
ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue
Remove-Item -Recurse -Force '{temp_dir}'"
1 change: 1 addition & 0 deletions Transition_Types/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions Transition_Types/icon.svg.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://b8prxigrywvid"
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://icon.svg"
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
svg/scale=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false
Binary file added Transition_Types/image_2023-08-11_150314608.ico
Binary file not shown.
16 changes: 16 additions & 0 deletions Transition_Types/project.godot
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
; Engine configuration file.
; It's best edited using the editor UI and not directly,
; since the parameters that go here are not all obvious.
;
; Format:
; [section] ; section goes between []
; param=value ; assign values to parameters

config_version=5

[application]

config/name="Transition_Types"
run/main_scene="res://world.tscn"
config/features=PackedStringArray("4.1", "Forward Plus")
config/icon="res://image_2023-08-11_150314608.ico"
Loading

0 comments on commit a6c9d03

Please sign in to comment.