mirror of
https://github.com/kristoferssolo/FuncIt.git
synced 2025-10-21 19:30:35 +00:00
Merge branch 'fix_t'
This commit is contained in:
commit
52f9227ee9
@ -38,42 +38,42 @@ fps=false
|
|||||||
|
|
||||||
input_right={
|
input_right={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"unicode":0,"echo":false,"script":null)
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":68,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"unicode":0,"echo":false,"script":null)
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
input_left={
|
input_left={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"unicode":0,"echo":false,"script":null)
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":65,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"unicode":0,"echo":false,"script":null)
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
input_up={
|
input_up={
|
||||||
"deadzone": 0.49,
|
"deadzone": 0.49,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"unicode":0,"echo":false,"script":null)
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":87,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"unicode":0,"echo":false,"script":null)
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"unicode":0,"echo":false,"script":null)
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":32,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
input_down={
|
input_down={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"unicode":0,"echo":false,"script":null)
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":83,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777234,"unicode":0,"echo":false,"script":null)
|
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777234,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
input_debug={
|
input_debug={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":96,"unicode":0,"echo":false,"script":null)
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":96,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
input_enter={
|
input_enter={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777221,"unicode":0,"echo":false,"script":null)
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777221,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
input_shift={
|
input_shift={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777237,"unicode":0,"echo":false,"script":null)
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777237,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
input_shoot={
|
input_shoot={
|
||||||
@ -83,42 +83,42 @@ input_shoot={
|
|||||||
}
|
}
|
||||||
esc={
|
esc={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777217,"unicode":0,"echo":false,"script":null)
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777217,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
rotation_increase={
|
rotation_increase={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":69,"unicode":0,"echo":false,"script":null)
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":69,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
rotation_decrease={
|
rotation_decrease={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":81,"unicode":0,"echo":false,"script":null)
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":81,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
line={
|
line={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777351,"unicode":0,"echo":false,"script":null)
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777351,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
sine={
|
sine={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777352,"unicode":0,"echo":false,"script":null)
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777352,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
hyper={
|
hyper={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777353,"unicode":0,"echo":false,"script":null)
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777353,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
parab={
|
parab={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777354,"unicode":0,"echo":false,"script":null)
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777354,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
fullscreen_toggle={
|
fullscreen_toggle={
|
||||||
"deadzone": 0.5,
|
"deadzone": 0.5,
|
||||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777254,"unicode":0,"echo":false,"script":null)
|
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777254,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -267,8 +267,6 @@ func _physics_process(delta) -> void:
|
|||||||
# warning-ignore:return_value_discarded
|
# warning-ignore:return_value_discarded
|
||||||
move_and_slide(velocityVDIR.rotated(rotationalHolder))
|
move_and_slide(velocityVDIR.rotated(rotationalHolder))
|
||||||
rotate_weapon()
|
rotate_weapon()
|
||||||
choose_trajectory()
|
|
||||||
enable_trajectory_line(trajectory_line)
|
|
||||||
if user_input["shoot"] and can_shoot and not is_reloading:
|
if user_input["shoot"] and can_shoot and not is_reloading:
|
||||||
rpc("shoot", trajectory)
|
rpc("shoot", trajectory)
|
||||||
is_reloading = true
|
is_reloading = true
|
||||||
@ -296,25 +294,6 @@ func _physics_process(delta) -> void:
|
|||||||
rpc("destroy")
|
rpc("destroy")
|
||||||
|
|
||||||
|
|
||||||
func choose_trajectory():
|
|
||||||
Global.get('line_button')
|
|
||||||
Global.get('sine_button')
|
|
||||||
Global.get('parab_button')
|
|
||||||
Global.get('hyper_button')
|
|
||||||
|
|
||||||
if Input.is_action_just_pressed("line"):
|
|
||||||
trajectory = 'line'
|
|
||||||
trajectory_line = 'line'
|
|
||||||
if Input.is_action_just_pressed("sine"):
|
|
||||||
trajectory = 'sine'
|
|
||||||
trajectory_line = 'sine'
|
|
||||||
if Input.is_action_just_pressed("parab"):
|
|
||||||
trajectory = 'parab'
|
|
||||||
trajectory_line = 'parab'
|
|
||||||
if Input.is_action_just_pressed("hyper"):
|
|
||||||
trajectory = 'hyper'
|
|
||||||
trajectory_line = 'hyper'
|
|
||||||
|
|
||||||
|
|
||||||
sync func shoot(new_trajectory:String):
|
sync func shoot(new_trajectory:String):
|
||||||
bullet = bullet_env[new_trajectory].instance()
|
bullet = bullet_env[new_trajectory].instance()
|
||||||
@ -324,10 +303,13 @@ sync func shoot(new_trajectory:String):
|
|||||||
|
|
||||||
|
|
||||||
func enable_trajectory_line(new_trajectory_line:String):
|
func enable_trajectory_line(new_trajectory_line:String):
|
||||||
|
for x in get_node('weaponHolder/Player-character-theme-gun/shoot_point').get_children(): #if there is gun remove it
|
||||||
|
x.queue_free()
|
||||||
|
|
||||||
var x = bullet_trajectory[new_trajectory_line].instance()
|
var x = bullet_trajectory[new_trajectory_line].instance()
|
||||||
get_parent().add_child(x)
|
print(x)
|
||||||
x.global_position = shoot_point.global_position
|
get_node('weaponHolder/Player-character-theme-gun/shoot_point').add_child(x)
|
||||||
x.global_rotation = shoot_point.global_rotation
|
|
||||||
|
|
||||||
|
|
||||||
func _draw():
|
func _draw():
|
||||||
|
|||||||
@ -4,11 +4,9 @@ var player_master = null
|
|||||||
var ui = null
|
var ui = null
|
||||||
var alive_players = []
|
var alive_players = []
|
||||||
var player
|
var player
|
||||||
var line_button
|
|
||||||
var sine_button
|
|
||||||
var parab_button
|
|
||||||
var hyper_button
|
|
||||||
var global
|
var global
|
||||||
|
var control
|
||||||
|
var user_input
|
||||||
|
|
||||||
var clientPhase = {
|
var clientPhase = {
|
||||||
"0": {
|
"0": {
|
||||||
|
|||||||
@ -7,31 +7,30 @@ var dot_position = Vector2(0, 0)
|
|||||||
var x = 10
|
var x = 10
|
||||||
|
|
||||||
var time = 0.05
|
var time = 0.05
|
||||||
var a_parameter = 1
|
var a_parameter = Global.get('user_input').a_param_hyper
|
||||||
var b_parameter = 1
|
var b_parameter = Global.get('user_input').b_param_hyper
|
||||||
|
|
||||||
var pos
|
var pos
|
||||||
func _ready():
|
func _ready():
|
||||||
pos = Global.get("player").get_node('weaponHolder/Player-character-theme-gun').position
|
pos = Global.get("player").get_node('weaponHolder/Player-character-theme-gun').position
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func _draw():
|
func trajectory():
|
||||||
update()
|
while dot_position.x < 1000:
|
||||||
if pos.x > 0:
|
if pos.x > 0:
|
||||||
if dot_position.x < 1000:
|
add_point(dot_position)
|
||||||
velocity.x = 10
|
velocity.x = 10
|
||||||
velocity.y = a_parameter/(time*b_parameter)
|
velocity.y = a_parameter/(time*b_parameter)
|
||||||
dot_position += velocity * speed_hyper * 0.06944
|
dot_position += velocity * speed_hyper * 0.06944
|
||||||
draw_circle(dot_position, 2, Color(225, 225, 225))
|
|
||||||
time += 0.06944
|
time += 0.06944
|
||||||
if pos.x < 0:
|
if pos.x < 0:
|
||||||
if dot_position.x < 1000:
|
add_point(dot_position)
|
||||||
velocity.x = 10
|
velocity.x = 10
|
||||||
velocity.y = -a_parameter/(time*b_parameter)
|
velocity.y = -a_parameter/(time*b_parameter)
|
||||||
dot_position += velocity * speed_hyper * 0.06944
|
dot_position += velocity * speed_hyper * 0.06944
|
||||||
draw_circle(dot_position, 2, Color(225, 225, 225))
|
|
||||||
time += 0.06944
|
time += 0.06944
|
||||||
|
|
||||||
|
|
||||||
func _process(_delta):
|
func _process(_delta):
|
||||||
|
trajectory()
|
||||||
update()
|
update()
|
||||||
|
|||||||
@ -4,8 +4,10 @@ export(int) var damage = 25
|
|||||||
var velocity = Vector2()
|
var velocity = Vector2()
|
||||||
var speed_hyper = 100
|
var speed_hyper = 100
|
||||||
var time = 0.05
|
var time = 0.05
|
||||||
var a_parameter = 1
|
|
||||||
var b_parameter = 1
|
var a_parameter = Global.get('user_input').a_param_hyper
|
||||||
|
var b_parameter = Global.get('user_input').b_param_hyper
|
||||||
|
|
||||||
var player_owner = 0
|
var player_owner = 0
|
||||||
|
|
||||||
var pos
|
var pos
|
||||||
|
|||||||
@ -5,17 +5,28 @@ var velocity = Vector2(0, 0)
|
|||||||
var dot_position = Vector2(0, 0)
|
var dot_position = Vector2(0, 0)
|
||||||
|
|
||||||
var time = 0
|
var time = 0
|
||||||
var a_parameter = 0
|
var a_parameter = -Global.get('user_input').a_param_line
|
||||||
|
|
||||||
|
|
||||||
func _draw():
|
#func _draw():
|
||||||
if dot_position.x < 1000:
|
# if dot_position.x < 1000:
|
||||||
|
# velocity.y = 10 * a_parameter
|
||||||
|
# velocity.x = 10
|
||||||
|
# dot_position += velocity * speed * 0.06944
|
||||||
|
# draw_circle(dot_position, 2, Color(225, 225, 225))
|
||||||
|
# time += 0.06944
|
||||||
|
|
||||||
|
|
||||||
|
func trajectory():
|
||||||
|
while dot_position.x < 1000:
|
||||||
|
add_point(dot_position)
|
||||||
velocity.y = 10 * a_parameter
|
velocity.y = 10 * a_parameter
|
||||||
velocity.x = 10
|
velocity.x = 10
|
||||||
dot_position += velocity * speed * 0.06944
|
dot_position += velocity * speed * 0.06944
|
||||||
draw_circle(dot_position, 2, Color(225, 225, 225))
|
|
||||||
time += 0.06944
|
time += 0.06944
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
func _process(_delta):
|
func _process(_delta):
|
||||||
|
trajectory()
|
||||||
update()
|
update()
|
||||||
|
|||||||
@ -6,10 +6,12 @@ var velocity = Vector2()
|
|||||||
var player_owner = 0
|
var player_owner = 0
|
||||||
|
|
||||||
var time = 0
|
var time = 0
|
||||||
var a_parameter = 0
|
var a_parameter = 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func follow_line_trajectory():
|
func follow_line_trajectory():
|
||||||
|
a_parameter = -Global.get('user_input').a_param_line
|
||||||
velocity.x = time
|
velocity.x = time
|
||||||
velocity.y = time*a_parameter
|
velocity.y = time*a_parameter
|
||||||
|
|
||||||
|
|||||||
@ -5,30 +5,43 @@ var velocity = Vector2(0, 0)
|
|||||||
var dot_position = Vector2(0, 0)
|
var dot_position = Vector2(0, 0)
|
||||||
|
|
||||||
var time = 0
|
var time = 0
|
||||||
var a_parameter = 1
|
var a_parameter = -Global.get('user_input').a_param_parab
|
||||||
var b_parameter = 0
|
var b_parameter = Global.get('user_input').b_param_parab
|
||||||
|
|
||||||
|
var pos_diff = []
|
||||||
|
|
||||||
var pos
|
var pos
|
||||||
func _ready():
|
func _ready():
|
||||||
pos = Global.get("player").get_node('weaponHolder/Player-character-theme-gun').position
|
pos = Global.get("player").get_node('weaponHolder/Player-character-theme-gun').position
|
||||||
|
|
||||||
func _draw():
|
|
||||||
if pos.x > 0:
|
func trajectory():
|
||||||
if dot_position.x < 1000:
|
while dot_position.x < 1000:
|
||||||
|
if pos.x > 0:
|
||||||
|
add_point(dot_position)
|
||||||
velocity.y = time*(a_parameter * time + b_parameter)
|
velocity.y = time*(a_parameter * time + b_parameter)
|
||||||
velocity.x = 5
|
velocity.x = 5
|
||||||
dot_position += velocity * speed_parab * 0.06944
|
dot_position += velocity * speed_parab * 0.06944
|
||||||
draw_circle(dot_position, 2, Color(225, 225, 225))
|
|
||||||
time += 0.06944
|
time += 0.06944
|
||||||
if pos.x < 0:
|
if pos.x < 0:
|
||||||
if dot_position.x < 1000:
|
add_point(dot_position)
|
||||||
velocity.y = -time*(a_parameter * time + b_parameter)
|
velocity.y = -time*(a_parameter * time + b_parameter)
|
||||||
velocity.x = 5
|
velocity.x = 5
|
||||||
dot_position += velocity * speed_parab * 0.06944
|
dot_position += velocity * speed_parab * 0.06944
|
||||||
draw_circle(dot_position, 2, Color(225, 225, 225))
|
|
||||||
time += 0.06944
|
time += 0.06944
|
||||||
|
|
||||||
|
|
||||||
|
func is_flipped():
|
||||||
|
while len(pos_diff) < 2:
|
||||||
|
pos_diff.append(pos)
|
||||||
|
|
||||||
|
if pos_diff[1].x/pos_diff[0].x < 0:
|
||||||
|
return true
|
||||||
|
|
||||||
func _process(_delta):
|
func _process(_delta):
|
||||||
|
#if is_flipped():
|
||||||
|
#clear_points()
|
||||||
|
trajectory()
|
||||||
update()
|
update()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -6,8 +6,8 @@ var velocity = Vector2()
|
|||||||
var player_owner = 0
|
var player_owner = 0
|
||||||
|
|
||||||
var time = 0
|
var time = 0
|
||||||
var a_parameter = 1
|
var a_parameter = -Global.get('user_input').a_param_parab
|
||||||
var b_parameter = 0
|
var b_parameter = Global.get('user_input').b_param_parab
|
||||||
|
|
||||||
var pos
|
var pos
|
||||||
func _ready():
|
func _ready():
|
||||||
|
|||||||
@ -6,17 +6,26 @@ var velocity = Vector2(0, 0)
|
|||||||
var dot_position = Vector2(0, 0)
|
var dot_position = Vector2(0, 0)
|
||||||
|
|
||||||
var time = 0
|
var time = 0
|
||||||
export var amplitude = 4
|
var amplitude = Global.get('user_input').amp
|
||||||
export var frequency = 5
|
var frequency = Global.get('user_input').freq
|
||||||
|
|
||||||
|
|
||||||
func _draw():
|
#func _draw():
|
||||||
if dot_position.x < 1000:
|
# if dot_position.x < 1000:
|
||||||
|
# velocity.y = amplitude * cos(time * frequency)
|
||||||
|
# velocity.x = 5
|
||||||
|
# dot_position += velocity * speed * 0.06944
|
||||||
|
# draw_circle(dot_position, 2, Color(225, 225, 225))
|
||||||
|
# time += 0.06944
|
||||||
|
|
||||||
|
func trajectory():
|
||||||
|
while dot_position.x < 1000:
|
||||||
|
add_point(dot_position)
|
||||||
velocity.y = amplitude * cos(time * frequency)
|
velocity.y = amplitude * cos(time * frequency)
|
||||||
velocity.x = 5
|
velocity.x = 5
|
||||||
dot_position += velocity * speed * 0.06944
|
dot_position += velocity * speed * 0.06944
|
||||||
draw_circle(dot_position, 2, Color(225, 225, 225))
|
|
||||||
time += 0.06944
|
time += 0.06944
|
||||||
|
|
||||||
func _process(_delta):
|
func _process(_delta):
|
||||||
|
trajectory()
|
||||||
update()
|
update()
|
||||||
|
|||||||
@ -6,8 +6,8 @@ var velocity = Vector2()
|
|||||||
var player_owner = 0
|
var player_owner = 0
|
||||||
|
|
||||||
var time = 0
|
var time = 0
|
||||||
export var amplitude = 4
|
var amplitude = Global.get('user_input').amp
|
||||||
export var frequency = 5
|
var frequency = Global.get('user_input').freq
|
||||||
|
|
||||||
func follow_sine_trajectory():
|
func follow_sine_trajectory():
|
||||||
velocity.y = amplitude * cos(time * frequency)
|
velocity.y = amplitude * cos(time * frequency)
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=176 format=2]
|
[gd_scene load_steps=175 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://source/assets/sprites/character/player/theme/01/na/Player-character-theme-01.png" type="Texture" id=1]
|
[ext_resource path="res://source/assets/sprites/character/player/theme/01/na/Player-character-theme-01.png" type="Texture" id=1]
|
||||||
[ext_resource path="res://source/assets/scripts/player_handlers/player_collider_handler.gd" type="Script" id=2]
|
[ext_resource path="res://source/assets/scripts/player_handlers/player_collider_handler.gd" type="Script" id=2]
|
||||||
@ -15,7 +15,6 @@
|
|||||||
[ext_resource path="res://source/assets/sprites/character/player/theme/01/animation/left_r/Player-character-theme-01_anim-idle – 7.png" type="Texture" id=13]
|
[ext_resource path="res://source/assets/sprites/character/player/theme/01/animation/left_r/Player-character-theme-01_anim-idle – 7.png" type="Texture" id=13]
|
||||||
[ext_resource path="res://source/assets/sprites/character/player/theme/01/animation/left_r/Player-character-theme-01_anim-idle – 12.png" type="Texture" id=14]
|
[ext_resource path="res://source/assets/sprites/character/player/theme/01/animation/left_r/Player-character-theme-01_anim-idle – 12.png" type="Texture" id=14]
|
||||||
[ext_resource path="res://source/assets/sprites/character/player/theme/01/animation/left_r/Player-character-theme-01_anim-idle – 10.png" type="Texture" id=15]
|
[ext_resource path="res://source/assets/sprites/character/player/theme/01/animation/left_r/Player-character-theme-01_anim-idle – 10.png" type="Texture" id=15]
|
||||||
[ext_resource path="res://source/assets/sprites/character/player/player_dead/Player-character-theme-05.svg" type="Texture" id=16]
|
|
||||||
[ext_resource path="res://source/assets/sprites/character/player/theme/01/animation/left_r/Player-character-theme-01_anim-idle – 18.png" type="Texture" id=18]
|
[ext_resource path="res://source/assets/sprites/character/player/theme/01/animation/left_r/Player-character-theme-01_anim-idle – 18.png" type="Texture" id=18]
|
||||||
[ext_resource path="res://source/assets/sprites/character/player/theme/01/animation/right_r/Player-character-theme-01_anim-idle – 34.png" type="Texture" id=19]
|
[ext_resource path="res://source/assets/sprites/character/player/theme/01/animation/right_r/Player-character-theme-01_anim-idle – 34.png" type="Texture" id=19]
|
||||||
[ext_resource path="res://source/assets/sprites/character/player/theme/01/animation/left_r/Player-character-theme-01_anim-idle – 17.png" type="Texture" id=20]
|
[ext_resource path="res://source/assets/sprites/character/player/theme/01/animation/left_r/Player-character-theme-01_anim-idle – 17.png" type="Texture" id=20]
|
||||||
@ -170,68 +169,16 @@
|
|||||||
[ext_resource path="res://source/assets/sprites/character/player/theme/02/na/Player-character-theme-gun-02.png" type="Texture" id=170]
|
[ext_resource path="res://source/assets/sprites/character/player/theme/02/na/Player-character-theme-gun-02.png" type="Texture" id=170]
|
||||||
[ext_resource path="res://source/assets/sprites/character/player/theme/Player-character-theme-gun-05.png" type="Texture" id=171]
|
[ext_resource path="res://source/assets/sprites/character/player/theme/Player-character-theme-gun-05.png" type="Texture" id=171]
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id=1]
|
|
||||||
|
|
||||||
[sub_resource type="SpriteFrames" id=2]
|
[sub_resource type="SpriteFrames" id=2]
|
||||||
animations = [ {
|
animations = [ {
|
||||||
"frames": [ ExtResource( 48 ), ExtResource( 4 ), ExtResource( 3 ), ExtResource( 46 ), ExtResource( 47 ), ExtResource( 32 ), ExtResource( 13 ), ExtResource( 40 ), ExtResource( 6 ), ExtResource( 15 ), ExtResource( 22 ), ExtResource( 14 ), ExtResource( 9 ), ExtResource( 37 ), ExtResource( 23 ), ExtResource( 39 ), ExtResource( 20 ), ExtResource( 18 ), ExtResource( 7 ), ExtResource( 34 ) ],
|
|
||||||
"loop": true,
|
|
||||||
"name": "boost-speed-left-01",
|
|
||||||
"speed": 50.0
|
|
||||||
}, {
|
|
||||||
"frames": [ ExtResource( 48 ), ExtResource( 4 ), ExtResource( 3 ), ExtResource( 46 ), ExtResource( 47 ), ExtResource( 32 ), ExtResource( 13 ), ExtResource( 40 ), ExtResource( 6 ), ExtResource( 15 ), ExtResource( 22 ), ExtResource( 14 ), ExtResource( 9 ), ExtResource( 37 ), ExtResource( 23 ), ExtResource( 39 ), ExtResource( 20 ), ExtResource( 18 ), ExtResource( 7 ), ExtResource( 34 ) ],
|
|
||||||
"loop": true,
|
|
||||||
"name": "idle-speed-left-01",
|
|
||||||
"speed": 25.0
|
|
||||||
}, {
|
|
||||||
"frames": [ ExtResource( 99 ), ExtResource( 83 ), ExtResource( 109 ), ExtResource( 111 ), ExtResource( 101 ), ExtResource( 96 ), ExtResource( 79 ), ExtResource( 132 ), ExtResource( 119 ), ExtResource( 80 ), ExtResource( 85 ), ExtResource( 86 ), ExtResource( 87 ), ExtResource( 106 ), ExtResource( 121 ), ExtResource( 129 ), ExtResource( 100 ), ExtResource( 108 ), ExtResource( 110 ), ExtResource( 120 ) ],
|
|
||||||
"loop": true,
|
|
||||||
"name": "move-speed-right-04",
|
|
||||||
"speed": 35.0
|
|
||||||
}, {
|
|
||||||
"frames": [ ExtResource( 5 ), ExtResource( 42 ), ExtResource( 35 ), ExtResource( 24 ), ExtResource( 8 ), ExtResource( 31 ), ExtResource( 30 ), ExtResource( 38 ), ExtResource( 10 ), ExtResource( 43 ), ExtResource( 41 ), ExtResource( 33 ), ExtResource( 44 ), ExtResource( 19 ), ExtResource( 29 ), ExtResource( 25 ), ExtResource( 36 ), ExtResource( 12 ), ExtResource( 45 ), ExtResource( 21 ) ],
|
|
||||||
"loop": true,
|
|
||||||
"name": "boost-speed-right-01",
|
|
||||||
"speed": 50.0
|
|
||||||
}, {
|
|
||||||
"frames": [ ExtResource( 99 ), ExtResource( 83 ), ExtResource( 109 ), ExtResource( 111 ), ExtResource( 101 ), ExtResource( 96 ), ExtResource( 79 ), ExtResource( 132 ), ExtResource( 119 ), ExtResource( 80 ), ExtResource( 85 ), ExtResource( 86 ), ExtResource( 87 ), ExtResource( 106 ), ExtResource( 121 ), ExtResource( 129 ), ExtResource( 100 ), ExtResource( 108 ), ExtResource( 110 ), ExtResource( 120 ) ],
|
|
||||||
"loop": true,
|
|
||||||
"name": "idle-speed-right-04",
|
|
||||||
"speed": 25.0
|
|
||||||
}, {
|
|
||||||
"frames": [ ExtResource( 5 ), ExtResource( 42 ), ExtResource( 35 ), ExtResource( 24 ), ExtResource( 8 ), ExtResource( 31 ), ExtResource( 30 ), ExtResource( 38 ), ExtResource( 10 ), ExtResource( 43 ), ExtResource( 41 ), ExtResource( 33 ), ExtResource( 44 ), ExtResource( 19 ), ExtResource( 29 ), ExtResource( 25 ), ExtResource( 36 ), ExtResource( 12 ), ExtResource( 45 ), ExtResource( 21 ) ],
|
|
||||||
"loop": true,
|
|
||||||
"name": "idle-speed-right-02",
|
|
||||||
"speed": 25.0
|
|
||||||
}, {
|
|
||||||
"frames": [ ExtResource( 99 ), ExtResource( 83 ), ExtResource( 109 ), ExtResource( 111 ), ExtResource( 101 ), ExtResource( 96 ), ExtResource( 79 ), ExtResource( 132 ), ExtResource( 119 ), ExtResource( 80 ), ExtResource( 85 ), ExtResource( 86 ), ExtResource( 87 ), ExtResource( 106 ), ExtResource( 121 ), ExtResource( 129 ), ExtResource( 100 ), ExtResource( 108 ), ExtResource( 110 ), ExtResource( 120 ) ],
|
|
||||||
"loop": true,
|
|
||||||
"name": "boost-speed-right-04",
|
|
||||||
"speed": 50.0
|
|
||||||
}, {
|
|
||||||
"frames": [ ExtResource( 70 ), ExtResource( 49 ), ExtResource( 74 ), ExtResource( 75 ), ExtResource( 28 ), ExtResource( 52 ), ExtResource( 53 ), ExtResource( 55 ), ExtResource( 150 ), ExtResource( 156 ), ExtResource( 138 ), ExtResource( 161 ), ExtResource( 145 ), ExtResource( 148 ), ExtResource( 147 ), ExtResource( 133 ), ExtResource( 164 ), ExtResource( 134 ), ExtResource( 152 ), ExtResource( 160 ) ],
|
"frames": [ ExtResource( 70 ), ExtResource( 49 ), ExtResource( 74 ), ExtResource( 75 ), ExtResource( 28 ), ExtResource( 52 ), ExtResource( 53 ), ExtResource( 55 ), ExtResource( 150 ), ExtResource( 156 ), ExtResource( 138 ), ExtResource( 161 ), ExtResource( 145 ), ExtResource( 148 ), ExtResource( 147 ), ExtResource( 133 ), ExtResource( 164 ), ExtResource( 134 ), ExtResource( 152 ), ExtResource( 160 ) ],
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"name": "move-speed-left-03",
|
"name": "move-speed-left-03",
|
||||||
"speed": 35.0
|
"speed": 35.0
|
||||||
}, {
|
}, {
|
||||||
"frames": [ ExtResource( 114 ), ExtResource( 128 ), ExtResource( 93 ), ExtResource( 107 ), ExtResource( 117 ), ExtResource( 102 ), ExtResource( 81 ), ExtResource( 118 ), ExtResource( 76 ), ExtResource( 115 ), ExtResource( 127 ), ExtResource( 123 ), ExtResource( 113 ), ExtResource( 77 ), ExtResource( 78 ), ExtResource( 124 ), ExtResource( 94 ), ExtResource( 112 ), ExtResource( 131 ), ExtResource( 95 ) ],
|
|
||||||
"loop": true,
|
|
||||||
"name": "move-speed-right-03",
|
|
||||||
"speed": 35.0
|
|
||||||
}, {
|
|
||||||
"frames": [ ExtResource( 5 ), ExtResource( 42 ), ExtResource( 35 ), ExtResource( 24 ), ExtResource( 8 ), ExtResource( 31 ), ExtResource( 30 ), ExtResource( 38 ), ExtResource( 10 ), ExtResource( 43 ), ExtResource( 41 ), ExtResource( 33 ), ExtResource( 44 ), ExtResource( 19 ), ExtResource( 29 ), ExtResource( 25 ), ExtResource( 36 ), ExtResource( 12 ), ExtResource( 45 ), ExtResource( 21 ) ],
|
|
||||||
"loop": true,
|
|
||||||
"name": "move-speed-right-01",
|
|
||||||
"speed": 35.0
|
|
||||||
}, {
|
|
||||||
"frames": [ ExtResource( 167 ), ExtResource( 157 ), ExtResource( 158 ), ExtResource( 126 ), ExtResource( 90 ), ExtResource( 89 ), ExtResource( 97 ), ExtResource( 88 ), ExtResource( 98 ), ExtResource( 91 ), ExtResource( 125 ), ExtResource( 105 ), ExtResource( 82 ), ExtResource( 84 ), ExtResource( 92 ), ExtResource( 103 ), ExtResource( 122 ), ExtResource( 130 ), ExtResource( 104 ), ExtResource( 116 ) ],
|
"frames": [ ExtResource( 167 ), ExtResource( 157 ), ExtResource( 158 ), ExtResource( 126 ), ExtResource( 90 ), ExtResource( 89 ), ExtResource( 97 ), ExtResource( 88 ), ExtResource( 98 ), ExtResource( 91 ), ExtResource( 125 ), ExtResource( 105 ), ExtResource( 82 ), ExtResource( 84 ), ExtResource( 92 ), ExtResource( 103 ), ExtResource( 122 ), ExtResource( 130 ), ExtResource( 104 ), ExtResource( 116 ) ],
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"name": "boost-speed-right-02",
|
"name": "move-speed-right-02",
|
||||||
"speed": 50.0
|
|
||||||
}, {
|
|
||||||
"frames": [ ExtResource( 73 ), ExtResource( 57 ), ExtResource( 65 ), ExtResource( 64 ), ExtResource( 54 ), ExtResource( 71 ), ExtResource( 58 ), ExtResource( 66 ), ExtResource( 62 ), ExtResource( 59 ), ExtResource( 56 ), ExtResource( 60 ), ExtResource( 63 ), ExtResource( 50 ), ExtResource( 61 ), ExtResource( 67 ), ExtResource( 72 ), ExtResource( 51 ), ExtResource( 68 ), ExtResource( 69 ) ],
|
|
||||||
"loop": true,
|
|
||||||
"name": "move-speed-left-02",
|
|
||||||
"speed": 35.0
|
"speed": 35.0
|
||||||
}, {
|
}, {
|
||||||
"frames": [ ExtResource( 162 ), ExtResource( 135 ), ExtResource( 146 ), ExtResource( 141 ), ExtResource( 143 ), ExtResource( 163 ), ExtResource( 149 ), ExtResource( 136 ), ExtResource( 154 ), ExtResource( 137 ), ExtResource( 165 ), ExtResource( 142 ), ExtResource( 139 ), ExtResource( 159 ), ExtResource( 140 ), ExtResource( 155 ), ExtResource( 144 ), ExtResource( 151 ), ExtResource( 153 ), ExtResource( 166 ) ],
|
"frames": [ ExtResource( 162 ), ExtResource( 135 ), ExtResource( 146 ), ExtResource( 141 ), ExtResource( 143 ), ExtResource( 163 ), ExtResource( 149 ), ExtResource( 136 ), ExtResource( 154 ), ExtResource( 137 ), ExtResource( 165 ), ExtResource( 142 ), ExtResource( 139 ), ExtResource( 159 ), ExtResource( 140 ), ExtResource( 155 ), ExtResource( 144 ), ExtResource( 151 ), ExtResource( 153 ), ExtResource( 166 ) ],
|
||||||
@ -244,32 +191,83 @@ animations = [ {
|
|||||||
"name": "boost-speed-left-03",
|
"name": "boost-speed-left-03",
|
||||||
"speed": 50.0
|
"speed": 50.0
|
||||||
}, {
|
}, {
|
||||||
"frames": [ ExtResource( 162 ), ExtResource( 135 ), ExtResource( 146 ), ExtResource( 141 ), ExtResource( 143 ), ExtResource( 163 ), ExtResource( 149 ), ExtResource( 136 ), ExtResource( 154 ), ExtResource( 137 ), ExtResource( 165 ), ExtResource( 142 ), ExtResource( 139 ), ExtResource( 159 ), ExtResource( 140 ), ExtResource( 155 ), ExtResource( 144 ), ExtResource( 151 ), ExtResource( 153 ), ExtResource( 166 ) ],
|
"frames": [ ExtResource( 73 ), ExtResource( 57 ), ExtResource( 65 ), ExtResource( 64 ), ExtResource( 54 ), ExtResource( 71 ), ExtResource( 58 ), ExtResource( 66 ), ExtResource( 62 ), ExtResource( 59 ), ExtResource( 56 ), ExtResource( 60 ), ExtResource( 63 ), ExtResource( 50 ), ExtResource( 61 ), ExtResource( 67 ), ExtResource( 72 ), ExtResource( 51 ), ExtResource( 68 ), ExtResource( 69 ) ],
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"name": "idle-speed-left-04",
|
"name": "move-speed-left-02",
|
||||||
|
"speed": 35.0
|
||||||
|
}, {
|
||||||
|
"loop": true,
|
||||||
|
"name": "idle-speed-left-01",
|
||||||
"speed": 25.0
|
"speed": 25.0
|
||||||
}, {
|
}, {
|
||||||
"frames": [ ExtResource( 162 ), ExtResource( 135 ), ExtResource( 146 ), ExtResource( 141 ), ExtResource( 143 ), ExtResource( 163 ), ExtResource( 149 ), ExtResource( 136 ), ExtResource( 154 ), ExtResource( 137 ), ExtResource( 165 ), ExtResource( 142 ), ExtResource( 139 ), ExtResource( 159 ), ExtResource( 140 ), ExtResource( 155 ), ExtResource( 144 ), ExtResource( 151 ), ExtResource( 153 ), ExtResource( 166 ) ],
|
"frames": [ ExtResource( 162 ), ExtResource( 135 ), ExtResource( 146 ), ExtResource( 141 ), ExtResource( 143 ), ExtResource( 163 ), ExtResource( 149 ), ExtResource( 136 ), ExtResource( 154 ), ExtResource( 137 ), ExtResource( 165 ), ExtResource( 142 ), ExtResource( 139 ), ExtResource( 159 ), ExtResource( 140 ), ExtResource( 155 ), ExtResource( 144 ), ExtResource( 151 ), ExtResource( 153 ), ExtResource( 166 ) ],
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"name": "boost-speed-left-04",
|
"name": "idle-speed-left-04",
|
||||||
"speed": 50.0
|
"speed": 25.0
|
||||||
}, {
|
}, {
|
||||||
"frames": [ ExtResource( 114 ), ExtResource( 128 ), ExtResource( 93 ), ExtResource( 107 ), ExtResource( 117 ), ExtResource( 102 ), ExtResource( 81 ), ExtResource( 118 ), ExtResource( 76 ), ExtResource( 115 ), ExtResource( 127 ), ExtResource( 123 ), ExtResource( 113 ), ExtResource( 77 ), ExtResource( 78 ), ExtResource( 124 ), ExtResource( 94 ), ExtResource( 112 ), ExtResource( 131 ), ExtResource( 95 ) ],
|
"frames": [ ExtResource( 114 ), ExtResource( 128 ), ExtResource( 93 ), ExtResource( 107 ), ExtResource( 117 ), ExtResource( 102 ), ExtResource( 81 ), ExtResource( 118 ), ExtResource( 76 ), ExtResource( 115 ), ExtResource( 127 ), ExtResource( 123 ), ExtResource( 113 ), ExtResource( 77 ), ExtResource( 78 ), ExtResource( 124 ), ExtResource( 94 ), ExtResource( 112 ), ExtResource( 131 ), ExtResource( 95 ) ],
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"name": "boost-speed-right-03",
|
"name": "boost-speed-right-03",
|
||||||
"speed": 50.0
|
"speed": 50.0
|
||||||
}, {
|
}, {
|
||||||
"frames": [ ExtResource( 167 ), ExtResource( 157 ), ExtResource( 158 ), ExtResource( 126 ), ExtResource( 90 ), ExtResource( 89 ), ExtResource( 97 ), ExtResource( 88 ), ExtResource( 98 ), ExtResource( 91 ), ExtResource( 125 ), ExtResource( 105 ), ExtResource( 82 ), ExtResource( 84 ), ExtResource( 92 ), ExtResource( 103 ), ExtResource( 122 ), ExtResource( 130 ), ExtResource( 104 ), ExtResource( 116 ) ],
|
"frames": [ ExtResource( 48 ), ExtResource( 4 ), ExtResource( 3 ), ExtResource( 46 ), ExtResource( 47 ), ExtResource( 32 ), ExtResource( 13 ), ExtResource( 40 ), ExtResource( 6 ), ExtResource( 15 ), ExtResource( 22 ), ExtResource( 14 ), ExtResource( 9 ), ExtResource( 37 ), ExtResource( 23 ), ExtResource( 39 ), ExtResource( 20 ), ExtResource( 18 ), ExtResource( 7 ), ExtResource( 34 ) ],
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"name": "move-speed-right-02",
|
"name": "boost-speed-left-01",
|
||||||
"speed": 35.0
|
"speed": 50.0
|
||||||
|
}, {
|
||||||
|
"frames": [ ExtResource( 99 ), ExtResource( 83 ), ExtResource( 109 ), ExtResource( 111 ), ExtResource( 101 ), ExtResource( 96 ), ExtResource( 79 ), ExtResource( 132 ), ExtResource( 119 ), ExtResource( 80 ), ExtResource( 85 ), ExtResource( 86 ), ExtResource( 87 ), ExtResource( 106 ), ExtResource( 121 ), ExtResource( 129 ), ExtResource( 100 ), ExtResource( 108 ), ExtResource( 110 ), ExtResource( 120 ) ],
|
||||||
|
"loop": true,
|
||||||
|
"name": "idle-speed-right-04",
|
||||||
|
"speed": 25.0
|
||||||
}, {
|
}, {
|
||||||
"frames": [ ExtResource( 48 ), ExtResource( 4 ), ExtResource( 3 ), ExtResource( 46 ), ExtResource( 47 ), ExtResource( 32 ), ExtResource( 13 ), ExtResource( 40 ), ExtResource( 6 ), ExtResource( 15 ), ExtResource( 22 ), ExtResource( 14 ), ExtResource( 9 ), ExtResource( 37 ), ExtResource( 23 ), ExtResource( 39 ), ExtResource( 20 ), ExtResource( 18 ), ExtResource( 7 ), ExtResource( 34 ) ],
|
"frames": [ ExtResource( 48 ), ExtResource( 4 ), ExtResource( 3 ), ExtResource( 46 ), ExtResource( 47 ), ExtResource( 32 ), ExtResource( 13 ), ExtResource( 40 ), ExtResource( 6 ), ExtResource( 15 ), ExtResource( 22 ), ExtResource( 14 ), ExtResource( 9 ), ExtResource( 37 ), ExtResource( 23 ), ExtResource( 39 ), ExtResource( 20 ), ExtResource( 18 ), ExtResource( 7 ), ExtResource( 34 ) ],
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"name": "move-speed-left-01",
|
"name": "move-speed-left-01",
|
||||||
"speed": 35.0
|
"speed": 35.0
|
||||||
|
}, {
|
||||||
|
"frames": [ ExtResource( 5 ), ExtResource( 42 ), ExtResource( 35 ), ExtResource( 24 ), ExtResource( 8 ), ExtResource( 31 ), ExtResource( 30 ), ExtResource( 38 ), ExtResource( 10 ), ExtResource( 43 ), ExtResource( 41 ), ExtResource( 33 ), ExtResource( 44 ), ExtResource( 19 ), ExtResource( 29 ), ExtResource( 25 ), ExtResource( 36 ), ExtResource( 12 ), ExtResource( 45 ), ExtResource( 21 ) ],
|
||||||
|
"loop": true,
|
||||||
|
"name": "boost-speed-right-01",
|
||||||
|
"speed": 50.0
|
||||||
|
}, {
|
||||||
|
"frames": [ ExtResource( 5 ), ExtResource( 42 ), ExtResource( 35 ), ExtResource( 24 ), ExtResource( 8 ), ExtResource( 31 ), ExtResource( 30 ), ExtResource( 38 ), ExtResource( 10 ), ExtResource( 43 ), ExtResource( 41 ), ExtResource( 33 ), ExtResource( 44 ), ExtResource( 19 ), ExtResource( 29 ), ExtResource( 25 ), ExtResource( 36 ), ExtResource( 12 ), ExtResource( 45 ), ExtResource( 21 ) ],
|
||||||
|
"loop": true,
|
||||||
|
"name": "move-speed-right-01",
|
||||||
|
"speed": 35.0
|
||||||
|
}, {
|
||||||
|
"frames": [ ExtResource( 114 ), ExtResource( 128 ), ExtResource( 93 ), ExtResource( 107 ), ExtResource( 117 ), ExtResource( 102 ), ExtResource( 81 ), ExtResource( 118 ), ExtResource( 76 ), ExtResource( 115 ), ExtResource( 127 ), ExtResource( 123 ), ExtResource( 113 ), ExtResource( 77 ), ExtResource( 78 ), ExtResource( 124 ), ExtResource( 94 ), ExtResource( 112 ), ExtResource( 131 ), ExtResource( 95 ) ],
|
||||||
|
"loop": true,
|
||||||
|
"name": "move-speed-right-03",
|
||||||
|
"speed": 35.0
|
||||||
|
}, {
|
||||||
|
"frames": [ ExtResource( 162 ), ExtResource( 135 ), ExtResource( 146 ), ExtResource( 141 ), ExtResource( 143 ), ExtResource( 163 ), ExtResource( 149 ), ExtResource( 136 ), ExtResource( 154 ), ExtResource( 137 ), ExtResource( 165 ), ExtResource( 142 ), ExtResource( 139 ), ExtResource( 159 ), ExtResource( 140 ), ExtResource( 155 ), ExtResource( 144 ), ExtResource( 151 ), ExtResource( 153 ), ExtResource( 166 ) ],
|
||||||
|
"loop": true,
|
||||||
|
"name": "boost-speed-left-04",
|
||||||
|
"speed": 50.0
|
||||||
|
}, {
|
||||||
|
"frames": [ ExtResource( 99 ), ExtResource( 83 ), ExtResource( 109 ), ExtResource( 111 ), ExtResource( 101 ), ExtResource( 96 ), ExtResource( 79 ), ExtResource( 132 ), ExtResource( 119 ), ExtResource( 80 ), ExtResource( 85 ), ExtResource( 86 ), ExtResource( 87 ), ExtResource( 106 ), ExtResource( 121 ), ExtResource( 129 ), ExtResource( 100 ), ExtResource( 108 ), ExtResource( 110 ), ExtResource( 120 ) ],
|
||||||
|
"loop": true,
|
||||||
|
"name": "move-speed-right-04",
|
||||||
|
"speed": 35.0
|
||||||
|
}, {
|
||||||
|
"frames": [ ExtResource( 99 ), ExtResource( 83 ), ExtResource( 109 ), ExtResource( 111 ), ExtResource( 101 ), ExtResource( 96 ), ExtResource( 79 ), ExtResource( 132 ), ExtResource( 119 ), ExtResource( 80 ), ExtResource( 85 ), ExtResource( 86 ), ExtResource( 87 ), ExtResource( 106 ), ExtResource( 121 ), ExtResource( 129 ), ExtResource( 100 ), ExtResource( 108 ), ExtResource( 110 ), ExtResource( 120 ) ],
|
||||||
|
"loop": true,
|
||||||
|
"name": "boost-speed-right-04",
|
||||||
|
"speed": 50.0
|
||||||
|
}, {
|
||||||
|
"frames": [ ExtResource( 5 ), ExtResource( 42 ), ExtResource( 35 ), ExtResource( 24 ), ExtResource( 8 ), ExtResource( 31 ), ExtResource( 30 ), ExtResource( 38 ), ExtResource( 10 ), ExtResource( 43 ), ExtResource( 41 ), ExtResource( 33 ), ExtResource( 44 ), ExtResource( 19 ), ExtResource( 29 ), ExtResource( 25 ), ExtResource( 36 ), ExtResource( 12 ), ExtResource( 45 ), ExtResource( 21 ) ],
|
||||||
|
"loop": true,
|
||||||
|
"name": "idle-speed-right-02",
|
||||||
|
"speed": 25.0
|
||||||
|
}, {
|
||||||
|
"frames": [ ExtResource( 167 ), ExtResource( 157 ), ExtResource( 158 ), ExtResource( 126 ), ExtResource( 90 ), ExtResource( 89 ), ExtResource( 97 ), ExtResource( 88 ), ExtResource( 98 ), ExtResource( 91 ), ExtResource( 125 ), ExtResource( 105 ), ExtResource( 82 ), ExtResource( 84 ), ExtResource( 92 ), ExtResource( 103 ), ExtResource( 122 ), ExtResource( 130 ), ExtResource( 104 ), ExtResource( 116 ) ],
|
||||||
|
"loop": true,
|
||||||
|
"name": "boost-speed-right-02",
|
||||||
|
"speed": 50.0
|
||||||
} ]
|
} ]
|
||||||
|
|
||||||
|
[sub_resource type="CircleShape2D" id=1]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id=3]
|
[sub_resource type="RectangleShape2D" id=3]
|
||||||
extents = Vector2( 61.9925, 52.2535 )
|
extents = Vector2( 61.9925, 52.2535 )
|
||||||
|
|
||||||
@ -298,9 +296,14 @@ radius = 41.5403
|
|||||||
|
|
||||||
[sub_resource type="SpriteFrames" id=6]
|
[sub_resource type="SpriteFrames" id=6]
|
||||||
animations = [ {
|
animations = [ {
|
||||||
|
"frames": [ ExtResource( 169 ) ],
|
||||||
|
"loop": true,
|
||||||
|
"name": "04",
|
||||||
|
"speed": 5.0
|
||||||
|
}, {
|
||||||
"frames": [ ExtResource( 170 ) ],
|
"frames": [ ExtResource( 170 ) ],
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"name": "02",
|
"name": "03",
|
||||||
"speed": 5.0
|
"speed": 5.0
|
||||||
}, {
|
}, {
|
||||||
"frames": [ ExtResource( 27 ) ],
|
"frames": [ ExtResource( 27 ) ],
|
||||||
@ -310,24 +313,14 @@ animations = [ {
|
|||||||
}, {
|
}, {
|
||||||
"frames": [ ExtResource( 170 ) ],
|
"frames": [ ExtResource( 170 ) ],
|
||||||
"loop": true,
|
"loop": true,
|
||||||
"name": "03",
|
"name": "02",
|
||||||
"speed": 5.0
|
|
||||||
}, {
|
|
||||||
"frames": [ ExtResource( 169 ) ],
|
|
||||||
"loop": true,
|
|
||||||
"name": "04",
|
|
||||||
"speed": 5.0
|
"speed": 5.0
|
||||||
} ]
|
} ]
|
||||||
|
|
||||||
[node name="player" type="KinematicBody2D" groups=[
|
[node name="player" type="KinematicBody2D" groups=["Net", "Player"]]
|
||||||
"Net",
|
|
||||||
"Player",
|
|
||||||
]]
|
|
||||||
script = ExtResource( 11 )
|
script = ExtResource( 11 )
|
||||||
|
|
||||||
[node name="player_collider" type="CollisionShape2D" parent="."]
|
[node name="trajectories" type="Node2D" parent="."]
|
||||||
shape = SubResource( 1 )
|
|
||||||
script = ExtResource( 2 )
|
|
||||||
|
|
||||||
[node name="player_animated_sprite" type="AnimatedSprite" parent="."]
|
[node name="player_animated_sprite" type="AnimatedSprite" parent="."]
|
||||||
scale = Vector2( 0.25, 0.25 )
|
scale = Vector2( 0.25, 0.25 )
|
||||||
@ -341,6 +334,10 @@ scale = Vector2( 0.25, 0.25 )
|
|||||||
z_index = 1
|
z_index = 1
|
||||||
texture = ExtResource( 1 )
|
texture = ExtResource( 1 )
|
||||||
|
|
||||||
|
[node name="player_collider" type="CollisionShape2D" parent="."]
|
||||||
|
shape = SubResource( 1 )
|
||||||
|
script = ExtResource( 2 )
|
||||||
|
|
||||||
[node name="Tween" type="Tween" parent="."]
|
[node name="Tween" type="Tween" parent="."]
|
||||||
|
|
||||||
[node name="network_tick_rate" type="Timer" parent="."]
|
[node name="network_tick_rate" type="Timer" parent="."]
|
||||||
@ -373,7 +370,7 @@ texture = ExtResource( 26 )
|
|||||||
shape = SubResource( 5 )
|
shape = SubResource( 5 )
|
||||||
|
|
||||||
[node name="Player-character-theme-gun-na3" type="Sprite" parent="weaponHolder"]
|
[node name="Player-character-theme-gun-na3" type="Sprite" parent="weaponHolder"]
|
||||||
scale = Vector2( 0.25, 0.25 )
|
scale = Vector2( 0.3, 0.25 )
|
||||||
texture = ExtResource( 171 )
|
texture = ExtResource( 171 )
|
||||||
|
|
||||||
[node name="Player-character-theme-gun" type="AnimatedSprite" parent="weaponHolder"]
|
[node name="Player-character-theme-gun" type="AnimatedSprite" parent="weaponHolder"]
|
||||||
@ -386,10 +383,6 @@ position = Vector2( -120, 0 )
|
|||||||
rotation = 3.14159
|
rotation = 3.14159
|
||||||
scale = Vector2( 4, 4 )
|
scale = Vector2( 4, 4 )
|
||||||
|
|
||||||
[node name="player_sprite_dead" type="Sprite" parent="."]
|
|
||||||
visible = false
|
|
||||||
texture = ExtResource( 16 )
|
|
||||||
|
|
||||||
[connection signal="timeout" from="network_tick_rate" to="." method="_on_network_tick_rate_timeout"]
|
[connection signal="timeout" from="network_tick_rate" to="." method="_on_network_tick_rate_timeout"]
|
||||||
[connection signal="timeout" from="reload_timer" to="." method="_on_reload_timer_timeout"]
|
[connection signal="timeout" from="reload_timer" to="." method="_on_reload_timer_timeout"]
|
||||||
[connection signal="timeout" from="hit_timer" to="." method="_on_hit_timer_timeout"]
|
[connection signal="timeout" from="hit_timer" to="." method="_on_hit_timer_timeout"]
|
||||||
|
|||||||
@ -1,9 +1,6 @@
|
|||||||
[gd_scene load_steps=3 format=2]
|
[gd_scene load_steps=2 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://source/assets/scripts/shooting/Hyperbola/Hyperbolic_Barrel.gd" type="Script" id=1]
|
[ext_resource path="res://source/assets/scripts/shooting/Hyperbola/Hyperbolic_Barrel.gd" type="Script" id=1]
|
||||||
|
|
||||||
[sub_resource type="Curve" id=1]
|
|
||||||
|
|
||||||
[node name="Hyperbolic_Barrel" type="Line2D"]
|
[node name="Hyperbolic_Barrel" type="Line2D"]
|
||||||
width_curve = SubResource( 1 )
|
|
||||||
script = ExtResource( 1 )
|
script = ExtResource( 1 )
|
||||||
|
|||||||
@ -7,15 +7,11 @@
|
|||||||
radius = 9.85811
|
radius = 9.85811
|
||||||
height = 35.0082
|
height = 35.0082
|
||||||
|
|
||||||
[node name="player_character_bullet" type="Sprite" groups=[
|
[node name="player_character_bullet" type="Sprite" groups=["Net"]]
|
||||||
"Net",
|
|
||||||
]]
|
|
||||||
texture = ExtResource( 1 )
|
texture = ExtResource( 1 )
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
|
|
||||||
[node name="hitbox" type="Area2D" parent="." groups=[
|
[node name="hitbox" type="Area2D" parent="." groups=["Player_damager"]]
|
||||||
"Player_damager",
|
|
||||||
]]
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="hitbox"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="hitbox"]
|
||||||
position = Vector2( 10.8253, -0.381073 )
|
position = Vector2( 10.8253, -0.381073 )
|
||||||
|
|||||||
@ -7,15 +7,11 @@
|
|||||||
radius = 9.85811
|
radius = 9.85811
|
||||||
height = 35.0082
|
height = 35.0082
|
||||||
|
|
||||||
[node name="player_character_bullet" type="Sprite" groups=[
|
[node name="player_character_bullet" type="Sprite" groups=["Net"]]
|
||||||
"Net",
|
|
||||||
]]
|
|
||||||
texture = ExtResource( 1 )
|
texture = ExtResource( 1 )
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
|
|
||||||
[node name="hitbox" type="Area2D" parent="." groups=[
|
[node name="hitbox" type="Area2D" parent="." groups=["Player_damager"]]
|
||||||
"Player_damager",
|
|
||||||
]]
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="hitbox"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="hitbox"]
|
||||||
position = Vector2( 10.8253, -0.381073 )
|
position = Vector2( 10.8253, -0.381073 )
|
||||||
|
|||||||
@ -4,5 +4,4 @@
|
|||||||
|
|
||||||
[node name="Sine_Barrel" type="Line2D"]
|
[node name="Sine_Barrel" type="Line2D"]
|
||||||
show_behind_parent = true
|
show_behind_parent = true
|
||||||
width = 4.0
|
|
||||||
script = ExtResource( 1 )
|
script = ExtResource( 1 )
|
||||||
|
|||||||
@ -7,15 +7,11 @@
|
|||||||
radius = 9.85811
|
radius = 9.85811
|
||||||
height = 35.0082
|
height = 35.0082
|
||||||
|
|
||||||
[node name="player_character_bullet" type="Sprite" groups=[
|
[node name="player_character_bullet" type="Sprite" groups=["Net"]]
|
||||||
"Net",
|
|
||||||
]]
|
|
||||||
texture = ExtResource( 1 )
|
texture = ExtResource( 1 )
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
|
|
||||||
[node name="hitbox" type="Area2D" parent="." groups=[
|
[node name="hitbox" type="Area2D" parent="." groups=["Player_damager"]]
|
||||||
"Player_damager",
|
|
||||||
]]
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="hitbox"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="hitbox"]
|
||||||
position = Vector2( 10.8253, -0.381073 )
|
position = Vector2( 10.8253, -0.381073 )
|
||||||
|
|||||||
@ -160,10 +160,10 @@ margin_left = 2.37842
|
|||||||
margin_top = -35.5
|
margin_top = -35.5
|
||||||
margin_right = 2.37842
|
margin_right = 2.37842
|
||||||
margin_bottom = 106.5
|
margin_bottom = 106.5
|
||||||
custom_fonts/font = SubResource( 1 )
|
|
||||||
custom_colors/font_color_shadow = Color( 0, 0, 0, 1 )
|
custom_colors/font_color_shadow = Color( 0, 0, 0, 1 )
|
||||||
custom_constants/shadow_offset_x = 6
|
custom_constants/shadow_offset_x = 6
|
||||||
custom_constants/shadow_offset_y = 6
|
custom_constants/shadow_offset_y = 6
|
||||||
|
custom_fonts/font = SubResource( 1 )
|
||||||
text = "You are the winner"
|
text = "You are the winner"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
|
|||||||
@ -54,8 +54,8 @@ margin_left = -150.0
|
|||||||
margin_top = -36.0
|
margin_top = -36.0
|
||||||
margin_right = 150.0
|
margin_right = 150.0
|
||||||
margin_bottom = 36.0
|
margin_bottom = 36.0
|
||||||
custom_fonts/font = ExtResource( 5 )
|
|
||||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||||
|
custom_fonts/font = ExtResource( 5 )
|
||||||
text = "PLAY"
|
text = "PLAY"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
@ -79,8 +79,8 @@ margin_left = -98.8223
|
|||||||
margin_top = -36.0
|
margin_top = -36.0
|
||||||
margin_right = 134.178
|
margin_right = 134.178
|
||||||
margin_bottom = 36.0
|
margin_bottom = 36.0
|
||||||
custom_fonts/font = ExtResource( 5 )
|
|
||||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||||
|
custom_fonts/font = ExtResource( 5 )
|
||||||
text = "LAN Party"
|
text = "LAN Party"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
@ -111,8 +111,8 @@ margin_left = -150.0
|
|||||||
margin_top = -36.0
|
margin_top = -36.0
|
||||||
margin_right = 150.0
|
margin_right = 150.0
|
||||||
margin_bottom = 36.0
|
margin_bottom = 36.0
|
||||||
custom_fonts/font = ExtResource( 5 )
|
|
||||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||||
|
custom_fonts/font = ExtResource( 5 )
|
||||||
text = "EXIT"
|
text = "EXIT"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
|
|||||||
@ -12,16 +12,16 @@ use_mipmaps = true
|
|||||||
use_filter = true
|
use_filter = true
|
||||||
font_data = ExtResource( 2 )
|
font_data = ExtResource( 2 )
|
||||||
|
|
||||||
[sub_resource type="StyleBoxEmpty" id=2]
|
|
||||||
|
|
||||||
[sub_resource type="StyleBoxEmpty" id=3]
|
|
||||||
|
|
||||||
[sub_resource type="DynamicFont" id=4]
|
[sub_resource type="DynamicFont" id=4]
|
||||||
size = 36
|
size = 36
|
||||||
use_mipmaps = true
|
use_mipmaps = true
|
||||||
use_filter = true
|
use_filter = true
|
||||||
font_data = ExtResource( 2 )
|
font_data = ExtResource( 2 )
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxEmpty" id=2]
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxEmpty" id=3]
|
||||||
|
|
||||||
[sub_resource type="DynamicFont" id=5]
|
[sub_resource type="DynamicFont" id=5]
|
||||||
size = 36
|
size = 36
|
||||||
use_mipmaps = true
|
use_mipmaps = true
|
||||||
@ -61,8 +61,8 @@ margin_left = -225.0
|
|||||||
margin_top = -25.0
|
margin_top = -25.0
|
||||||
margin_right = -225.0
|
margin_right = -225.0
|
||||||
margin_bottom = -25.0
|
margin_bottom = -25.0
|
||||||
custom_fonts/font = SubResource( 1 )
|
|
||||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||||
|
custom_fonts/font = SubResource( 1 )
|
||||||
text = "Enter your username"
|
text = "Enter your username"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
@ -93,10 +93,10 @@ margin_left = -175.0
|
|||||||
margin_top = -28.0
|
margin_top = -28.0
|
||||||
margin_right = 175.0
|
margin_right = 175.0
|
||||||
margin_bottom = 28.0
|
margin_bottom = 28.0
|
||||||
|
custom_colors/selection_color = Color( 0.8, 0.8, 0.8, 1 )
|
||||||
|
custom_fonts/font = SubResource( 4 )
|
||||||
custom_styles/focus = SubResource( 2 )
|
custom_styles/focus = SubResource( 2 )
|
||||||
custom_styles/normal = SubResource( 3 )
|
custom_styles/normal = SubResource( 3 )
|
||||||
custom_fonts/font = SubResource( 4 )
|
|
||||||
custom_colors/selection_color = Color( 0.8, 0.8, 0.8, 1 )
|
|
||||||
align = 1
|
align = 1
|
||||||
placeholder_text = "username"
|
placeholder_text = "username"
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
@ -117,8 +117,8 @@ margin_bottom = 97.0
|
|||||||
[node name="Label" type="Label" parent="popup_screen/panel/confirm"]
|
[node name="Label" type="Label" parent="popup_screen/panel/confirm"]
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
custom_fonts/font = SubResource( 5 )
|
|
||||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||||
|
custom_fonts/font = SubResource( 5 )
|
||||||
text = "CONFIRM"
|
text = "CONFIRM"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
|
|||||||
46
source/scenes/OVERLAY/elements/Trajectory_Control.gd
Normal file
46
source/scenes/OVERLAY/elements/Trajectory_Control.gd
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
extends Control
|
||||||
|
|
||||||
|
|
||||||
|
func _ready():
|
||||||
|
Global.set('control', self)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
func _on_line_pressed():
|
||||||
|
Global.get('user_input').get_node('line').visible = true
|
||||||
|
Global.get('user_input').get_node('parabol').visible = false
|
||||||
|
Global.get('user_input').get_node('hyperbol').visible = false
|
||||||
|
Global.get('user_input').get_node('sin').visible = false
|
||||||
|
Global.get('player').enable_trajectory_line('line')
|
||||||
|
Global.get('player').trajectory = 'line'
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
|
||||||
|
func _on_parabol_pressed():
|
||||||
|
Global.get('user_input').get_node('parabol').visible = true
|
||||||
|
Global.get('user_input').get_node('line').visible = false
|
||||||
|
Global.get('user_input').get_node('hyperbol').visible = false
|
||||||
|
Global.get('user_input').get_node('sin').visible = false
|
||||||
|
Global.get('player').enable_trajectory_line('parab')
|
||||||
|
Global.get('player').trajectory = 'parab'
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
|
||||||
|
func _on_hyperbol_pressed():
|
||||||
|
Global.get('user_input').get_node('hyperbol').visible = true
|
||||||
|
Global.get('user_input').get_node('sin').visible = false
|
||||||
|
Global.get('user_input').get_node('line').visible = false
|
||||||
|
Global.get('user_input').get_node('parabol').visible = false
|
||||||
|
Global.get('player').enable_trajectory_line('hyper')
|
||||||
|
Global.get('player').trajectory = 'hyper'
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
|
||||||
|
func _on_sine_pressed():
|
||||||
|
Global.get('user_input').get_node('sin').visible = true
|
||||||
|
Global.get('user_input').get_node('line').visible = false
|
||||||
|
Global.get('user_input').get_node('hyperbol').visible = false
|
||||||
|
Global.get('user_input').get_node('parabol').visible = false
|
||||||
|
Global.get('player').enable_trajectory_line('sine')
|
||||||
|
Global.get('player').trajectory = 'sine'
|
||||||
|
pass # Replace with function body.
|
||||||
70
source/scenes/OVERLAY/elements/trajectories.gd
Normal file
70
source/scenes/OVERLAY/elements/trajectories.gd
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
extends Control
|
||||||
|
|
||||||
|
var a_param_line = 0
|
||||||
|
|
||||||
|
var a_param_parab = 1
|
||||||
|
var b_param_parab = 0
|
||||||
|
|
||||||
|
var a_param_hyper = 1
|
||||||
|
var b_param_hyper = 1
|
||||||
|
|
||||||
|
var freq = 5
|
||||||
|
var amp = 5
|
||||||
|
|
||||||
|
# Called when the node enters the scene tree for the first time.
|
||||||
|
func _ready():
|
||||||
|
Global.set('user_input', self)
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
func _on_LineEdit_text_entered(new_text):
|
||||||
|
a_param_line = int(new_text)
|
||||||
|
Global.get('player').enable_trajectory_line('line')
|
||||||
|
Global.get('player').trajectory = 'line'
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
|
||||||
|
func _on_a_param_LineEdit_text_entered(new_text):
|
||||||
|
a_param_parab = int(new_text)
|
||||||
|
Global.get('player').enable_trajectory_line('parab')
|
||||||
|
Global.get('player').trajectory = 'parab'
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
|
||||||
|
func _on_b_param_LineEdit_text_entered(new_text):
|
||||||
|
b_param_parab = int(new_text)
|
||||||
|
Global.get('player').enable_trajectory_line('parab')
|
||||||
|
Global.get('player').trajectory = 'parab'
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
|
||||||
|
func _on_a_param_h_LineEdit_text_entered(new_text):
|
||||||
|
a_param_hyper = int(new_text)
|
||||||
|
Global.get('player').enable_trajectory_line('hyper')
|
||||||
|
Global.get('player').trajectory = 'hyper'
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
|
||||||
|
func _on_b_param_h_LineEdit_text_entered(new_text):
|
||||||
|
b_param_hyper = int(new_text)
|
||||||
|
if b_param_hyper != 0:
|
||||||
|
Global.get('player').enable_trajectory_line('hyper')
|
||||||
|
Global.get('player').trajectory = 'hyper'
|
||||||
|
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
|
||||||
|
func _on_amp_text_entered(new_text):
|
||||||
|
amp = int(new_text)
|
||||||
|
Global.get('player').enable_trajectory_line('sine')
|
||||||
|
Global.get('player').trajectory = 'sine'
|
||||||
|
pass # Replace with function body.
|
||||||
|
|
||||||
|
|
||||||
|
func _on_freq_text_entered(new_text):
|
||||||
|
freq = int(new_text)
|
||||||
|
Global.get('player').enable_trajectory_line('sine')
|
||||||
|
Global.get('player').trajectory = 'sine'
|
||||||
|
pass # Replace with function body.
|
||||||
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=15 format=2]
|
[gd_scene load_steps=16 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://source/assets/sprites/GUI/in_game/trajectories/background.svg" type="Texture" id=1]
|
[ext_resource path="res://source/assets/sprites/GUI/in_game/trajectories/background.svg" type="Texture" id=1]
|
||||||
[ext_resource path="res://source/assets/sprites/GUI/in_game/trajectories/line_inactive.svg" type="Texture" id=2]
|
[ext_resource path="res://source/assets/sprites/GUI/in_game/trajectories/line_inactive.svg" type="Texture" id=2]
|
||||||
@ -10,6 +10,7 @@
|
|||||||
[ext_resource path="res://source/assets/sprites/GUI/in_game/trajectories/hyperbol_inactive.svg" type="Texture" id=8]
|
[ext_resource path="res://source/assets/sprites/GUI/in_game/trajectories/hyperbol_inactive.svg" type="Texture" id=8]
|
||||||
[ext_resource path="res://source/assets/sprites/GUI/in_game/trajectories/hyperbol_active.svg" type="Texture" id=9]
|
[ext_resource path="res://source/assets/sprites/GUI/in_game/trajectories/hyperbol_active.svg" type="Texture" id=9]
|
||||||
[ext_resource path="res://source/fonts/oxygen/Oxygen-Regular.ttf" type="DynamicFontData" id=10]
|
[ext_resource path="res://source/fonts/oxygen/Oxygen-Regular.ttf" type="DynamicFontData" id=10]
|
||||||
|
[ext_resource path="res://source/scenes/OVERLAY/elements/Trajectory_Control.gd" type="Script" id=11]
|
||||||
|
|
||||||
[sub_resource type="StyleBoxTexture" id=1]
|
[sub_resource type="StyleBoxTexture" id=1]
|
||||||
texture = ExtResource( 1 )
|
texture = ExtResource( 1 )
|
||||||
@ -61,8 +62,8 @@ margin_left = 128.0
|
|||||||
margin_top = 24.0
|
margin_top = 24.0
|
||||||
margin_right = 253.0
|
margin_right = 253.0
|
||||||
margin_bottom = 35.0
|
margin_bottom = 35.0
|
||||||
custom_fonts/font = SubResource( 3 )
|
|
||||||
custom_colors/font_color = Color( 0.113725, 0.203922, 0.552941, 1 )
|
custom_colors/font_color = Color( 0.113725, 0.203922, 0.552941, 1 )
|
||||||
|
custom_fonts/font = SubResource( 3 )
|
||||||
text = "Government issued - v/613.92.1"
|
text = "Government issued - v/613.92.1"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
@ -98,8 +99,8 @@ anchor_bottom = 1.0
|
|||||||
margin_left = 11.0
|
margin_left = 11.0
|
||||||
margin_top = -18.0
|
margin_top = -18.0
|
||||||
margin_right = -11.0
|
margin_right = -11.0
|
||||||
custom_fonts/font = SubResource( 4 )
|
|
||||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||||
|
custom_fonts/font = SubResource( 4 )
|
||||||
text = "line"
|
text = "line"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
@ -118,6 +119,8 @@ margin_left = -125.0
|
|||||||
margin_top = -40.0
|
margin_top = -40.0
|
||||||
margin_right = -25.0
|
margin_right = -25.0
|
||||||
margin_bottom = 60.0
|
margin_bottom = 60.0
|
||||||
|
focus_mode = 0
|
||||||
|
enabled_focus_mode = 0
|
||||||
texture_normal = ExtResource( 7 )
|
texture_normal = ExtResource( 7 )
|
||||||
texture_pressed = ExtResource( 4 )
|
texture_pressed = ExtResource( 4 )
|
||||||
texture_hover = ExtResource( 4 )
|
texture_hover = ExtResource( 4 )
|
||||||
@ -132,8 +135,8 @@ anchor_bottom = 1.0
|
|||||||
margin_left = 11.0
|
margin_left = 11.0
|
||||||
margin_top = -18.0
|
margin_top = -18.0
|
||||||
margin_right = -11.0
|
margin_right = -11.0
|
||||||
custom_fonts/font = SubResource( 4 )
|
|
||||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||||
|
custom_fonts/font = SubResource( 4 )
|
||||||
text = "parabol"
|
text = "parabol"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
@ -152,6 +155,8 @@ margin_left = 5.23596
|
|||||||
margin_top = -40.0
|
margin_top = -40.0
|
||||||
margin_right = 105.236
|
margin_right = 105.236
|
||||||
margin_bottom = 60.0
|
margin_bottom = 60.0
|
||||||
|
focus_mode = 0
|
||||||
|
enabled_focus_mode = 0
|
||||||
texture_normal = ExtResource( 8 )
|
texture_normal = ExtResource( 8 )
|
||||||
texture_pressed = ExtResource( 9 )
|
texture_pressed = ExtResource( 9 )
|
||||||
texture_hover = ExtResource( 9 )
|
texture_hover = ExtResource( 9 )
|
||||||
@ -167,8 +172,8 @@ anchor_bottom = 1.0
|
|||||||
margin_left = 11.0
|
margin_left = 11.0
|
||||||
margin_top = -18.0
|
margin_top = -18.0
|
||||||
margin_right = -11.0
|
margin_right = -11.0
|
||||||
custom_fonts/font = SubResource( 4 )
|
|
||||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||||
|
custom_fonts/font = SubResource( 4 )
|
||||||
text = "hyperbol"
|
text = "hyperbol"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
@ -187,6 +192,8 @@ margin_left = 135.0
|
|||||||
margin_top = -40.0
|
margin_top = -40.0
|
||||||
margin_right = 235.0
|
margin_right = 235.0
|
||||||
margin_bottom = 60.0
|
margin_bottom = 60.0
|
||||||
|
focus_mode = 0
|
||||||
|
enabled_focus_mode = 0
|
||||||
texture_normal = ExtResource( 6 )
|
texture_normal = ExtResource( 6 )
|
||||||
texture_pressed = ExtResource( 5 )
|
texture_pressed = ExtResource( 5 )
|
||||||
texture_hover = ExtResource( 5 )
|
texture_hover = ExtResource( 5 )
|
||||||
@ -202,8 +209,8 @@ margin_left = 11.0
|
|||||||
margin_top = -18.0
|
margin_top = -18.0
|
||||||
margin_right = -11.0
|
margin_right = -11.0
|
||||||
margin_bottom = 1.0
|
margin_bottom = 1.0
|
||||||
custom_fonts/font = SubResource( 4 )
|
|
||||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||||
|
custom_fonts/font = SubResource( 4 )
|
||||||
text = "sin"
|
text = "sin"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
@ -212,3 +219,16 @@ __meta__ = {
|
|||||||
"_edit_lock_": true,
|
"_edit_lock_": true,
|
||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[node name="Control" type="Control" parent="."]
|
||||||
|
margin_right = 40.0
|
||||||
|
margin_bottom = 40.0
|
||||||
|
script = ExtResource( 11 )
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[connection signal="pressed" from="line" to="Control" method="_on_line_pressed"]
|
||||||
|
[connection signal="pressed" from="parabol" to="Control" method="_on_parabol_pressed"]
|
||||||
|
[connection signal="pressed" from="hyperbol" to="Control" method="_on_hyperbol_pressed"]
|
||||||
|
[connection signal="pressed" from="sine" to="Control" method="_on_sine_pressed"]
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=24 format=2]
|
[gd_scene load_steps=26 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://source/assets/sprites/GUI/in_game/user_input/background_panel.svg" type="Texture" id=1]
|
[ext_resource path="res://source/assets/sprites/GUI/in_game/user_input/background_panel.svg" type="Texture" id=1]
|
||||||
[ext_resource path="res://source/fonts/oxygen/Oxygen-Regular.ttf" type="DynamicFontData" id=2]
|
[ext_resource path="res://source/fonts/oxygen/Oxygen-Regular.ttf" type="DynamicFontData" id=2]
|
||||||
@ -12,6 +12,8 @@
|
|||||||
[ext_resource path="res://source/assets/sprites/GUI/in_game/user_input/ready_button/ready_button_pressed.svg" type="Texture" id=10]
|
[ext_resource path="res://source/assets/sprites/GUI/in_game/user_input/ready_button/ready_button_pressed.svg" type="Texture" id=10]
|
||||||
[ext_resource path="res://source/assets/sprites/GUI/in_game/user_input/ready_button/ready_button_hover.svg" type="Texture" id=11]
|
[ext_resource path="res://source/assets/sprites/GUI/in_game/user_input/ready_button/ready_button_hover.svg" type="Texture" id=11]
|
||||||
[ext_resource path="res://source/assets/sprites/GUI/in_game/user_input/skip_button/skip_button.svg" type="Texture" id=12]
|
[ext_resource path="res://source/assets/sprites/GUI/in_game/user_input/skip_button/skip_button.svg" type="Texture" id=12]
|
||||||
|
[ext_resource path="res://source/scenes/OVERLAY/elements/trajectories.gd" type="Script" id=13]
|
||||||
|
[ext_resource path="res://icon.png" type="Texture" id=14]
|
||||||
|
|
||||||
[sub_resource type="StyleBoxTexture" id=1]
|
[sub_resource type="StyleBoxTexture" id=1]
|
||||||
texture = ExtResource( 1 )
|
texture = ExtResource( 1 )
|
||||||
@ -72,6 +74,7 @@ font_data = ExtResource( 2 )
|
|||||||
[node name="user_input" type="Panel"]
|
[node name="user_input" type="Panel"]
|
||||||
margin_right = 480.0
|
margin_right = 480.0
|
||||||
margin_bottom = 156.0
|
margin_bottom = 156.0
|
||||||
|
mouse_filter = 1
|
||||||
custom_styles/panel = SubResource( 1 )
|
custom_styles/panel = SubResource( 1 )
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_lock_": true,
|
"_edit_lock_": true,
|
||||||
@ -85,11 +88,14 @@ margin_left = 50.0
|
|||||||
margin_top = 28.0
|
margin_top = 28.0
|
||||||
margin_right = -330.0
|
margin_right = -330.0
|
||||||
margin_bottom = -28.0
|
margin_bottom = -28.0
|
||||||
|
mouse_filter = 1
|
||||||
|
script = ExtResource( 13 )
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="line" type="Panel" parent="trajectories"]
|
[node name="line" type="Panel" parent="trajectories"]
|
||||||
|
visible = false
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
anchor_top = 0.5
|
anchor_top = 0.5
|
||||||
anchor_right = 0.5
|
anchor_right = 0.5
|
||||||
@ -98,6 +104,7 @@ margin_left = -50.0
|
|||||||
margin_top = -50.0
|
margin_top = -50.0
|
||||||
margin_right = 50.0
|
margin_right = 50.0
|
||||||
margin_bottom = 50.0
|
margin_bottom = 50.0
|
||||||
|
mouse_filter = 1
|
||||||
custom_styles/panel = SubResource( 2 )
|
custom_styles/panel = SubResource( 2 )
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_lock_": true,
|
"_edit_lock_": true,
|
||||||
@ -112,8 +119,8 @@ anchor_bottom = 1.0
|
|||||||
margin_left = -39.0
|
margin_left = -39.0
|
||||||
margin_top = -19.0
|
margin_top = -19.0
|
||||||
margin_right = 39.0
|
margin_right = 39.0
|
||||||
custom_fonts/font = SubResource( 3 )
|
|
||||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||||
|
custom_fonts/font = SubResource( 3 )
|
||||||
text = "line"
|
text = "line"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
@ -123,6 +130,27 @@ __meta__ = {
|
|||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[node name="LineEdit" type="LineEdit" parent="trajectories/line"]
|
||||||
|
margin_left = 206.0
|
||||||
|
margin_top = 12.0
|
||||||
|
margin_right = 288.0
|
||||||
|
margin_bottom = 78.0
|
||||||
|
focus_mode = 1
|
||||||
|
mouse_filter = 1
|
||||||
|
max_length = 3
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[node name="x_label" type="Label" parent="trajectories/line"]
|
||||||
|
margin_left = 277.0
|
||||||
|
margin_top = 44.0
|
||||||
|
margin_right = 317.0
|
||||||
|
margin_bottom = 58.0
|
||||||
|
text = "x"
|
||||||
|
align = 1
|
||||||
|
valign = 1
|
||||||
|
|
||||||
[node name="parabol" type="Panel" parent="trajectories"]
|
[node name="parabol" type="Panel" parent="trajectories"]
|
||||||
visible = false
|
visible = false
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
@ -133,6 +161,7 @@ margin_left = -50.0
|
|||||||
margin_top = -50.0
|
margin_top = -50.0
|
||||||
margin_right = 50.0
|
margin_right = 50.0
|
||||||
margin_bottom = 50.0
|
margin_bottom = 50.0
|
||||||
|
mouse_filter = 1
|
||||||
custom_styles/panel = SubResource( 4 )
|
custom_styles/panel = SubResource( 4 )
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_lock_": true,
|
"_edit_lock_": true,
|
||||||
@ -147,8 +176,8 @@ anchor_bottom = 1.0
|
|||||||
margin_left = -39.0
|
margin_left = -39.0
|
||||||
margin_top = -19.0
|
margin_top = -19.0
|
||||||
margin_right = 39.0
|
margin_right = 39.0
|
||||||
custom_fonts/font = SubResource( 5 )
|
|
||||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||||
|
custom_fonts/font = SubResource( 5 )
|
||||||
text = "parabol"
|
text = "parabol"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
@ -158,6 +187,41 @@ __meta__ = {
|
|||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[node name="x^2 label" type="Label" parent="trajectories/parabol"]
|
||||||
|
margin_left = 256.0
|
||||||
|
margin_top = 41.0
|
||||||
|
margin_right = 296.0
|
||||||
|
margin_bottom = 55.0
|
||||||
|
text = "x^2 +"
|
||||||
|
|
||||||
|
[node name="a_param_LineEdit" type="LineEdit" parent="trajectories/parabol"]
|
||||||
|
margin_left = 193.0
|
||||||
|
margin_top = 35.0
|
||||||
|
margin_right = 251.0
|
||||||
|
margin_bottom = 59.0
|
||||||
|
focus_mode = 1
|
||||||
|
max_length = 3
|
||||||
|
|
||||||
|
[node name="b_param_LineEdit" type="LineEdit" parent="trajectories/parabol"]
|
||||||
|
margin_left = 293.0
|
||||||
|
margin_top = 36.0
|
||||||
|
margin_right = 351.0
|
||||||
|
margin_bottom = 60.0
|
||||||
|
focus_mode = 1
|
||||||
|
max_length = 3
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[node name="x_label" type="Label" parent="trajectories/parabol"]
|
||||||
|
margin_left = 340.0
|
||||||
|
margin_top = 41.0
|
||||||
|
margin_right = 380.0
|
||||||
|
margin_bottom = 55.0
|
||||||
|
text = "x"
|
||||||
|
align = 1
|
||||||
|
valign = 1
|
||||||
|
|
||||||
[node name="hyperbol" type="Panel" parent="trajectories"]
|
[node name="hyperbol" type="Panel" parent="trajectories"]
|
||||||
visible = false
|
visible = false
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
@ -182,8 +246,8 @@ anchor_bottom = 1.0
|
|||||||
margin_left = -39.0
|
margin_left = -39.0
|
||||||
margin_top = -19.0
|
margin_top = -19.0
|
||||||
margin_right = 39.0
|
margin_right = 39.0
|
||||||
custom_fonts/font = SubResource( 7 )
|
|
||||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||||
|
custom_fonts/font = SubResource( 7 )
|
||||||
text = "hyperbol"
|
text = "hyperbol"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
@ -193,6 +257,35 @@ __meta__ = {
|
|||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[node name="a_param_h_LineEdit" type="LineEdit" parent="trajectories/hyperbol"]
|
||||||
|
margin_left = 225.0
|
||||||
|
margin_top = 13.0
|
||||||
|
margin_right = 283.0
|
||||||
|
margin_bottom = 37.0
|
||||||
|
focus_mode = 1
|
||||||
|
max_length = 3
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[node name="b_param_h_LineEdit" type="LineEdit" parent="trajectories/hyperbol"]
|
||||||
|
margin_left = 211.0
|
||||||
|
margin_top = 45.0
|
||||||
|
margin_right = 269.0
|
||||||
|
margin_bottom = 69.0
|
||||||
|
focus_mode = 1
|
||||||
|
max_length = 3
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[node name="Sprite" type="Sprite" parent="trajectories/hyperbol"]
|
||||||
|
modulate = Color( 0, 0, 0, 1 )
|
||||||
|
self_modulate = Color( 0, 0, 0, 1 )
|
||||||
|
position = Vector2( 254, 41 )
|
||||||
|
scale = Vector2( 0.0401042, 0.00260416 )
|
||||||
|
texture = ExtResource( 14 )
|
||||||
|
|
||||||
[node name="sin" type="Panel" parent="trajectories"]
|
[node name="sin" type="Panel" parent="trajectories"]
|
||||||
visible = false
|
visible = false
|
||||||
anchor_left = 0.5
|
anchor_left = 0.5
|
||||||
@ -217,8 +310,8 @@ anchor_bottom = 1.0
|
|||||||
margin_left = -39.0
|
margin_left = -39.0
|
||||||
margin_top = -19.0
|
margin_top = -19.0
|
||||||
margin_right = 39.0
|
margin_right = 39.0
|
||||||
custom_fonts/font = SubResource( 7 )
|
|
||||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||||
|
custom_fonts/font = SubResource( 7 )
|
||||||
text = "sin"
|
text = "sin"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
@ -228,11 +321,64 @@ __meta__ = {
|
|||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[node name="x_label" type="Label" parent="trajectories/sin"]
|
||||||
|
margin_left = 341.0
|
||||||
|
margin_top = 37.0
|
||||||
|
margin_right = 381.0
|
||||||
|
margin_bottom = 51.0
|
||||||
|
text = "x)"
|
||||||
|
align = 1
|
||||||
|
valign = 1
|
||||||
|
|
||||||
|
[node name="amp" type="LineEdit" parent="trajectories/sin"]
|
||||||
|
margin_left = 204.0
|
||||||
|
margin_top = 33.0
|
||||||
|
margin_right = 262.0
|
||||||
|
margin_bottom = 57.0
|
||||||
|
focus_mode = 1
|
||||||
|
max_length = 3
|
||||||
|
|
||||||
|
[node name="freq" type="LineEdit" parent="trajectories/sin"]
|
||||||
|
margin_left = 291.0
|
||||||
|
margin_top = 33.0
|
||||||
|
margin_right = 349.0
|
||||||
|
margin_bottom = 57.0
|
||||||
|
focus_mode = 1
|
||||||
|
max_length = 3
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[node name="sin()" type="Label" parent="trajectories/sin"]
|
||||||
|
margin_left = 255.0
|
||||||
|
margin_top = 37.0
|
||||||
|
margin_right = 295.0
|
||||||
|
margin_bottom = 51.0
|
||||||
|
text = "sin("
|
||||||
|
align = 1
|
||||||
|
valign = 1
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[node name="Func_Label" type="Label" parent="trajectories"]
|
||||||
|
margin_left = 121.0
|
||||||
|
margin_top = 28.0
|
||||||
|
margin_right = 237.0
|
||||||
|
margin_bottom = 65.0
|
||||||
|
text = "f(x) = "
|
||||||
|
align = 1
|
||||||
|
valign = 1
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
|
||||||
[node name="controls" type="Control" parent="."]
|
[node name="controls" type="Control" parent="."]
|
||||||
margin_left = 165.0
|
margin_left = 165.0
|
||||||
margin_top = 13.0
|
margin_top = 13.0
|
||||||
margin_right = 465.0
|
margin_right = 465.0
|
||||||
margin_bottom = 143.0
|
margin_bottom = 143.0
|
||||||
|
mouse_filter = 2
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
@ -292,3 +438,11 @@ custom_fonts/font = SubResource( 11 )
|
|||||||
text = "Skip"
|
text = "Skip"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
|
|
||||||
|
[connection signal="text_entered" from="trajectories/line/LineEdit" to="trajectories" method="_on_LineEdit_text_entered"]
|
||||||
|
[connection signal="text_entered" from="trajectories/parabol/a_param_LineEdit" to="trajectories" method="_on_a_param_LineEdit_text_entered"]
|
||||||
|
[connection signal="text_entered" from="trajectories/parabol/b_param_LineEdit" to="trajectories" method="_on_b_param_LineEdit_text_entered"]
|
||||||
|
[connection signal="text_entered" from="trajectories/hyperbol/a_param_h_LineEdit" to="trajectories" method="_on_a_param_h_LineEdit_text_entered"]
|
||||||
|
[connection signal="text_entered" from="trajectories/hyperbol/b_param_h_LineEdit" to="trajectories" method="_on_b_param_h_LineEdit_text_entered"]
|
||||||
|
[connection signal="text_entered" from="trajectories/sin/amp" to="trajectories" method="_on_amp_text_entered"]
|
||||||
|
[connection signal="text_entered" from="trajectories/sin/freq" to="trajectories" method="_on_freq_text_entered"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user