mirror of
https://github.com/kristoferssolo/FuncIt.git
synced 2025-10-21 19:30:35 +00:00
Fixed dependencies
This commit is contained in:
parent
bd6b71eb0c
commit
e4f0bbd726
@ -20,6 +20,10 @@ Network="*res://source/assets/scripts/server_handlers/network_processors/network
|
|||||||
Global="*res://source/assets/scripts/server_handlers/global.gd"
|
Global="*res://source/assets/scripts/server_handlers/global.gd"
|
||||||
PersistentNodes="*res://source/scenes/OVERLAY/elements/persistent_nodes.tscn"
|
PersistentNodes="*res://source/scenes/OVERLAY/elements/persistent_nodes.tscn"
|
||||||
|
|
||||||
|
[debug]
|
||||||
|
|
||||||
|
settings/stdout/print_fps=true
|
||||||
|
|
||||||
[display]
|
[display]
|
||||||
|
|
||||||
window/size/width=1920
|
window/size/width=1920
|
||||||
@ -37,42 +41,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,"physical_scancode":0,"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,"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)
|
, 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)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
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,"physical_scancode":0,"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,"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)
|
, 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)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
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,"physical_scancode":0,"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,"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":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":32,"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)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
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,"physical_scancode":0,"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,"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)
|
, 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)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
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,"physical_scancode":0,"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,"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,"physical_scancode":0,"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,"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,"physical_scancode":0,"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,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
input_shoot={
|
input_shoot={
|
||||||
@ -82,42 +86,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,"physical_scancode":0,"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,"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,"physical_scancode":0,"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,"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,"physical_scancode":0,"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,"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,"physical_scancode":0,"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,"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,"physical_scancode":0,"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,"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,"physical_scancode":0,"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,"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,"physical_scancode":0,"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,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
shoot={
|
shoot={
|
||||||
"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":82,"physical_scancode":0,"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":82,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ extends AnimatedSprite
|
|||||||
var trajectory:String = 'line'
|
var trajectory:String = 'line'
|
||||||
var trajectory_line = 'sine'
|
var trajectory_line = 'sine'
|
||||||
|
|
||||||
var bullet = {
|
var bullet_env = {
|
||||||
'line' : preload("res://source/entities/shooting/Line_Trajectory/Line_Env.tscn"),
|
'line' : preload("res://source/entities/shooting/Line_Trajectory/Line_Env.tscn"),
|
||||||
'sine' : preload("res://source/entities/shooting/Sine_Trajectory/Sine_Env.tscn"),
|
'sine' : preload("res://source/entities/shooting/Sine_Trajectory/Sine_Env.tscn"),
|
||||||
'parab' : preload("res://source/entities/shooting/Parabolic_Trajectory/Parabolic_Env.tscn"),
|
'parab' : preload("res://source/entities/shooting/Parabolic_Trajectory/Parabolic_Env.tscn"),
|
||||||
@ -31,10 +31,10 @@ func choose_trajectory():
|
|||||||
|
|
||||||
|
|
||||||
func shoot(trajectory:String):
|
func shoot(trajectory:String):
|
||||||
var b = bullet[trajectory].instance()
|
var bullet = bullet_env[trajectory].instance()
|
||||||
get_parent().get_parent().get_parent().add_child(b)
|
get_parent().get_parent().get_parent().add_child(bullet)
|
||||||
b.global_position = $Position2D.global_position
|
bullet.global_position = $Position2D.global_position
|
||||||
b.global_rotation = $Position2D.global_rotation
|
bullet.global_rotation = $Position2D.global_rotation
|
||||||
pass
|
pass
|
||||||
|
|
||||||
func enable_trajectory_line(trajectory_line:String):
|
func enable_trajectory_line(trajectory_line:String):
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
extends StaticBody2D # Y = aX
|
||||||
|
|
||||||
|
onready var bullet_env = preload("res://source/entities/shooting/Hyperbolic_Trajectory/Hyperbolic_Env.tscn")
|
||||||
|
|
||||||
|
|
||||||
|
func shoot():
|
||||||
|
var bullet = bullet_env.instance()
|
||||||
|
get_parent().get_parent().get_parent().add_child(bullet)
|
||||||
|
bullet.global_position = $Position2D.global_position
|
||||||
|
bullet.global_rotation = $Position2D.global_rotation
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
func _process(delta):
|
||||||
|
if Input.is_action_just_pressed("input_shoot"):
|
||||||
|
shoot()
|
||||||
@ -1,4 +1,4 @@
|
|||||||
extends Area2D
|
extends Sprite
|
||||||
|
|
||||||
var velocity = Vector2()
|
var velocity = Vector2()
|
||||||
var speed = 1
|
var speed = 1
|
||||||
@ -9,7 +9,7 @@ var gravitile = 5
|
|||||||
|
|
||||||
func follow_hyperbolic_trajectory():
|
func follow_hyperbolic_trajectory():
|
||||||
velocity.x = gravitile * time
|
velocity.x = gravitile * time
|
||||||
velocity.y = 1/time
|
velocity.y = 1 / time
|
||||||
|
|
||||||
|
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
@ -18,7 +18,7 @@ func _process(delta):
|
|||||||
position += velocity * speed * delta
|
position += velocity * speed * delta
|
||||||
|
|
||||||
|
|
||||||
func _on_Bullet_body_entered(body):
|
func _on_hitbox_body_entered(body):
|
||||||
if body.is_in_group("mobs"):
|
if body.is_in_group("mobs"):
|
||||||
body.queue_free()
|
body.queue_free()
|
||||||
queue_free()
|
queue_free()
|
||||||
16
source/assets/scripts/shooting/Line/Line_Barrel.gd
Normal file
16
source/assets/scripts/shooting/Line/Line_Barrel.gd
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
extends StaticBody2D # Y = aX
|
||||||
|
|
||||||
|
onready var bullet_env = preload("res://source/entities/shooting/Line_Trajectory/Line_Env.tscn")
|
||||||
|
|
||||||
|
|
||||||
|
func shoot():
|
||||||
|
var bullet = bullet_env.instance()
|
||||||
|
get_parent().get_parent().get_parent().add_child(bullet)
|
||||||
|
bullet.global_position = $Position2D.global_position
|
||||||
|
bullet.global_rotation = $Position2D.global_rotation
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
func _process(delta):
|
||||||
|
if Input.is_action_just_pressed("input_shoot"):
|
||||||
|
shoot()
|
||||||
@ -1,4 +1,4 @@
|
|||||||
extends Area2D
|
extends Sprite
|
||||||
|
|
||||||
export var speed = 100
|
export var speed = 100
|
||||||
var velocity = Vector2()
|
var velocity = Vector2()
|
||||||
@ -34,7 +34,7 @@ func _process(delta):
|
|||||||
position += velocity * speed * delta
|
position += velocity * speed * delta
|
||||||
|
|
||||||
|
|
||||||
func _on_Bullet_body_entered(body):
|
func _on_hitbox_body_entered(body):
|
||||||
if body.is_in_group("mobs"):
|
if body.is_in_group("mobs"):
|
||||||
body.queue_free()
|
body.queue_free()
|
||||||
queue_free()
|
queue_free()
|
||||||
16
source/assets/scripts/shooting/Parabola/Parabolic_Barrel.gd
Normal file
16
source/assets/scripts/shooting/Parabola/Parabolic_Barrel.gd
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
extends StaticBody2D # Y = aX
|
||||||
|
|
||||||
|
onready var bullet_env = preload("res://source/entities/shooting/Parabolic_Trajectory/Parabolic_Env.tscn")
|
||||||
|
|
||||||
|
|
||||||
|
func shoot():
|
||||||
|
var bullet = bullet_env.instance()
|
||||||
|
get_parent().get_parent().get_parent().add_child(bullet)
|
||||||
|
bullet.global_position = $Position2D.global_position
|
||||||
|
bullet.global_rotation = $Position2D.global_rotation
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
func _process(delta):
|
||||||
|
if Input.is_action_just_pressed("input_shoot"):
|
||||||
|
shoot()
|
||||||
@ -18,7 +18,7 @@ func _process(delta):
|
|||||||
position += velocity * speed * delta
|
position += velocity * speed * delta
|
||||||
|
|
||||||
|
|
||||||
func _on_Bullet_body_entered(body):
|
func _on_hitbox_body_entered(body):
|
||||||
if body.is_in_group("mobs"):
|
if body.is_in_group("mobs"):
|
||||||
body.queue_free()
|
body.queue_free()
|
||||||
queue_free()
|
queue_free()
|
||||||
@ -18,7 +18,7 @@ func _process(delta):
|
|||||||
position += velocity * speed * delta
|
position += velocity * speed * delta
|
||||||
|
|
||||||
|
|
||||||
func _on_Bullet_body_entered(body):
|
func _on_hitbox_body_entered(body):
|
||||||
if body.is_in_group("mobs"):
|
if body.is_in_group("mobs"):
|
||||||
body.queue_free()
|
body.queue_free()
|
||||||
queue_free()
|
queue_free()
|
||||||
@ -15,7 +15,7 @@
|
|||||||
[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/entities/player/Gun_.gd" type="Script" id=16]
|
[ext_resource path="res://source/assets/scripts/shooting/Gun_.gd" type="Script" 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]
|
||||||
|
|||||||
@ -1,22 +1,22 @@
|
|||||||
[gd_scene load_steps=4 format=2]
|
[gd_scene load_steps=4 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://source/entities/shooting/script/pixil-frame-0 (1).png" type="Texture" id=1]
|
[ext_resource path="res://source/assets/sprites/bullet/bullet.png" type="Texture" id=1]
|
||||||
[ext_resource path="res://source/entities/shooting/script/Hyperbola/Hyperbolic_Bullet.gd" type="Script" id=2]
|
[ext_resource path="res://source/assets/scripts/shooting/Hyperbola/Hyperbolic_Bullet.gd" type="Script" id=2]
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape2D" id=1]
|
[sub_resource type="CapsuleShape2D" id=1]
|
||||||
radius = 5.4212
|
|
||||||
height = 7.62897
|
|
||||||
|
|
||||||
[node name="Bullet" type="Area2D"]
|
[node name="playert_bullet" type="Sprite" groups=[
|
||||||
|
"Net",
|
||||||
|
]]
|
||||||
|
texture = ExtResource( 1 )
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
|
|
||||||
[node name="Sprite" type="Sprite" parent="."]
|
[node name="hitbox" type="Area2D" parent="." groups=[
|
||||||
position = Vector2( 2, -19 )
|
"Player_damager",
|
||||||
scale = Vector2( 0.199834, 0.199834 )
|
]]
|
||||||
texture = ExtResource( 1 )
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="hitbox"]
|
||||||
rotation = 1.5708
|
rotation = 1.5708
|
||||||
shape = SubResource( 1 )
|
shape = SubResource( 1 )
|
||||||
|
|
||||||
[connection signal="body_entered" from="." to="." method="_on_Bullet_body_entered"]
|
[connection signal="body_entered" from="hitbox" to="." method="_on_hitbox_body_entered"]
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
[gd_scene load_steps=4 format=2]
|
[gd_scene load_steps=4 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://source/entities/shooting/Line_Trajectory/Line_Bullet.tscn" type="PackedScene" id=1]
|
[ext_resource path="res://source/entities/shooting/Line_Trajectory/Line_Bullet.tscn" type="PackedScene" id=1]
|
||||||
[ext_resource path="res://source/entities/shooting/script/Hyperbola/Hyperbolic_Env.gd" type="Script" id=2]
|
[ext_resource path="res://source/assets/scripts/shooting/Hyperbola/Hyperbolic_Env.gd" type="Script" id=2]
|
||||||
[ext_resource path="res://source/entities/shooting/script/Hyperbola/Hyperbolic_Bullet.gd" type="Script" id=3]
|
[ext_resource path="res://source/assets/scripts/shooting/Hyperbola/Hyperbolic_Bullet.gd" type="Script" id=3]
|
||||||
|
|
||||||
[node name="Env" type="Node2D"]
|
[node name="Env" type="Node2D"]
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
|
|||||||
@ -1,22 +1,22 @@
|
|||||||
[gd_scene load_steps=4 format=2]
|
[gd_scene load_steps=4 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://source/entities/shooting/script/pixil-frame-0 (1).png" type="Texture" id=1]
|
[ext_resource path="res://source/assets/sprites/bullet/bullet.png" type="Texture" id=1]
|
||||||
[ext_resource path="res://source/entities/shooting/script/Line/Line_Bullet.gd" type="Script" id=2]
|
[ext_resource path="res://source/assets/scripts/shooting/Line/Line_Bullet.gd" type="Script" id=2]
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape2D" id=1]
|
[sub_resource type="CapsuleShape2D" id=1]
|
||||||
radius = 5.4212
|
|
||||||
height = 7.62897
|
|
||||||
|
|
||||||
[node name="Bullet" type="Area2D"]
|
[node name="player_bullet" type="Sprite" groups=[
|
||||||
|
"Net",
|
||||||
|
]]
|
||||||
|
texture = ExtResource( 1 )
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
|
|
||||||
[node name="Sprite" type="Sprite" parent="."]
|
[node name="hitbox" type="Area2D" parent="." groups=[
|
||||||
position = Vector2( 2, -19 )
|
"Player_damager",
|
||||||
scale = Vector2( 0.199834, 0.199834 )
|
]]
|
||||||
texture = ExtResource( 1 )
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="hitbox"]
|
||||||
rotation = 1.5708
|
rotation = 1.5708
|
||||||
shape = SubResource( 1 )
|
shape = SubResource( 1 )
|
||||||
|
|
||||||
[connection signal="body_entered" from="." to="." method="_on_Bullet_body_entered"]
|
[connection signal="body_entered" from="hitbox" to="." method="_on_hitbox_body_entered"]
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
[gd_scene load_steps=3 format=2]
|
[gd_scene load_steps=3 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://source/entities/shooting/Line_Trajectory/Line_Bullet.tscn" type="PackedScene" id=1]
|
[ext_resource path="res://source/entities/shooting/Line_Trajectory/Line_Bullet.tscn" type="PackedScene" id=1]
|
||||||
[ext_resource path="res://source/entities/shooting/script/Line/Line_Env.gd" type="Script" id=2]
|
[ext_resource path="res://source/assets/scripts/shooting/Line/Line_Env.gd" type="Script" id=2]
|
||||||
|
|
||||||
[node name="Env" type="Node2D"]
|
[node name="Env" type="Node2D"]
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
|
|||||||
@ -1,22 +1,22 @@
|
|||||||
[gd_scene load_steps=4 format=2]
|
[gd_scene load_steps=4 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://source/entities/shooting/script/pixil-frame-0 (1).png" type="Texture" id=1]
|
[ext_resource path="res://source/assets/sprites/bullet/bullet.png" type="Texture" id=1]
|
||||||
[ext_resource path="res://source/entities/shooting/script/Line/Line_Bullet.gd" type="Script" id=2]
|
[ext_resource path="res://source/assets/scripts/shooting/Parabola/Parabolic_Bullet.gd" type="Script" id=2]
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape2D" id=1]
|
[sub_resource type="CapsuleShape2D" id=1]
|
||||||
radius = 5.4212
|
|
||||||
height = 7.62897
|
|
||||||
|
|
||||||
[node name="Bullet" type="Area2D"]
|
[node name="player_bullet" type="Sprite" groups=[
|
||||||
|
"Net",
|
||||||
|
]]
|
||||||
|
texture = ExtResource( 1 )
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
|
|
||||||
[node name="Sprite" type="Sprite" parent="."]
|
[node name="hitbox" type="Area2D" parent="." groups=[
|
||||||
position = Vector2( 2, -19 )
|
"Player_damager",
|
||||||
scale = Vector2( 0.199834, 0.199834 )
|
]]
|
||||||
texture = ExtResource( 1 )
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="hitbox"]
|
||||||
rotation = 1.5708
|
rotation = 1.5708
|
||||||
shape = SubResource( 1 )
|
shape = SubResource( 1 )
|
||||||
|
|
||||||
[connection signal="body_entered" from="." to="." method="_on_Bullet_body_entered"]
|
[connection signal="body_entered" from="hitbox" to="." method="_on_hitbox_body_entered"]
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
[gd_scene load_steps=4 format=2]
|
[gd_scene load_steps=4 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://source/entities/shooting/Line_Trajectory/Line_Bullet.tscn" type="PackedScene" id=1]
|
[ext_resource path="res://source/entities/shooting/Line_Trajectory/Line_Bullet.tscn" type="PackedScene" id=1]
|
||||||
[ext_resource path="res://source/entities/shooting/script/Parabola/Parabolic_Env.gd" type="Script" id=2]
|
[ext_resource path="res://source/assets/scripts/shooting/Parabola/Parabolic_Env.gd" type="Script" id=2]
|
||||||
[ext_resource path="res://source/entities/shooting/script/Parabola/Parabolic_Bullet.gd" type="Script" id=3]
|
[ext_resource path="res://source/assets/scripts/shooting/Parabola/Parabolic_Bullet.gd" type="Script" id=3]
|
||||||
|
|
||||||
[node name="Env" type="Node2D"]
|
[node name="Env" type="Node2D"]
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[gd_scene load_steps=2 format=2]
|
[gd_scene load_steps=2 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://source/entities/shooting/Sine_Trajectory/Sine_Barrel.gd" type="Script" id=1]
|
[ext_resource path="res://source/assets/scripts/shooting/Sine/Sine_Barrel.gd" type="Script" id=1]
|
||||||
|
|
||||||
[node name="Sine_Barrel" type="Line2D"]
|
[node name="Sine_Barrel" type="Line2D"]
|
||||||
show_behind_parent = true
|
show_behind_parent = true
|
||||||
|
|||||||
@ -1,22 +1,22 @@
|
|||||||
[gd_scene load_steps=4 format=2]
|
[gd_scene load_steps=4 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://source/entities/shooting/script/pixil-frame-0 (1).png" type="Texture" id=1]
|
[ext_resource path="res://source/assets/sprites/bullet/bullet.png" type="Texture" id=1]
|
||||||
[ext_resource path="res://source/entities/shooting/script/Sine/Sine_Bullet.gd" type="Script" id=2]
|
[ext_resource path="res://source/assets/scripts/shooting/Sine/Sine_Bullet.gd" type="Script" id=2]
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape2D" id=1]
|
[sub_resource type="CapsuleShape2D" id=1]
|
||||||
radius = 5.4212
|
|
||||||
height = 7.62897
|
|
||||||
|
|
||||||
[node name="Bullet" type="Area2D"]
|
[node name="player_bullet" type="Sprite" groups=[
|
||||||
|
"Net",
|
||||||
|
]]
|
||||||
|
texture = ExtResource( 1 )
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
|
|
||||||
[node name="Sprite" type="Sprite" parent="."]
|
[node name="hitbox" type="Area2D" parent="." groups=[
|
||||||
position = Vector2( 2, -19 )
|
"Player_damager",
|
||||||
scale = Vector2( 0.199834, 0.199834 )
|
]]
|
||||||
texture = ExtResource( 1 )
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="hitbox"]
|
||||||
rotation = 1.5708
|
rotation = 1.5708
|
||||||
shape = SubResource( 1 )
|
shape = SubResource( 1 )
|
||||||
|
|
||||||
[connection signal="body_entered" from="." to="." method="_on_Bullet_body_entered"]
|
[connection signal="body_entered" from="hitbox" to="." method="_on_hitbox_body_entered"]
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
[gd_scene load_steps=4 format=2]
|
[gd_scene load_steps=4 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://source/entities/shooting/Line_Trajectory/Line_Bullet.tscn" type="PackedScene" id=1]
|
[ext_resource path="res://source/entities/shooting/Line_Trajectory/Line_Bullet.tscn" type="PackedScene" id=1]
|
||||||
[ext_resource path="res://source/entities/shooting/script/Sine/Sine_Env.gd" type="Script" id=2]
|
[ext_resource path="res://source/assets/scripts/shooting/Sine/Sine_Env.gd" type="Script" id=2]
|
||||||
[ext_resource path="res://source/entities/shooting/script/Sine/Sine_Bullet.gd" type="Script" id=3]
|
[ext_resource path="res://source/assets/scripts/shooting/Sine/Sine_Bullet.gd" type="Script" id=3]
|
||||||
|
|
||||||
[node name="Env" type="Node2D"]
|
[node name="Env" type="Node2D"]
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
|
|||||||
@ -1,16 +0,0 @@
|
|||||||
extends StaticBody2D # Y = aX
|
|
||||||
|
|
||||||
onready var bullet = preload("res://Hyperbolic_Trajectory/Hyperbolic_Env.tscn")
|
|
||||||
|
|
||||||
|
|
||||||
func shoot():
|
|
||||||
var b = bullet.instance()
|
|
||||||
get_parent().get_parent().get_parent().add_child(b)
|
|
||||||
b.global_position = $Position2D.global_position
|
|
||||||
b.global_rotation = $Position2D.global_rotation
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func _process(delta):
|
|
||||||
if Input.is_action_just_pressed("shoot"):
|
|
||||||
shoot()
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
extends StaticBody2D # Y = aX
|
|
||||||
|
|
||||||
onready var bullet = preload("res://Line_Trajectory/Line_Env.tscn")
|
|
||||||
|
|
||||||
|
|
||||||
func shoot():
|
|
||||||
var b = bullet.instance()
|
|
||||||
get_parent().get_parent().get_parent().add_child(b)
|
|
||||||
b.global_position = $Position2D.global_position
|
|
||||||
b.global_rotation = $Position2D.global_rotation
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func _process(delta):
|
|
||||||
if Input.is_action_just_pressed("shoot"):
|
|
||||||
shoot()
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
extends StaticBody2D # Y = aX
|
|
||||||
|
|
||||||
onready var bullet = preload("res://Parabolic_Trajectory/Parabolic_Env.tscn")
|
|
||||||
|
|
||||||
|
|
||||||
func shoot():
|
|
||||||
var b = bullet.instance()
|
|
||||||
get_parent().get_parent().get_parent().add_child(b)
|
|
||||||
b.global_position = $Position2D.global_position
|
|
||||||
b.global_rotation = $Position2D.global_rotation
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func _process(delta):
|
|
||||||
if Input.is_action_just_pressed("shoot"):
|
|
||||||
shoot()
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
extends StaticBody2D
|
|
||||||
|
|
||||||
onready var bullet = preload("res://Sine_Trajectory/Sine_Env.tscn")
|
|
||||||
|
|
||||||
var velocity = Vector2(1, 0)
|
|
||||||
var shooting_speed = 200
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func shoot():
|
|
||||||
var b = bullet.instance()
|
|
||||||
get_parent().get_parent().get_parent().add_child(b)
|
|
||||||
b.global_position = $Position2D.global_position
|
|
||||||
b.global_rotation = $Position2D.global_rotation
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
func _process(delta):
|
|
||||||
if Input.is_action_just_pressed("shoot"):
|
|
||||||
shoot()
|
|
||||||
Loading…
Reference in New Issue
Block a user