SamplePlayer

所属分类:游戏引擎
开发工具:GDScript
文件大小:290KB
下载次数:0
上传日期:2023-03-17 18:07:59
上 传 者sh-1993
说明:  Godot游戏引擎的示例玩家
(Sample Player for the Godot Game Engine)

文件列表:
LICENSE (1070, 2023-03-18)
SamplePlayer.gd (2791, 2023-03-18)
SamplePlayer.tscn (163, 2023-03-18)
icon.png (3305, 2023-03-18)
title_screen (0, 2023-03-18)
title_screen\0--1.ogg (4267, 2023-03-18)
title_screen\0--1.ogg.import (296, 2023-03-18)
title_screen\0-1.ogg (30885, 2023-03-18)
title_screen\0-1.ogg.import (293, 2023-03-18)
title_screen\1-2.ogg (22716, 2023-03-18)
title_screen\1-2.ogg.import (293, 2023-03-18)
title_screen\1-3.ogg (41405, 2023-03-18)
title_screen\1-3.ogg.import (293, 2023-03-18)
title_screen\2-2.ogg (31612, 2023-03-18)
title_screen\2-2.ogg.import (293, 2023-03-18)
title_screen\2-3.ogg (27069, 2023-03-18)
title_screen\2-3.ogg.import (293, 2023-03-18)
title_screen\3-2.ogg (20739, 2023-03-18)
title_screen\3-2.ogg.import (293, 2023-03-18)
title_screen\3-3.ogg (32048, 2023-03-18)
title_screen\3-3.ogg.import (293, 2023-03-18)
title_screen\3-4.ogg (46518, 2023-03-18)
title_screen\3-4.ogg.import (293, 2023-03-18)
title_screen\4-2.ogg (24716, 2023-03-18)
title_screen\4-2.ogg.import (293, 2023-03-18)
title_screen\4-3.ogg (31605, 2023-03-18)
title_screen\4-3.ogg.import (293, 2023-03-18)
title_screen\4-4.ogg (17486, 2023-03-18)
title_screen\4-4.ogg.import (293, 2023-03-18)

# SamplePlayer Sample Player for the Godot Game Engine ## Functions: start_song(song: String) calls a song in the songs Dictionary and then plays it. play_song() play the song stored in the title Dictionary. stop_song() stop the song stored in the title Dictionary. pause_song() pauses (which means, at position) the song stored in the title Dictionary. P.S: As the 'func _on_pattern_finished()' allways needs a sample to be triggered and this sample is the first index on the pattern array, you should create a sample of total silence so you can store the timing in it and then write it instead of 0 (I'm using -1 as an example'). Probably not the right way to do it, but it's the way it works - a timer mess things up. As for the song I'm using in this example, it's mine and I'm using it on my game (Ghosts Of Blue, it's on progress), but you can do whatever you want with this one. ### Is it worth it? original file of this song takes 2.0 MB With samples I was able to reduce to 326.7 KB That's like 17% of the original + you can do a lot more with it.

近期下载者

相关文件


收藏者