omgelul kek w

This commit is contained in:
Diego 2020-07-23 12:25:37 -05:00
parent c79c7fe8eb
commit 20aa80d706
6 changed files with 234 additions and 45 deletions

View file

@ -5,7 +5,7 @@ resource_name = "Run"
length = 0.35
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/path = NodePath("../Ogre/Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false

View file

@ -11,7 +11,7 @@ onready var ProjectileSpawn: Node2D = $Position2D
func _ready():
health = 1.5
$RayCast2D.cast_to.x = -1 * max_range
$RayCast2D2.cast_to.y = 1 * max_ranged
$RayCast2D2.cast_to.y = 1 * max_range
func apply_gravity(delta, modifier = 1):
velocity.y += gravity * delta * modifier

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,23 @@
extends Area2D
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func _on_Area2D_body_entered(body):
if body.has_method("get_type") and body.get_type() == "player":
get_tree().change_scene("res://Title/Death Screen'.tscn")
else:
print("hi")

File diff suppressed because one or more lines are too long