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:
21
scripts/battle/encounters/dummy.lua
Normal file
21
scripts/battle/encounters/dummy.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
local Dummy, super = Class(Encounter)
|
||||
|
||||
function Dummy:init()
|
||||
super.init(self)
|
||||
|
||||
-- Text displayed at the bottom of the screen at the start of the encounter
|
||||
self.text = "* The tutorial begins...?"
|
||||
|
||||
-- Battle music ("battle" is rude buster)
|
||||
self.music = "battle"
|
||||
-- Enables the purple grid battle background
|
||||
self.background = true
|
||||
|
||||
-- Add the dummy enemy to the encounter
|
||||
self:addEnemy("dummy")
|
||||
|
||||
--- Uncomment this line to add another!
|
||||
--self:addEnemy("dummy")
|
||||
end
|
||||
|
||||
return Dummy
|
||||
Reference in New Issue
Block a user