From 62f6b4d873ee46b55d9fa7c8d778df827e6ca727 Mon Sep 17 00:00:00 2001 From: zerothelootrat Date: Thu, 6 Jun 2024 03:24:17 -0400 Subject: [PATCH] implemented y-wing main cannon and effects. --- Assets/y-wing_main_laser.png | Bin 0 -> 422 bytes Assets/y-wing_main_laser.png.import | 34 +++++++++++++++++++++++++++ Scenes/world.gd | 6 +++++ Scenes/y_wing_main_cannon_laser.tscn | 30 +++++++++++++++++++++++ Scripts/enemy_ywing.gd | 3 ++- Scripts/y_wing_main_cannon_laser.gd | 16 +++++++++++++ 6 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 Assets/y-wing_main_laser.png create mode 100644 Assets/y-wing_main_laser.png.import create mode 100644 Scenes/y_wing_main_cannon_laser.tscn create mode 100644 Scripts/y_wing_main_cannon_laser.gd diff --git a/Assets/y-wing_main_laser.png b/Assets/y-wing_main_laser.png new file mode 100644 index 0000000000000000000000000000000000000000..48dc69141a509e29328a7383ecee1c0149cc1465 GIT binary patch literal 422 zcmeAS@N?(olHy`uVBq!ia0vp^c0ioO!3HEbdJ|3nDaPU;cPEB*=VV?2*$JL5jv*Cu z-rhc#d&ohc_2JD9K8-_XS)&@R2vjXlyUc8=Gkt3@XIFZ8nPcVu@(qHQZnQ6dzHx#9 zGteLg*7VIaW~UdYZ~yh8@?-h5Mfw#LldgPktKNF1>ZIDf?tKsbxo(bAk$W0GV}DB={b*Nt@m9q)pd72{&#cSrq1^A zKi^I-7X<5%I;TGS%$YaY7eLA$`k$_>RXP83cBbXO%JtJC^@aKm$<-IXDKrJ5zu$hu zlzj}@cw9SeuZPX4UEReukFHGW4+lBuUVi`bHrqHupffCF!!NIYyuGatC^4~O%GcWJ ztcvjUGk`9dQ(g)(2Z%~ycxA(#k6*n2V)`DxfAy~-*k69fuWo>fA}N3|S!SO7biUs8 i_}M(yM+_h4+c3!dc>Lp;m8LByygXg~T-G@yGywoTj>;= 980: + queue_free() + + + +func _on_area_entered(area): + if area is player: + area.take_damage(1) + queue_free()