Configure project settings and import assets
This commit sets up the initial project configuration including: - Window size and scaling settings - Input mappings for player controls - Default texture filtering settings - Import of game asset pack with sprites and UI elements - Set of signals for tracking player bullets
This commit is contained in:
parent
17ec371068
commit
8501c18dd1
61 changed files with 1234 additions and 0 deletions
18
scenes/bullet.gd
Normal file
18
scenes/bullet.gd
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
extends Area2D
|
||||
@export var speed = -250
|
||||
|
||||
|
||||
func _on_visible_on_screen_notifier_2d_screen_exited() -> void:
|
||||
queue_free()
|
||||
|
||||
|
||||
func _on_area_entered(area: Area2D) -> void:
|
||||
if area.is_in_group("enemies"):
|
||||
area.explode()
|
||||
queue_free()
|
||||
|
||||
func start(pos):
|
||||
position = pos
|
||||
|
||||
func _process(delta):
|
||||
position.y += speed * delta
|
||||
Loading…
Add table
Add a link
Reference in a new issue