//> using platform jvm
//> using jvm 17
import javax.swing._
import javax.swing.event._
import java.awt._
import java.awt.event._
object AnnabellePart3HorrorApp {
def main(args: Array[String]): Unit = {
SwingUtilities.invokeLater(new Runnable {
def run(): Unit = {
// 1. SECURITY VERIFICATION
val correctPassword = "Bixuu02_anime"
val userInput = JOptionPane.showInputDialog(
null,
"? HORROR SECURITY VERIFICATION (PART 3 - FINAL)\n\nPlease enter Password to access Annabelle Part 3:",
"Haunted Access",
JOptionPane.QUESTION_MESSAGE
)
if (userInput == null || userInput != correctPassword) {
JOptionPane.showMessageDialog(
null,
"? Access Denied! Incorrect Password.",
"Error",
JOptionPane.ERROR_MESSAGE
)
sys.exit(0)
}
// 2. HORROR STORY DATA (PART 3 - EPISODES 1 TO 20)
val storyData: Map[String, String] = Map(
"Chapter 1: The Artifact Room" ->
"""==================================================
|HORROR STORY: ANNABELLE PART 3 - COMES HOME
|Written by Bixuu
|==================================================
|
|HORROR CHARACTERS:
| - Judy Warren (Paranormal Investigators' Daughter)
| - Daniela (Curious Friend)
| - Mary (Babysitter)
| - Annabelle (The Cursed Doll)
|
|CHAPTER 1 STORY & DIALOGUES:
|Ed aur Lorraine Warren ne Annabelle doll ko apne ghar ke secret Artifact Room mein ek consecrated glass case ke andar lock kar diya tha. Lekin ek din unki beti Judy ki friend Daniela galti se us room mein ghus gayi.
|
|Daniela (Door ko touch karte hue): "Yeh wahi famous haunted room hai na? Kya sach mein iske andar shaitaan hai?"
|Judy: "Daniela, please wahan se hat jao! Mom-Dad ne mana kiya hai us room ke paas aane ke liye!"
|Daniela: "Main bas dekhna chahti hoon ki wo doll kitni creepy hai."
|===================================================""".stripMargin,
"Chapter 2: Unlocking the Glass Case" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 2 STORY & DIALOGUES:
|Daniela ki curiosity itni badh gayi ki usne galti se artifact room ki chabhi dhoond kar Annabelle ke glass case ka lock khol diya.
|
|Daniela (Doll ko dekhte hue): "Dekho, yeh toh bas ek aam porcelain doll lag rahi hai... kuch khaas nahi hai."
|Judy (Darr ke maare kapte hue): "Daniela! Tumne case kyu khola?! Ise turant band karo!"
|*Jaise hi Daniela doll ko touch karti hai, case ka door apne aap zor se band ho jata hai.*
|===================================================""".stripMargin,
"Chapter 3: Awakening All Artifacts" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 3 STORY & DIALOGUES:
|Annabelle ke touch hote hi poore Artifact Room ke saare cursed objects (Music Box, Bride Dress, Samura Armor) mein jaan aa gayi.
|
|Mary (Babysitter, door bhaar se peette hue): "Judy! Daniela! Tum log andar kya kar rahe ho? Darwaza kholo!"
|Judy: "Mary! Hum trap ho chuke hain! Doll ne baaki saari evil spirits ko bhi jagah diya hai!"
|Annabelle (Whispering in the dark): "They are all awake... and they want you..."
|===================================================""".stripMargin,
"Chapter 4: The House of Horrors" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 4 STORY & DIALOGUES:
|Artifact room ke bahar nikalte hi poora ghar ek haunted maze mein badal gaya. Deewaron par ajeeb shadow figures ghumne lagiin.
|
|Daniela (Crying): "Meri galti hai... mujhe wo case nahi kholna chahiye tha!"
|Judy: "Rone ka waqt nahi hai, Daniela! Hume Mary ke paas living room mein pahunchna hoga."
|*Achanak samne se ek cursed Bride ghost nikal kar unka rasta rok leti hai.*
|===================================================""".stripMargin,
"Chapter 5: Mary's Desperate Rescue" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 5 STORY & DIALOGUES:
|Mary ne aage badh kar ek heavy cross uthaya aur ghost par feka, jisse illusion thodi der ke liye toot gaya.
|
|Mary: "Meri ankhon mein dekho aur bhagwan ka naam lo! Daro mat!"
|Judy: "Mary, Annabelle saari evil energies ko control kar rahi hai. Jab tak wo doll active hai, ye sab nahi rukega."
|Mary: "Toh hume us doll ko dobara us glass box mein band karna hoga!"
|===================================================""".stripMargin,
"Chapter 6: The TV Screen Nightmare" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 6 STORY & DIALOGUES:
|Living room ki television achanak apne aap chalu ho gayi aur usme ek creepy game show chalne laga jiska winner death thi.
|
|TV Voice: "Welcome to the game of life and death... Choose your path wisely!"
|Daniela: "Yeh kya ho raha hai?! TV par meri hi childhood memories kaise aa rahi hain?!"
|Judy: "Wo tumhare guilt ko use karke tumhe todna chahti hai, Daniela! Us screen ko mat dekho!"
|===================================================""".stripMargin,
"Chapter 7: The Samurai Armor Attack" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 7 STORY & DIALOGUES:
|Hall mein rakha purana Japanese Samurai Armor hawa mein uth kar apni sword nikal leta hai aur unki taraf badhta hai.
|
|Mary: "Bhaago! Wo sword hum par chala raha hai!"
|*Samurai sword kitchen ke counter par lagti hai aur poora counter tod deti hai.*
|Judy: "Kitchen ke raste se basement mein chalo! Wahan sacred salt circle hai!"
|===================================================""".stripMargin,
"Chapter 8: Trapped in the Basement" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 8 STORY & DIALOGUES:
|Teeno bhag kar basement mein pahunche aur apne aap ko ek safe zone mein lock kar liya.
|
|Daniela (Haapte hue): "Hum yahan kab tak safe rahenge?"
|Judy: "Jab tak hum wo doll dobara artifact room mein jakar lock nahi karte, tab tak koi safe nahi hai."
|Mary: "Par artifact room tak jana matlab maut ko bulana hai."
|===================================================""".stripMargin,
"Chapter 9: The Ghostly Deception" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 9 STORY & DIALOGUES:
|Basement ke door par achanak Ed Warren ki aawaz aayi.
|
|Voice of Ed Warren: "Judy beta, darwaza kholo! Main aur tumhari mom ghar wapas aa gaye hain!"
|Judy (Khushi se aage badhte hue): "Dad! Aap aa gaye?!"
|Mary (Judy ko rokhte hue): "Ruko Judy! Ed aur Lorraine abhi subah tak nahi aane wale the! Yeh asli Ed nahi hai!"
|*Darwaza tod kar samne ek demonic shadow nikal aati hai.*
|===================================================""".stripMargin,
"Chapter 10: Daniela's Confession" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 10 STORY & DIALOGUES:
|Daniela rone lagti hai kyunki use apne late father ki yaad aa rahi thi, jise doll manipulate kar rahi thi.
|
|Daniela: "Mujhe sirf apne papa se ek baar maafi mangni thi... isliye maine wo room khola tha."
|Judy: "Daniela, tumhare papa tumse pyaar karte the, wo tumhe kabhi galat raste par nahi dekhna chahte the. Apniweakness ko shaitaan ki taqat mat banne do!"
|Daniela (Anshu pochhte hue): "Tumne sahi kaha, Judy. Main ab nahi darungi!"
|===================================================""".stripMargin,
"Chapter 11: The Counter-Mission" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 11 STORY & DIALOGUES:
|Teeno ne milkar decide kiya ki ab wo chup nahi baithenge, balki seedha artifact room jaakar doll ka ant karenge.
|
|Mary: "Mere paas holy water ki spray bottle aur crucifix hai. Main aage chalungi."
|Judy: "Main glass case ki chabhi sambhalhti hoon."
|Daniela: "Aur main doll ko uthane ka risk lungi kyunki ye sab meri wajah se hua hai!"
|===================================================""".stripMargin,
"Chapter 12: Climbing the Haunted Stairs" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 12 STORY & DIALOGUES:
|Jab teeno upar ki sidiya chadh rahe the, toh stairs achanak rubber ki tarah stretch hone lagiin aur unke paas aag feli gayi.
|
|Mary (Spray chhidkate hue): "In the name of God, get back!"
|*Holy water ki har boond aag aur ghosts ko pichhe dhakel deti hai.*
|Judy: "Bas thodi door aur! Artifact room ka door samne hi hai!"
|===================================================""".stripMargin,
"Chapter 13: Inside the Cursed Room Again" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 13 STORY & DIALOGUES:
|Teeno artifact room ke andar enter hue jahan Annabelle doll beechon-beech chair par baithi unka wait kar rahi thi.
|
|Annabelle (Creepy demonic voice): "Tumne socha tum mujhe hara doge? Tum sab yhi dafnaye jaoge!"
|Daniela (Himmat karke aage badhti hai): "Teri ye chaal ab aur nahi chalegi, doll!"
|*Daniela tezi se doll ko utha kar glass case ki taraf daudti hai.*
|===================================================""".stripMargin,
"Chapter 14: The Final Struggle" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 14 STORY & DIALOGUES:
|Doll Daniela ke haath mein jor-jor se hilne lagi aur usne Daniela ke haathon par scratch kar diya.
|
|Daniela (Cheekte hue): "Ahhh! Ye bohot thandi hai!"
|Judy: "Daniela! Ise andar feko aur glass door lock karo!"
|Mary: "Main glass pakadti hoon, jaldi karo!"
|*Daniela apni aakhri taqat lagakar doll ko case ke andar fenk deti hai.*
|===================================================""".stripMargin,
"Chapter 15: Locking the Trap Forever" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 15 STORY & DIALOGUES:
|Judy ne tezi se chabhi ghumai aur glass case ko lock karke uspe blessed chain lapet di.
|
|Annabelle (Case ke andar se chilate hue): "NOOOOO! Tum mujhe qaid nahi kar sakte!"
|*Jaise hi lock lagta hai, poore room ki baki saari cursed objects apni-apni jagah par wapas shant ho jati hain.*
|Daniela (Haapte hue): "Hum... hum jeet gaye?"
|===================================================""".stripMargin,
"Chapter 16: Ed and Lorraine Return" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 16 STORY & DIALOGUES:
|Subah subah Ed aur Lorraine Warren ghar wapa lot aaye. Unhone ghar ki halat dekhi aur sab samajh gaye.
|
|Lorraine Warren (Judy ko gale lagate hue): "Tum sabne bohot badi bahaduri dikhayi hai beta. Is artifact room ki seal ko aur strong karna hoga."
|Ed Warren: "Annabelle ab kabhi is case se bahar nahi aa payegi."
|Daniela: "Uncle, mujhe maaf kar do, ye sab meri galti thi."
|Ed (Muskurate hue): "Galti se seekh milti hai, Daniela. Important ye hai ki tum sab safe ho."
|===================================================""".stripMargin,
"Chapter 17: Healing and Peace" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 17 STORY & DIALOGUES:
|Ghar mein fir se khushiyan aur shanti laut aayin. Judy aur Daniela ki dosti aur gehri ho gayi.
|
|Judy: "Ab se hum kabhi us room ke paas nahi jayenge."
|Daniela: "Promise! Maine life ki sabse badi seekh le li hai."
|Mary: "Aur main aage se babysitting karte waqt strict rules rakhungi!"
|===================================================""".stripMargin,
"Chapter 18: The Sealed Artifact" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 18 STORY & DIALOGUES:
|Artifact room mein ab wo glass case poori tarah consecrated crosses se ghira hua tha. Doll bilkul shant padi thi.
|
|Narrator Voice: "Kuch shraap kabhi poori tarah khatam nahi hote, unhe bas qaid karke rakhna padta hai."
|===================================================""".stripMargin,
"Chapter 19: A Quiet Whisper" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 19 STORY & DIALOGUES:
|Raat ke sannaate mein, jab sab so rahe the, tab case ke andar se ek halki si aawaz aayi.
|
|Annabelle (Very faint whisper): "I'm always waiting..."
|*Lekin is baar seal itni strong thi ki aawaz room ke bahar nahi ja saki.*
|===================================================""".stripMargin,
"Chapter 20: The Grand Trilogy Ending - Epilogue" ->
"""==================================================
|WRITTEN BY BIXUU
|==================================================
|
|CHAPTER 20 STORY & DIALOGUES (TRILOGY FINALE):
|Ek final grand message screen par flash hota hai.
|
|Author's Final Trilogy Note:
| "Annabelle ki kahani yahan poori hoti hai. Trilogy ka ant ho gaya hai, par darr ki parchhai hamesha hamare sath rehti hai!"
|
|THE END - ANNABELLE TRILOGY WRITTEN BY BIXUU.
|==================================================
|
|? ANNOUNCEMENT FROM CREATOR BIXUU:
|"BIXUU (??????) SUCCESSFULLY FINISHED THE ANNABELLE TRILOGY!
|Hope you loved all 3 parts. Stay tuned for more amazing stories!"
|===================================================""".stripMargin
)
// 3. GUI WINDOW CREATION
val frame = new JFrame("Horror Story Viewer: ANNABELLE PART 3 - By Bixuu")
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE)
frame.setSize(950, 650)
frame.setLocationRelativeTo(null)
// Header (Dark Horror Theme Color - Dark Crimson/Black)
val headerLabel = new JLabel(" ? ANNABELLE PART 3: COMES HOME (Written by Bixuu) ", SwingConstants.CENTER)
headerLabel.setFont(new Font("Arial", Font.BOLD, 15))
headerLabel.setOpaque(true)
headerLabel.setBackground(new Color(40, 0, 0))
headerLabel.setForeground(Color.WHITE)
headerLabel.setPreferredSize(new Dimension(950, 40))
// Chapter List
val chapterKeys = (1 to 20).map(i => storyData.keys.find(_.startsWith(s"Chapter $i:")).getOrElse(s"Chapter $i")).toArray
val listModel = new DefaultListModel[String]()
chapterKeys.foreach(listModel.addElement)
val chapterList = new JList[String](listModel)
chapterList.setFont(new Font("Arial", Font.PLAIN, 12))
chapterList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION)
chapterList.setSelectedIndex(0)
val listScrollPane = new JScrollPane(chapterList)
listScrollPane.setPreferredSize(new Dimension(320, 500))
// Story Text Area (Dark spooky background feel)
val storyArea = new JTextArea()
storyArea.setFont(new Font("Monospaced", Font.PLAIN, 13))
storyArea.setEditable(false)
storyArea.setLineWrap(true)
storyArea.setWrapStyleWord(true)
storyArea.setBackground(new Color(20, 20, 20))
storyArea.setForeground(new Color(230, 230, 230))
storyArea.setText(storyData(chapterKeys(0)))
storyArea.setCaretPosition(0)
val textScrollPane = new JScrollPane(storyArea)
// Selection Listener
chapterList.addListSelectionListener(new ListSelectionListener {
def valueChanged(e: ListSelectionEvent): Unit = {
if (!e.getValueIsAdjusting) {
val selectedKey = chapterList.getSelectedValue
if (selectedKey != null && storyData.contains(selectedKey)) {
storyArea.setText(storyData(selectedKey))
storyArea.setCaretPosition(0)
}
}
}
})
// Layout Assembly
val mainPanel = new JPanel(new BorderLayout())
mainPanel.add(headerLabel, BorderLayout.NORTH)
mainPanel.add(listScrollPane, BorderLayout.WEST)
mainPanel.add(textScrollPane, BorderLayout.CENTER)
frame.add(mainPanel)
frame.setVisible(true)
}
})
}
}
// Direct Execution Entrypoint for Scala Script / REPL
AnnabellePart3HorrorApp.main(Array())