mirror of
https://gitee.com/freeyz/godot-mota.git
synced 2024-12-23 00:59:20 +08:00
30 lines
663 B
GDScript
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()
|