adding forest graphics

This commit is contained in:
OddlyTimbot committed 2025-03-17 17:35:11 -04:00
1 parent 3a128eb87d
commit cb11b8dcef
2 files changed
+10

No files matched your search

@@ -6,6 +6,8 @@ var bulletArray:Array = []
var bullet = preload("res://scenes/bullet.tscn")
#factory decides to issue new bullet, or
#recycle an old one
func bulletFactory():
var mybullet
@@ -20,8 +22,16 @@ func bulletFactory():
bulletsMadeTotal +=1
return mybullet
#order desk for new bullets
func makeBullet(position, speed):
var myBullet = bulletFactory()
myBullet.transform = position
myBullet.setSpeed(speed)
return myBullet
func onBulletHit(bullet, body):
#deactivate bullet
#put back in queue
bullet.setSpeed(1)
#tell the GameController the bullet hit something
#GameController.bulletHit(body)