1
0
mirror of https://gitee.com/freeyz/godot-mota.git synced 2024-12-23 01:39:20 +08:00
godot-mota/scripts/AffectAudioPlayer.gd
2020-07-23 22:12:08 +08:00

30 lines
663 B
GDScript

extends AudioStreamPlayer2D
onready var attack = preload("res://sounds/attack.ogg")
onready var bomb = preload("res://sounds/bomb.ogg")
onready var center_fly = preload("res://sounds/centerFly.ogg")
onready var door = preload("res://sounds/door.ogg")
onready var equip = preload("res://sounds/equip.ogg")
onready var f = preload("res://sounds/floor.ogg")
onready var item = preload("res://sounds/item.ogg")
onready var jump = preload("res://sounds/jump.ogg")
onready var pickaxe = preload("res://sounds/pickaxe.ogg")
onready var zone = preload("res://sounds/zone.ogg")
func play_door():
stream = door
play()
func play_item():
stream = item
play()