mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-17 11:11:10 +02:00
initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
-- Red's House 1F (pokered/scripts/RedsHouse1F.asm).
|
||||
--
|
||||
-- TEXT_REDSHOUSE1F_TV (RedsHouse1FTVText): text_asm checks the player's
|
||||
-- facing direction when interacting with the TV sign -- facing up shows
|
||||
-- the Stand By Me movie flavor text, any other facing shows the "wrong
|
||||
-- side" text (you're looking at the back of the TV).
|
||||
|
||||
local TextBox = require("src.render.TextBox")
|
||||
|
||||
return {
|
||||
REDS_HOUSE_1F = {
|
||||
talk = {
|
||||
TEXT_REDSHOUSE1F_TV = function(game, ow, npc, done)
|
||||
local t = game.data.text
|
||||
local text
|
||||
if ow.player.facing == "up" then
|
||||
text = t._RedsHouse1FTVStandByMeMovieText
|
||||
else
|
||||
text = t._RedsHouse1FTVWrongSideText
|
||||
end
|
||||
game.stack:push(TextBox.new(game, text, done))
|
||||
end,
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user