about summary refs log tree commit diff stats
path: root/Archipelago/painting_scenery.gd
blob: f49d60238d3a2f341de9262d38a0224a91a4a48b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
extends "res://scripts/painting_scenery.gd"


func _answer_correct():
	var apclient = global.get_node("Archipelago")
	if not apclient._door_shuffle or apclient.paintingIsVanilla(self.name):
		._answer_correct()


func movePainting():
	._answer_correct()
n>::string_view filename) { Mix_Chunk* chunk = getChunkByFilename(std::string(filename)); int ret = Mix_PlayChannel(-1, chunk, -1); if (ret == -1) { throw mix_error(); } return ret; } void Mixer::stopChannel(int channel) { Mix_HaltChannel(channel); } Mix_Chunk* Mixer::getChunkByFilename(std::string filename) { if (!sounds_.count(filename)) { Mix_Chunk* sample = Mix_LoadWAV(filename.c_str()); if (!sample) { throw mix_error(); } sounds_[filename] = chunk_ptr(sample); } return sounds_[filename].get(); }