diff --git a/ai/Hell.gd b/ai/Hell.gd index 0c3da59..04fe02d 100644 --- a/ai/Hell.gd +++ b/ai/Hell.gd @@ -3,7 +3,8 @@ extends KinematicBody2D var Hell_Projectile = preload("res://ai/BadFireball.tscn") var speed = 60 var gravity =500 -var health = 5 +var health = .5 + const UP = Vector2(0, -1) onready var ShootDelay : Timer = $ShootDelay diff --git a/project.godot b/project.godot index 673fb89..cbeac25 100644 --- a/project.godot +++ b/project.godot @@ -45,7 +45,7 @@ _global_script_class_icons={ [application] config/name="Gamejam" -run/main_scene="res://levels/test.tscn" +run/main_scene="res://Title/Tilte.tscn" config/icon="res://icon.png" [autoload] @@ -55,10 +55,6 @@ IconLoaderGithub="*res://addons/github-integration/scripts/IconLoaderGithub.gd" RestHandler="*res://addons/github-integration/scripts/RestHandler.gd" Globals="*res://script/globals.gd" -[debug] - -settings/fps/force_fps=60 - [display] window/size/width=320 @@ -94,32 +90,47 @@ texture={ "stream": false, "svg/scale": 1.0 } +wav={ +"compress/mode": 0, +"edit/loop": true, +"edit/normalize": false, +"edit/trim": false, +"force/8_bit": false, +"force/max_rate": false, +"force/max_rate_hz": 44100, +"force/mono": false +} [input] up={ "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":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":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,"unicode":0,"echo":false,"script":null) ] } down={ "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) +, 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) ] } left={ "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) +, 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) ] } right={ "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) +, 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) ] } shoot={ "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) +"events": [ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"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) ] } inventory={ @@ -130,14 +141,11 @@ inventory={ [layer_names] -2d_render/layer_1="Player" 2d_physics/layer_1="Player" -2d_render/layer_2="World" 2d_physics/layer_2="World" 2d_physics/layer_3="Enemy" 2d_physics/layer_4="Projectiles" [rendering] -quality/driver/fallback_to_gles2=true environment/default_environment="res://default_env.tres" diff --git a/script/Skeleton Enemy.gd b/script/Skeleton Enemy.gd index 9cec089..8c5c7c7 100644 --- a/script/Skeleton Enemy.gd +++ b/script/Skeleton Enemy.gd @@ -3,7 +3,7 @@ extends KinematicBody2D var Spinning_Bone = preload("res://ai/SpinningBone.tscn") var speed = 60 var gravity =500 -var health = 5 +var health = 1 const UP = Vector2(0, -1)