pleins de trucs
This commit is contained in:
13
scripts/objects/Squeak.lua
Normal file
13
scripts/objects/Squeak.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
---@class Squeak : Event
|
||||
local Squeak, super = Class(Event)
|
||||
|
||||
function Squeak:init(x, y, shape)
|
||||
super.init(self, x, y, shape)
|
||||
end
|
||||
|
||||
function Squeak:onInteract(player, dir)
|
||||
Assets.playSound("squeak")
|
||||
return true
|
||||
end
|
||||
|
||||
return Squeak
|
||||
Reference in New Issue
Block a user