initial commit

This commit is contained in:
Ultrablob 2024-04-16 20:29:45 -04:00
commit e446938ba7
74 changed files with 3212 additions and 0 deletions

18
bullet.gd Normal file
View file

@ -0,0 +1,18 @@
extends RigidBody2D
var bounces = 0
func hit(body):
if body.is_in_group("destructible"):
if body.has_method("destroy"):
body.destroy()
else:
body.queue_free()
queue_free()
else:
bounces += 1
#print(bounces)
if bounces >= 2:
queue_free()