omgelul kek w
This commit is contained in:
parent
c79c7fe8eb
commit
20aa80d706
|
@ -5,7 +5,7 @@ resource_name = "Run"
|
||||||
length = 0.35
|
length = 0.35
|
||||||
loop = true
|
loop = true
|
||||||
tracks/0/type = "value"
|
tracks/0/type = "value"
|
||||||
tracks/0/path = NodePath("Sprite:frame")
|
tracks/0/path = NodePath("../Ogre/Sprite:frame")
|
||||||
tracks/0/interp = 1
|
tracks/0/interp = 1
|
||||||
tracks/0/loop_wrap = true
|
tracks/0/loop_wrap = true
|
||||||
tracks/0/imported = false
|
tracks/0/imported = false
|
||||||
|
|
|
@ -11,7 +11,7 @@ onready var ProjectileSpawn: Node2D = $Position2D
|
||||||
func _ready():
|
func _ready():
|
||||||
health = 1.5
|
health = 1.5
|
||||||
$RayCast2D.cast_to.x = -1 * max_range
|
$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):
|
func apply_gravity(delta, modifier = 1):
|
||||||
velocity.y += gravity * delta * modifier
|
velocity.y += gravity * delta * modifier
|
||||||
|
|
File diff suppressed because one or more lines are too long
84
levels/Campaign/Level 2/Level_2.tscn
Normal file
84
levels/Campaign/Level 2/Level_2.tscn
Normal file
File diff suppressed because one or more lines are too long
23
levels/Campaign/Level 3/Area2D.gd
Normal file
23
levels/Campaign/Level 3/Area2D.gd
Normal 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")
|
55
levels/Campaign/Level 3/Level 3.tscn
Normal file
55
levels/Campaign/Level 3/Level 3.tscn
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue