mirror of
https://gitee.com/freeyz/godot-mota.git
synced 2024-12-23 02:39:20 +08:00
增加音效文件和背景音文件,增加背景音处理
This commit is contained in:
parent
f5a8d9c901
commit
f82aee4b1a
3
.import/attack.ogg-f76ff4e84a599d537dd165b167a572d4.md5
Normal file
3
.import/attack.ogg-f76ff4e84a599d537dd165b167a572d4.md5
Normal file
@ -0,0 +1,3 @@
|
||||
source_md5="50010937a0008f8857e99b68ecf8cf26"
|
||||
dest_md5="cd9243ceb07604925dba2d627b2c4524"
|
||||
|
BIN
.import/attack.ogg-f76ff4e84a599d537dd165b167a572d4.oggstr
Normal file
BIN
.import/attack.ogg-f76ff4e84a599d537dd165b167a572d4.oggstr
Normal file
Binary file not shown.
3
.import/bgm.ogg-c456805944f69ed9f625bdcdec0091ed.md5
Normal file
3
.import/bgm.ogg-c456805944f69ed9f625bdcdec0091ed.md5
Normal file
@ -0,0 +1,3 @@
|
||||
source_md5="cbf39cdbbe72293acb3da416b6e75b8b"
|
||||
dest_md5="802fdeab4f08a2f727a4cc4d8060622b"
|
||||
|
BIN
.import/bgm.ogg-c456805944f69ed9f625bdcdec0091ed.oggstr
Normal file
BIN
.import/bgm.ogg-c456805944f69ed9f625bdcdec0091ed.oggstr
Normal file
Binary file not shown.
3
.import/bomb.ogg-5efebe2cad43415d948de40416af48a8.md5
Normal file
3
.import/bomb.ogg-5efebe2cad43415d948de40416af48a8.md5
Normal file
@ -0,0 +1,3 @@
|
||||
source_md5="a85f3b809a8dc6eced55feb12e6e3ddd"
|
||||
dest_md5="a94161e5f611fd4a9ddd5101aa20d4ba"
|
||||
|
BIN
.import/bomb.ogg-5efebe2cad43415d948de40416af48a8.oggstr
Normal file
BIN
.import/bomb.ogg-5efebe2cad43415d948de40416af48a8.oggstr
Normal file
Binary file not shown.
@ -0,0 +1,3 @@
|
||||
source_md5="8920823388579e692abc54a105e82880"
|
||||
dest_md5="49d3ec2412cd56cd0e2618c618bc1ea8"
|
||||
|
BIN
.import/centerFly.ogg-a5ae664f2f23559847fabf1b6ad35834.oggstr
Normal file
BIN
.import/centerFly.ogg-a5ae664f2f23559847fabf1b6ad35834.oggstr
Normal file
Binary file not shown.
3
.import/door.ogg-cf3de28e49b4d64c2a8dab40e5ce65a9.md5
Normal file
3
.import/door.ogg-cf3de28e49b4d64c2a8dab40e5ce65a9.md5
Normal file
@ -0,0 +1,3 @@
|
||||
source_md5="de765597b1083dd078ea4f6fca4fd7de"
|
||||
dest_md5="c10e903514f2bdaae62d215034e5a3fc"
|
||||
|
BIN
.import/door.ogg-cf3de28e49b4d64c2a8dab40e5ce65a9.oggstr
Normal file
BIN
.import/door.ogg-cf3de28e49b4d64c2a8dab40e5ce65a9.oggstr
Normal file
Binary file not shown.
3
.import/equip.ogg-d2884a375a4158917c3155b455e88238.md5
Normal file
3
.import/equip.ogg-d2884a375a4158917c3155b455e88238.md5
Normal file
@ -0,0 +1,3 @@
|
||||
source_md5="c562987476d78f9c83def30e0e0a344d"
|
||||
dest_md5="c4d2b2916f2303b1ff80b9d8bd569eac"
|
||||
|
BIN
.import/equip.ogg-d2884a375a4158917c3155b455e88238.oggstr
Normal file
BIN
.import/equip.ogg-d2884a375a4158917c3155b455e88238.oggstr
Normal file
Binary file not shown.
3
.import/floor.ogg-179348b5537b3ab90093a87b3d5e7d35.md5
Normal file
3
.import/floor.ogg-179348b5537b3ab90093a87b3d5e7d35.md5
Normal file
@ -0,0 +1,3 @@
|
||||
source_md5="a497865d78241d0f0a25678628183055"
|
||||
dest_md5="44bcbf3a6a12376f2ad1b19b19bf0373"
|
||||
|
BIN
.import/floor.ogg-179348b5537b3ab90093a87b3d5e7d35.oggstr
Normal file
BIN
.import/floor.ogg-179348b5537b3ab90093a87b3d5e7d35.oggstr
Normal file
Binary file not shown.
3
.import/item.ogg-9d12925afedc51e40ec0abb1b0542aa0.md5
Normal file
3
.import/item.ogg-9d12925afedc51e40ec0abb1b0542aa0.md5
Normal file
@ -0,0 +1,3 @@
|
||||
source_md5="98c326a36e3fb2a26474bbee06dac7c7"
|
||||
dest_md5="d5a73d0a562c6502a6c25bd88657f7e0"
|
||||
|
BIN
.import/item.ogg-9d12925afedc51e40ec0abb1b0542aa0.oggstr
Normal file
BIN
.import/item.ogg-9d12925afedc51e40ec0abb1b0542aa0.oggstr
Normal file
Binary file not shown.
3
.import/jump.ogg-de8df8640ff526968292c23fe5ec784f.md5
Normal file
3
.import/jump.ogg-de8df8640ff526968292c23fe5ec784f.md5
Normal file
@ -0,0 +1,3 @@
|
||||
source_md5="b454d99e5322fb8b784140ca84fbe092"
|
||||
dest_md5="99fd2ce166c5d346bea9c71a903b7b6a"
|
||||
|
BIN
.import/jump.ogg-de8df8640ff526968292c23fe5ec784f.oggstr
Normal file
BIN
.import/jump.ogg-de8df8640ff526968292c23fe5ec784f.oggstr
Normal file
Binary file not shown.
3
.import/pickaxe.ogg-660fd619fe121f210ac6f9430a16ab5c.md5
Normal file
3
.import/pickaxe.ogg-660fd619fe121f210ac6f9430a16ab5c.md5
Normal file
@ -0,0 +1,3 @@
|
||||
source_md5="8ce231e6f36adb8c4b104830265c50ce"
|
||||
dest_md5="b05eb83d9a1e2cb3cd78350b89a74073"
|
||||
|
BIN
.import/pickaxe.ogg-660fd619fe121f210ac6f9430a16ab5c.oggstr
Normal file
BIN
.import/pickaxe.ogg-660fd619fe121f210ac6f9430a16ab5c.oggstr
Normal file
Binary file not shown.
3
.import/zone.ogg-bc2bc36f8117bfa094934330d5ee9201.md5
Normal file
3
.import/zone.ogg-bc2bc36f8117bfa094934330d5ee9201.md5
Normal file
@ -0,0 +1,3 @@
|
||||
source_md5="0d38c88de1975840c0cd77f66735e683"
|
||||
dest_md5="322c122c471553d86017465847bc8e38"
|
||||
|
BIN
.import/zone.ogg-bc2bc36f8117bfa094934330d5ee9201.oggstr
Normal file
BIN
.import/zone.ogg-bc2bc36f8117bfa094934330d5ee9201.oggstr
Normal file
Binary file not shown.
@ -1,11 +1,15 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/UI.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://scenes/floors/Floor1.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://scripts/BgmAudioPlayer.gd" type="Script" id=3]
|
||||
[ext_resource path="res://images/mota_tileset.tres" type="TileSet" id=4]
|
||||
|
||||
[node name="Main" type="Node2D"]
|
||||
|
||||
[node name="BgmAudioPlayer" type="AudioStreamPlayer2D" parent="."]
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="BackgroundTileMap" type="TileMap" parent="."]
|
||||
tile_set = ExtResource( 4 )
|
||||
cell_size = Vector2( 32, 32 )
|
||||
|
BIN
music/attack.mp3
Normal file
BIN
music/attack.mp3
Normal file
Binary file not shown.
BIN
music/bgm.mp3
Normal file
BIN
music/bgm.mp3
Normal file
Binary file not shown.
BIN
music/bomb.mp3
Normal file
BIN
music/bomb.mp3
Normal file
Binary file not shown.
BIN
music/centerFly.mp3
Normal file
BIN
music/centerFly.mp3
Normal file
Binary file not shown.
BIN
music/door.mp3
Normal file
BIN
music/door.mp3
Normal file
Binary file not shown.
BIN
music/equip.mp3
Normal file
BIN
music/equip.mp3
Normal file
Binary file not shown.
BIN
music/floor.mp3
Normal file
BIN
music/floor.mp3
Normal file
Binary file not shown.
BIN
music/item.mp3
Normal file
BIN
music/item.mp3
Normal file
Binary file not shown.
BIN
music/jump.mp3
Normal file
BIN
music/jump.mp3
Normal file
Binary file not shown.
BIN
music/pickaxe.mp3
Normal file
BIN
music/pickaxe.mp3
Normal file
Binary file not shown.
BIN
music/zone.mp3
Normal file
BIN
music/zone.mp3
Normal file
Binary file not shown.
@ -14,6 +14,11 @@ _global_script_classes=[ {
|
||||
"language": "GDScript",
|
||||
"path": "res://scripts/ArrayTween.gd"
|
||||
}, {
|
||||
"base": "AudioStreamPlayer2D",
|
||||
"class": "BgmAudioPlayer",
|
||||
"language": "GDScript",
|
||||
"path": "res://scripts/BgmAudioPlayer.gd"
|
||||
}, {
|
||||
"base": "Sprite",
|
||||
"class": "DoorSprite",
|
||||
"language": "GDScript",
|
||||
@ -56,6 +61,7 @@ _global_script_classes=[ {
|
||||
} ]
|
||||
_global_script_class_icons={
|
||||
"ArrayTween": "",
|
||||
"BgmAudioPlayer": "",
|
||||
"DoorSprite": "",
|
||||
"DoorStaticBody2D": "",
|
||||
"ElixirsSprite": "",
|
||||
|
9
scripts/BgmAudioPlayer.gd
Normal file
9
scripts/BgmAudioPlayer.gd
Normal file
@ -0,0 +1,9 @@
|
||||
extends AudioStreamPlayer2D
|
||||
|
||||
class_name BgmAudioPlayer
|
||||
|
||||
func _ready():
|
||||
stream = load("res://sounds/bgm.ogg")
|
||||
playing = true
|
||||
volume_db -= 10
|
||||
pass
|
@ -10,7 +10,6 @@ func load_by_floor(f:int) -> void:
|
||||
root.get_node("Floor%s" % f).free()
|
||||
root.add_child(next_floor)
|
||||
for used_item in used_items:
|
||||
print("path ",used_item)
|
||||
var node = next_floor.get_node(used_item)
|
||||
if node != null:
|
||||
node.free()
|
||||
|
@ -18,7 +18,6 @@ func _ready():
|
||||
var cells := get_cells()
|
||||
init_nodes(cells)
|
||||
init_edges(cells)
|
||||
print("rect ", get_used_rect())
|
||||
|
||||
# 初始化nodes
|
||||
func init_nodes(cells:Array):
|
||||
@ -54,12 +53,9 @@ func get_cells() -> Array:
|
||||
var cells = get_used_cells()
|
||||
if not collsion_tilemap_path.is_empty():
|
||||
var collsion_tilemap = get_node(collsion_tilemap_path) as TileMap
|
||||
print("collsion_tilemap ", collsion_tilemap)
|
||||
var collsion_cells = collsion_tilemap.get_used_cells()
|
||||
for collsion_cell in collsion_cells:
|
||||
var index = cells.find(collsion_cell)
|
||||
if index != -1:
|
||||
print("index ",index)
|
||||
print("cell ",cells[index])
|
||||
cells.remove(index)
|
||||
return cells
|
||||
|
BIN
sounds/attack.ogg
Normal file
BIN
sounds/attack.ogg
Normal file
Binary file not shown.
15
sounds/attack.ogg.import
Normal file
15
sounds/attack.ogg.import
Normal file
@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/attack.ogg-f76ff4e84a599d537dd165b167a572d4.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sounds/attack.ogg"
|
||||
dest_files=[ "res://.import/attack.ogg-f76ff4e84a599d537dd165b167a572d4.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
BIN
sounds/bgm.ogg
Normal file
BIN
sounds/bgm.ogg
Normal file
Binary file not shown.
15
sounds/bgm.ogg.import
Normal file
15
sounds/bgm.ogg.import
Normal file
@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/bgm.ogg-c456805944f69ed9f625bdcdec0091ed.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sounds/bgm.ogg"
|
||||
dest_files=[ "res://.import/bgm.ogg-c456805944f69ed9f625bdcdec0091ed.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
BIN
sounds/bomb.ogg
Normal file
BIN
sounds/bomb.ogg
Normal file
Binary file not shown.
15
sounds/bomb.ogg.import
Normal file
15
sounds/bomb.ogg.import
Normal file
@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/bomb.ogg-5efebe2cad43415d948de40416af48a8.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sounds/bomb.ogg"
|
||||
dest_files=[ "res://.import/bomb.ogg-5efebe2cad43415d948de40416af48a8.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
BIN
sounds/centerFly.ogg
Normal file
BIN
sounds/centerFly.ogg
Normal file
Binary file not shown.
15
sounds/centerFly.ogg.import
Normal file
15
sounds/centerFly.ogg.import
Normal file
@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/centerFly.ogg-a5ae664f2f23559847fabf1b6ad35834.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sounds/centerFly.ogg"
|
||||
dest_files=[ "res://.import/centerFly.ogg-a5ae664f2f23559847fabf1b6ad35834.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
BIN
sounds/door.ogg
Normal file
BIN
sounds/door.ogg
Normal file
Binary file not shown.
15
sounds/door.ogg.import
Normal file
15
sounds/door.ogg.import
Normal file
@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/door.ogg-cf3de28e49b4d64c2a8dab40e5ce65a9.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sounds/door.ogg"
|
||||
dest_files=[ "res://.import/door.ogg-cf3de28e49b4d64c2a8dab40e5ce65a9.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
BIN
sounds/equip.ogg
Normal file
BIN
sounds/equip.ogg
Normal file
Binary file not shown.
15
sounds/equip.ogg.import
Normal file
15
sounds/equip.ogg.import
Normal file
@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/equip.ogg-d2884a375a4158917c3155b455e88238.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sounds/equip.ogg"
|
||||
dest_files=[ "res://.import/equip.ogg-d2884a375a4158917c3155b455e88238.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
BIN
sounds/floor.ogg
Normal file
BIN
sounds/floor.ogg
Normal file
Binary file not shown.
15
sounds/floor.ogg.import
Normal file
15
sounds/floor.ogg.import
Normal file
@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/floor.ogg-179348b5537b3ab90093a87b3d5e7d35.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sounds/floor.ogg"
|
||||
dest_files=[ "res://.import/floor.ogg-179348b5537b3ab90093a87b3d5e7d35.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
BIN
sounds/item.ogg
Normal file
BIN
sounds/item.ogg
Normal file
Binary file not shown.
15
sounds/item.ogg.import
Normal file
15
sounds/item.ogg.import
Normal file
@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/item.ogg-9d12925afedc51e40ec0abb1b0542aa0.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sounds/item.ogg"
|
||||
dest_files=[ "res://.import/item.ogg-9d12925afedc51e40ec0abb1b0542aa0.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
BIN
sounds/jump.ogg
Normal file
BIN
sounds/jump.ogg
Normal file
Binary file not shown.
15
sounds/jump.ogg.import
Normal file
15
sounds/jump.ogg.import
Normal file
@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/jump.ogg-de8df8640ff526968292c23fe5ec784f.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sounds/jump.ogg"
|
||||
dest_files=[ "res://.import/jump.ogg-de8df8640ff526968292c23fe5ec784f.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
BIN
sounds/pickaxe.ogg
Normal file
BIN
sounds/pickaxe.ogg
Normal file
Binary file not shown.
15
sounds/pickaxe.ogg.import
Normal file
15
sounds/pickaxe.ogg.import
Normal file
@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/pickaxe.ogg-660fd619fe121f210ac6f9430a16ab5c.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sounds/pickaxe.ogg"
|
||||
dest_files=[ "res://.import/pickaxe.ogg-660fd619fe121f210ac6f9430a16ab5c.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
BIN
sounds/zone.ogg
Normal file
BIN
sounds/zone.ogg
Normal file
Binary file not shown.
15
sounds/zone.ogg.import
Normal file
15
sounds/zone.ogg.import
Normal file
@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="ogg_vorbis"
|
||||
type="AudioStreamOGGVorbis"
|
||||
path="res://.import/zone.ogg-bc2bc36f8117bfa094934330d5ee9201.oggstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sounds/zone.ogg"
|
||||
dest_files=[ "res://.import/zone.ogg-bc2bc36f8117bfa094934330d5ee9201.oggstr" ]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=0
|
Loading…
Reference in New Issue
Block a user