Player gun, bullet and its collisiions. Refactor.

This commit is contained in:
Felipe M 2021-01-30 20:57:48 +01:00
parent 0dd3f24030
commit ffb7c8bf99
Signed by: fmartingr
GPG key ID: 716BC147715E716F
28 changed files with 562 additions and 131 deletions

View file

@ -16,9 +16,13 @@ _global_script_class_icons={
[application]
config/name="Metroidvania"
run/main_scene="res://Scenes/World.tscn"
run/main_scene="res://Scenes/World/World.tscn"
config/icon="res://icon.png"
[autoload]
Utils="*res://Utils.gd"
[display]
window/size/width=320
@ -82,6 +86,18 @@ ui_down={
, 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)
]
}
fire={
"deadzone": 0.5,
"events": [ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":1,"pressed":false,"doubleclick":false,"script":null)
]
}
[layer_names]
2d_physics/layer_1="Player"
2d_physics/layer_2="World"
2d_physics/layer_3="PlayerHurtbox"
2d_physics/layer_4="EnemyHurtbox"
[rendering]