doodle/dev-assets/doodads/doors/keys.js

12 lines
202 B
JavaScript
Raw Normal View History

function main() {
var color = Self.GetTag("color");
Events.OnCollide(function(e) {
if (e.Settled) {
Sound.Play("item-get.wav")
e.Actor.AddItem(Self.Filename, 0);
Self.Destroy();
}
})
}