Skip to content

Commit

Permalink
Merge pull request #57 from electric-moss/main
Browse files Browse the repository at this point in the history
say goodbye to daily stains and dirty surfaces
  • Loading branch information
slweeb authored Aug 13, 2024
2 parents 61e1217 + 5512fee commit 6e03a3d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions kitchen_gun.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var kitchengunbang = new Audio('https://github.com/electric-moss/electric-moss.github.io/raw/main/BANG.mp3')

addTool("kitchen_gun", {
func: function(placed) { toolData.blend.func(placed); },
whileOn: function() { console.log("BANG!!!"); },
onClick: function(x,y) {
console.log(x,y)
kitchengunbang.play();
},
//shape:"plus_round",
spin: false,
img:"https://raw.githubusercontent.com/electric-moss/electric-moss.github.io/main/crosshair.png"
})

0 comments on commit 6e03a3d

Please sign in to comment.