Tested some custom resources with a test scene.
This commit is contained in:
parent
4c512379c5
commit
1fd4a809f2
14 changed files with 125 additions and 4 deletions
|
|
@ -1,15 +1,17 @@
|
|||
extends Area2D
|
||||
|
||||
|
||||
#bullet_data: BulletResource
|
||||
var bullet_data = load("res://resources/bullet_resource.tres")
|
||||
|
||||
#@export var speed = 150
|
||||
|
||||
@export var speed = 150
|
||||
|
||||
func start(pos):
|
||||
position = pos
|
||||
|
||||
func _process(delta):
|
||||
position.y += speed * delta
|
||||
position.y += bullet_data.speed * delta
|
||||
|
||||
func _on_visible_on_screen_notifier_2d_screen_exited():
|
||||
queue_free()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue