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:
24
scripts/battle/cutscenes/dummy.lua
Normal file
24
scripts/battle/cutscenes/dummy.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
return {
|
||||
-- The inclusion of the below line tells the language server that the first parameter of the cutscene is `BattleCutscene`.
|
||||
-- This allows it to fetch us useful documentation that shows all of the available cutscene functions while writing our cutscenes!
|
||||
|
||||
---@param cutscene BattleCutscene
|
||||
susie_punch = function(cutscene, battler, enemy)
|
||||
-- Open textbox and wait for completion
|
||||
cutscene:text("* Susie threw a punch at\nthe dummy.")
|
||||
|
||||
-- Hurt the target enemy for 1 damage
|
||||
Assets.playSound("damage")
|
||||
enemy:hurt(1, battler)
|
||||
-- Wait 1 second
|
||||
cutscene:wait(1)
|
||||
|
||||
-- Susie text
|
||||
cutscene:text("* You,[wait:5] uh,[wait:5] look like a weenie.[wait:5]\n* I don't like beating up\npeople like that.", "nervous_side", "susie")
|
||||
|
||||
if cutscene:getCharacter("ralsei") then
|
||||
-- Ralsei text, if he's in the party
|
||||
cutscene:text("* Aww,[wait:5] Susie!", "blush_pleased", "ralsei")
|
||||
end
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user