Skip to content

Commit a0140c5

Browse files
committedDec 1, 2017
Initial commit
0 parents  commit a0140c5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+5199
-0
lines changed
 

‎.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

‎Enemies/Boss.gd

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
extends KinematicBody2D
2+
3+
# class member variables go here, for example:
4+
# var a = 2
5+
var hp = 500
6+
7+
func _ready():
8+
add_to_group("Enemy")
9+
pass
10+
11+
func dmg(dmg):
12+
hp-=dmg
13+
if (hp<1):
14+
die()
15+
get_node("Health").set_text(str(hp))
16+
17+
func die():
18+
get_tree().change_scene("res://ending.tscn")
19+
pass

0 commit comments

Comments
 (0)
Please sign in to comment.