Add new maps and tileset for the game world
- Created room1.tmx and room1.lua for the first room in the game, including tiles, collision objects, and NPCs. - Added room2.tmx and room2.lua for the second room, featuring tiles, collision objects, and an enemy. - Introduced a world template to manage map transitions and layout. - Implemented a new tileset (castle.tsx and castle.lua) for the castle theme, including tile properties and image references.
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