first Prototype

This commit is contained in:
Exobyt 2025-08-02 12:27:49 +02:00
parent 89503407e7
commit c887a2168c
78 changed files with 2494 additions and 2 deletions

View file

@ -0,0 +1,14 @@
class_name Minigun extends "res://scenes/weapon/weapon.gd"
@onready var bullet = preload("res://scenes/bullet/bulletMinigun/bulletMinigun.tscn" )
func attack():
if cooldownTimer.is_stopped():
print(getSpread())
spawnBullet()
cooldownTimer.start(cooldown)
func spawnBullet():
var newBullet = bullet.instantiate()
get_tree().get_first_node_in_group("bulletPool").add_child(newBullet)
newBullet.spawn(bulletPoint.global_position, get_parent().get_parent().rotation + getSpread(), damage, range, penetration)

View file

@ -0,0 +1 @@
uid://bxedwccs1lj6j

View file

@ -0,0 +1,7 @@
[gd_scene load_steps=3 format=3 uid="uid://c6lpcf6nk7f3s"]
[ext_resource type="PackedScene" uid="uid://btyuxgfn12p1y" path="res://scenes/weapon/weapon.tscn" id="1_dt38b"]
[ext_resource type="Script" uid="uid://bxedwccs1lj6j" path="res://scenes/weapon/minigun/minigun.gd" id="2_u46t0"]
[node name="Minigun" instance=ExtResource("1_dt38b")]
script = ExtResource("2_u46t0")