first Prototype
This commit is contained in:
parent
e11825c698
commit
35ce267482
481 changed files with 17315 additions and 1 deletions
5
scripts/item/bullet/Empty/empty.gd
Normal file
5
scripts/item/bullet/Empty/empty.gd
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class_name Empty extends Bullet
|
||||
|
||||
func _init() -> void:
|
||||
type = GLOBALS.ITEMTYPES.EMPTY
|
||||
damage = 0
|
||||
1
scripts/item/bullet/Empty/empty.gd.uid
Normal file
1
scripts/item/bullet/Empty/empty.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://c3l3ik8fk4h3b
|
||||
12
scripts/item/bullet/LuckyBullet/luckyBullet.gd
Normal file
12
scripts/item/bullet/LuckyBullet/luckyBullet.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class_name LuckyBullet extends Bullet
|
||||
|
||||
var minDamage: int = 0
|
||||
var maxDamage: int = 2
|
||||
|
||||
func _init() -> void:
|
||||
type = GLOBALS.ITEMTYPES.LUCKYBULLET
|
||||
|
||||
func getDamage() -> int:
|
||||
randomize()
|
||||
var rng = RandomNumberGenerator.new()
|
||||
return rng.randi_range(minDamage, maxDamage)
|
||||
1
scripts/item/bullet/LuckyBullet/luckyBullet.gd.uid
Normal file
1
scripts/item/bullet/LuckyBullet/luckyBullet.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://bxlgreqfamldl
|
||||
5
scripts/item/bullet/StandardBullet/standardBulet.gd
Normal file
5
scripts/item/bullet/StandardBullet/standardBulet.gd
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class_name StandardBullet extends Bullet
|
||||
|
||||
func _init() -> void:
|
||||
type = GLOBALS.ITEMTYPES.STANDARDBULLET
|
||||
damage = 1
|
||||
1
scripts/item/bullet/StandardBullet/standardBulet.gd.uid
Normal file
1
scripts/item/bullet/StandardBullet/standardBulet.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://c1gjjch8h0q21
|
||||
6
scripts/item/bullet/bullet.gd
Normal file
6
scripts/item/bullet/bullet.gd
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class_name Bullet extends Item
|
||||
|
||||
var damage: int = 0
|
||||
|
||||
func getDamage() -> int:
|
||||
return damage
|
||||
1
scripts/item/bullet/bullet.gd.uid
Normal file
1
scripts/item/bullet/bullet.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://bbqlf1ni1fgmu
|
||||
3
scripts/item/item.gd
Normal file
3
scripts/item/item.gd
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
class_name Item extends Node
|
||||
|
||||
var type: GLOBALS.ITEMTYPES
|
||||
1
scripts/item/item.gd.uid
Normal file
1
scripts/item/item.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://bkg3ot20liwdx
|
||||
Loading…
Add table
Add a link
Reference in a new issue