Code edit (5 edits merged)
Please save this source code
User prompt
Restart penceresindeki skor ve score yazılarının puntolarını büyüt ve sarının rengini çok az daha açık sarı yap
User prompt
Endingscreen ve restart penceresindeki skor ve score yazılarının sarı tonunu daha koyu yap
Code edit (11 edits merged)
Please save this source code
User prompt
Soru 5, 6 veya 7 kelimeden oluşuyorsa ve toplam harf sayısı 34ü geçiyorsa yazı puntosunu 4 birim daha küçült
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
FINAL SKOR: altında yazan skor dijitlerinin puntosunu biraz daha büyüt ve kalınlaştır. Restartın altındaki Score: ve türkçesindeki Skor: seçeneklerinin de yazı puntolarını büyüt
User prompt
Oyun her iki dil seçeneğinde de restart ile yeniden başladığında süre yeniden azalmaya başlamıyor. Eğer arka planda doğru çalışıyor olsa bile görsel olarak timebar azalma eventi dolu bir şekilde duruyor. Bunu düzelt oyuna yeniden başladıktan sonra süre tekrar aktif olsun ve timebar düşmeye başlasın
User prompt
Hala timer oyun restart edildiğinde çalışmıyor. Bunu çöz
User prompt
Oyun her iki dil seçeneğinde de restart ile yeniden başladığında süre yeniden azalmaya başlamıyor. Bunu düzelt oyuna yeniden başladıktan sonra süre tekrar aktif olsun ve timebar düşmeye başlasın
User prompt
Oyun restart ile yeniden başladığında süre yeniden başlamıyor. Düzelt
User prompt
Türkçe dil seçeneği seçilirse restart asseti yerine tekrar adlı yeni bir asset kullan
User prompt
İlk soruda Skor: yazıyor ancak ilk sorunun şıkkına basınca Score: a dönüşüyor. Bunu engelle. düzelt
User prompt
Yine türkçe dili seçilirse oyun ekranında aşağıda ki Score: yerine de Skor: yaz
User prompt
LanguageScreen de türkçe seçilirse; 1) Score: yerine Skor: yaz. 2) Finale Score: yerine Final Skoru: yaz. 3) Correct: yerine Doğru: yaz. 4) Time Bonus: yerine ise Zaman Bonusu: yaz.
User prompt
restart'a basıldığında startingscreen ve languagescreen geç doğrudan yeni bölüme başla. eğer türkçe seçildiyse yeni oyuna da türkçe, ingilizce seçildiyse yeni oyuna da ingilizce başla
User prompt
restart'a basıldığında startingscreen ve languagescreen geç doğrudan yeni bölüme başla
Code edit (2 edits merged)
Please save this source code
User prompt
Türkçe sorularda kelime sayısı 5ten fazlaysa yazı puntosunu 4 düşür
User prompt
türkçe soruların tamamının yazı puntosunu 2 küçült
User prompt
Türkçe sorularda Eğer soru 6 kelimeden uzunsa, soru otomatik olarak iki satıra bölünür. kuralı ekle
User prompt
ingilizce sorulardaki kuralları aynen türkçe sorulara da uygula
Code edit (1 edits merged)
Please save this source code
User prompt
Türkçeye çeviriyi otomatik yapma. Aynı ingizce sorularda olduğu gibi onları da kodlarda tek tek yaz. Sen ilk sefer için çevir ben sonra çevirileri kontrol ederim.
/****
* Plugins
****/
var tween = LK.import("@upit/tween.v1");
/****
* Classes
****/
// Option Button Class
var OptionButton = Container.expand(function () {
var self = Container.call(this);
// Attach button background
var btn = self.attachAsset('optionBtn', {
anchorX: 0.5,
anchorY: 0.5
});
// Attach text
var txt = new Text2('', {
size: 80,
fill: "#fff"
});
txt.anchor.set(0.5, 0.5);
self.addChild(txt);
// Set option text
self.setText = function (str) {
txt.setText(str);
};
// Set index (for event handling)
self.index = -1;
// Enable/disable button
self.setEnabled = function (enabled) {
btn.alpha = enabled ? 1 : 0.5;
self.interactive = enabled;
};
// Flash green/red for feedback
self.flash = function (color, duration) {
tween(btn, {
color: color
}, {
duration: duration,
onFinish: function onFinish() {
btn.color = 0x8B0000;
}
});
};
return self;
});
// Restart Button Class (no text inside)
var RestartButton = Container.expand(function () {
var self = Container.call(this);
var btn = self.attachAsset('restart', {
anchorX: 0.5,
anchorY: 0.5
});
return self;
});
// Start Button Class
var StartButton = Container.expand(function () {
var self = Container.call(this);
var btn = self.attachAsset('startBtn', {
anchorX: 0.5,
anchorY: 0.5
});
return self;
});
// Tekrar Button Class (for Turkish replay)
var TekrarButton = Container.expand(function () {
var self = Container.call(this);
var btn = self.attachAsset('tekrar', {
anchorX: 0.5,
anchorY: 0.5
});
return self;
});
// Timer Bar Class
var TimerBar = Container.expand(function () {
var self = Container.call(this);
var bg = self.attachAsset('timerBarBg', {
anchorX: 0.5,
anchorY: 0.5
});
var fg = self.attachAsset('timerBarFg', {
anchorX: 0.5,
anchorY: 0.5
});
fg.y = 0;
self.fg = fg;
self.bg = bg;
// Set progress (0-1)
self.setProgress = function (p) {
if (p < 0) {
p = 0;
}
if (p > 1) {
p = 1;
}
fg.width = 1200 * p;
fg.x = -(1200 * (1 - p)) / 2;
};
return self;
});
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x181818
});
/****
* Game Code
****/
// Timer bar foreground
// Timer bar background
// Start button shape: larger dark red rectangle
// Button shape: dark red rectangle for options
// --- Quiz Data ---
// 3 packages: Easy, Medium, Hard. Each is an array of {q, options, answer, points}
var easyQuestions = [{
q: "What is the name of Bilbo's home?",
options: ["Bag End", "Rivendell", "Minas Tirith", "Helm's Deep"],
answer: 0,
points: 3
}, {
q: "What is the name of Elrond's daughter?",
options: ["Arwen", "Galadriel", "Eowyn", "Lúthien"],
answer: 0,
points: 3
}, {
q: "What creature does Bilbo encounter in the goblin tunnels?",
options: ["Gollum", "Troll", "Spider", "Orc"],
answer: 0,
points: 3
}, {
q: "What does Bilbo find in Gollum's cave?",
options: ["The One Ring", "A sword", "A map", "A key"],
answer: 0,
points: 3
}, {
q: "Which river runs through the Shire?",
options: ["Brandywine", "Anduin", "Isen", "Baranduin"],
answer: 0,
points: 3
}, {
q: "Who is Théoden’s niece?",
options: ["Éowyn", "Éomer", "Lobelia", "Arwen"],
answer: 0,
points: 3
}, {
q: "What is Gandalf’s sword called?",
options: ["Glamdring", "Andúril", "Sting", "Narsil"],
answer: 0,
points: 3
}, {
q: "Who captures Merry and Pippin at Amon Hen?",
options: ["Uruk-hai", "Orcs of Moria", "Goblins", "Nazgûl"],
answer: 0,
points: 3
}, {
q: "Who originally owns the sword Sting?",
options: ["Bilbo", "Frodo", "Gandalf", "Aragorn"],
answer: 0,
points: 3
}, {
q: "What do the Hobbits call humans?",
options: ["Big Folk", "Tall Men", "Giantkins", "Outsiders"],
answer: 0,
points: 3
}, {
q: "Which Ent carries Pippin and Merry to Isengard?",
options: ["Treebeard", "Quickbeam", "Leaflock", "Skinbark"],
answer: 0,
points: 3
}, {
q: "What is the name of the volcano in Mordor?",
options: ["Mount Doom", "Mount Shadow", "Mount Fire", "Mount Sauron"],
answer: 0,
points: 3
}, {
q: "Who is the king of Rohan?",
options: ["Théoden", "Denethor", "Boromir", "Aragorn"],
answer: 0,
points: 3
}, {
q: "Who destroys the One Ring?",
options: ["Gollum", "Frodo", "Sam", "Aragorn"],
answer: 0,
points: 3
}, {
q: "Which Hobbit was known for going on adventures before Bilbo?",
options: ["Bullroarer Took", "Frodo Baggins", "Samwise Gamgee", "Meriadoc Brandybuck"],
answer: 0,
points: 3
}, {
q: "Which creature lived near the roots of the Misty Mountains and riddled with Bilbo?",
options: ["Gollum", "Shelob", "Watcher in the Water", "Smaug"],
answer: 0,
points: 3
}, {
q: "Who was the master of Rivendell?",
options: ["Elrond", "Glorfindel", "Thranduil", "Celeborn"],
answer: 0,
points: 3
}, {
q: "What is the name of the path through the Dead Marshes?",
options: ["The Straight Stair", "The Greenway", "The Dimholt Road", "The North-South Road"],
answer: 0,
points: 3
}, {
q: "Which Hobbit family lived in Buckland?",
options: ["Brandybuck", "Took", "Baggins", "Gamgee"],
answer: 0,
points: 3
}, {
q: "Which tower did Saruman occupy?",
options: ["Orthanc", "Minas Tirith", "Barad-dûr", "Cirith Ungol"],
answer: 0,
points: 3
}, {
q: "What is the Elvish name for Rivendell?",
options: ["Imladris", "Lothlórien", "Doriath", "Eregion"],
answer: 0,
points: 3
}, {
q: "Who created the Two Trees of Valinor?",
options: ["Yavanna", "Varda", "Nienna", "Melian"],
answer: 0,
points: 3
}, {
q: "Who was the last ruling Steward before Aragorn became king?",
options: ["Denethor II", "Faramir", "Boromir", "Turgon"],
answer: 0,
points: 3
}, {
q: "What is the name of Tom Bombadil’s wife?",
options: ["Goldberry", "Lobelia Sackville-Baggins", "Melian", "Rose Cotton"],
answer: 0,
points: 3
}, {
q: "Who is Samwise's wife?",
options: ["Rose Cotton", "Lobelia Sackville-Baggins", "Esmeralda Took", "Mrs.Maggot"],
answer: 0,
points: 3
}, {
q: "Who is the shape-shifter that helps Thorin's company near the Carrock?",
options: ["Beorn", "Radagast", "Thranduil", "Gwaihir"],
answer: 0,
points: 3
}, {
q: "What was Khazad-dûm later called after it was abandoned by the Dwarves?",
options: ["Moria", "Erebor", "Gundabad", "Aglarond"],
answer: 0,
points: 3
}, {
q: "Who attempted to reclaim Khazad-dûm and was killed by the Balrog?",
options: ["Balin", "Dáin Ironfoot", "Thorin Oakenshield", "Durin VI"],
answer: 0,
points: 3
}, {
q: "What creatures capture the Dwarves and Bilbo in Mirkwood?",
options: ["Giant spiders", "Trolls", "Goblins", "Wolves"],
answer: 0,
points: 3
}, {
q: "What was Bilbo's mother’s name?",
options: ["Belladonna Took", "Lobelia Sackville-Baggins", "Primula Brandybuck", "Esmeralda Took"],
answer: 0,
points: 3
}, {
q: "Who is the old hobbit who tries to claim Bilbo’s home while he is away?",
options: ["Lobelia Sackville-Baggins", "Ted Sandyman", "Otho Baggins", "Lotho Sackville-Baggins"],
answer: 0,
points: 3
}, {
q: "Who owns the Prancing Pony?",
options: ["Barliman Butterbur", "Odo Proudfoot", "Daddy Twofoot", "Hugo Bracegirdle"],
answer: 0,
points: 3
}, {
q: "Who told Thorin the map and key once belonged to his grandfather, Thrór?",
options: ["Gandalf", "Balin", "Elrond", "Thrain"],
answer: 0,
points: 3
}, {
q: "What was the name of Thorin’s sword, found in the troll-hoard?",
options: ["Orcrist", "Glamdring", "Angrist", "Sting"],
answer: 0,
points: 3
}, {
q: "What gift did Galadriel give to Frodo when he left Lothlórien?",
options: ["A phial of light from Eärendil’s star", "A ring of power", "Elvish rope", "A blade of Westernesse"],
answer: 0,
points: 3
}, {
q: "Which forest is ruled by Treebeard and the Ents?",
options: ["Fangorn", "Mirkwood", "Lothlórien", "Ithilien"],
answer: 0,
points: 3
}, {
q: "Who reforged the sword Narsil into Andúril?",
options: ["Elves of Rivendell", "Dwarves of Erebor", "Men of Gondor", "Galadriel"],
answer: 0,
points: 3
}, {
q: "What creature did Gollum used to be?",
options: ["Hobbit", "Elf", "Dwarf", "Orc"],
answer: 0,
points: 3
}, {
q: "What is the name of Frodo's sword?",
options: ["Sting", "Andúril", "Glamdring", "Orcrist"],
answer: 0,
points: 3
}, {
q: "What were the Silmarils made of?",
options: ["The light of the Two Trees", "Fire of Udûn", "Mithril", "Starlight from Varda"],
answer: 0,
points: 3
}, {
q: "Who forged the One Ring?",
options: ["Sauron", "Saruman", "Elrond", "Gandalf"],
answer: 0,
points: 3
}, {
q: "Which group of Elves followed Fëanor into exile?",
options: ["The Noldor", "The Vanyar", "The Teleri", "The Sindar"],
answer: 0,
points: 3
}, {
q: "Who was the Maia that became the Dark Lord of Mordor?",
options: ["Sauron", "Melkor", "Saruman", "Gothmog"],
answer: 0,
points: 3
}, {
q: "What race are Treebeard and his kind?",
options: ["Ents", "Huorns", "Trolls", "Maiar"],
answer: 0,
points: 3
}, {
q: "What is the name of the creature that nearly traps the Fellowship in the water near Moria?",
options: ["Watcher in the Water", "Barrow-wight", "Gollum", "Caradhras"],
answer: 0,
points: 3
}, {
q: "What happened to the Ent-wives, according to Treebeard?",
options: ["They wandered east and were lost", "They turned into trees", "They became Huorns", "They were destroyed by Orcs"],
answer: 0,
points: 3
}, {
q: "Who rules the lands of the Old Forest near the Barrow - downs?",
options: ["Tom Bombadil", "The Barrow-wight", "Farmer Maggot", "The Witch-king"],
answer: 0,
points: 3
}, {
q: "What is the name of the land where Hobbits live?",
options: ["The Shire", "Rohan", "Gondor", "Mordor"],
answer: 0,
points: 3
}, {
q: "Who is Frodo's loyal gardener and companion?",
options: ["Samwise Gamgee", "Peregrin Took", "Meriadoc Brandybuck", "Boromir"],
answer: 0,
points: 3
}, {
q: "What is the name of the wizard who leads the Fellowship?",
options: ["Gandalf", "Saruman", "Radagast", "Alatar"],
answer: 0,
points: 3
}];
var mediumQuestions = [{
q: "What is the name of Aragorn's sword?",
options: ["Andúril", "Sting", "Glamdring", "Orcrist"],
answer: 0,
points: 5
}, {
q: "Which Elven realm is ruled by Thranduil?",
options: ["Mirkwood", "Lothlórien", "Rivendell", "Doriath"],
answer: 0,
points: 5
}, {
q: "Who was Gil-galad's herald during the War of the Last Alliance?",
options: ["Elrond", "Glorfindel", "Círdan", "Erestor"],
answer: 0,
points: 5
}, {
q: "What is the name of the mountain above Moria?",
options: ["Caradhras", "Barazinbar", "Zirakzigil", "Celebdil"],
answer: 0,
points: 5
}, {
q: "What is the true identity of the Necromancer in The Hobbit?",
options: ["Sauron", "Saruman", "Morgoth", "The Witch-king"],
answer: 0,
points: 5
}, {
q: "Which Dwarf leads the company in The Hobbit?",
options: ["Thorin Oakenshield", "Balin", "Fíli", "Dáin Ironfoot"],
answer: 0,
points: 5
}, {
q: "Which river lies between Mordor and Gondor?",
options: ["Anduin", "Isen", "Baranduin", "Greyflood"],
answer: 0,
points: 5
}, {
q: "Who forged the Three Elven Rings?",
options: ["Celebrimbor", "Fëanor", "Galadriel", "Mahtan"],
answer: 0,
points: 5
}, {
q: "Who was the father of Beren?",
options: ["Barahir", "Beleg", "Finrod", "Amlach"],
answer: 0,
points: 5
}, {
q: "What race was Gwindor from Nargothrond?",
options: ["Elf", "Man", "Dwarf", "Maia"],
answer: 0,
points: 5
}, {
q: "What creature kills Thorin Oakenshield?",
options: ["Azog’s son Bolg", "Smaug", "The Watcher in the Water", "Gothmog"],
answer: 0,
points: 5
}, {
q: "Who was the wife of Elrond?",
options: ["Celebrían", "Galadriel", "Lúthien", "Idril"],
answer: 0,
points: 5
}, {
q: "Which Ent speaks most in the Entmoot?",
options: ["Treebeard", "Quickbeam", "Beechbone", "Skinbark"],
answer: 0,
points: 5
}, {
q: "What is the name of Elrond’s brother, who chose mortality?",
options: ["Elros", "Eärendil", "Gil-galad", "Círdan"],
answer: 0,
points: 5
}, {
q: "Which Dwarf carried the key and map to Erebor in The Hobbit?",
options: ["Thorin Oakenshield", "Balin", "Dwalin", "Gloin"],
answer: 0,
points: 5
}, {
q: "Which ancient enemy did Durin's Bane turn out to be?",
options: ["A Balrog", "A Nazgûl", "A Troll-King", "A Dragon"],
answer: 0,
points: 5
}, {
q: "What is the name of the spider that lived in Cirith Ungol?",
options: ["Shelob", "Ungoliant", "Shagrat", "Kankra"],
answer: 0,
points: 5
}, {
q: "Who was the first king of Númenor?",
options: ["Elros Tar-Minyatur", "Tar-Aldarion", "Ar-Pharazôn", "Tar-Ancalimë"],
answer: 0,
points: 5
}, {
q: "Which sword was reforged into Andúril?",
options: ["Narsil", "Glamdring", "Orcrist", "Ringil"],
answer: 0,
points: 5
}, {
q: "What are the Palantíri?",
options: ["Seeing-stones", "Elvish books", "Dwarvish runes", "Gondorian scrolls"],
answer: 0,
points: 5
}, {
q: "Who was Isildur’s father?",
options: ["Elendil", "Ar-Pharazôn", "Tar-Palantir", "Amandil"],
answer: 0,
points: 5
}, {
q: "Which Elf-lord led the forces of Lothlórien against Dol Guldur?",
options: ["Celeborn", "Galadriel", "Thranduil", "Haldir"],
answer: 0,
points: 5
}, {
q: "Who slayed the Witch-king of Angmar?",
options: ["Éowyn", "Merry", "Gandalf", "Aragorn"],
answer: 0,
points: 5
}, {
q: "What is the name of the sword used by Fingolfin in his duel with Morgoth?",
options: ["Ringil", "Glamdring", "Anglachel", "Grond"],
answer: 0,
points: 5
}, {
q: "Which race originally inhabited the caverns of Aglarond?",
options: ["Dwarves", "Elves", "Men of Rohan", "Orcs"],
answer: 0,
points: 5
}, {
q: "Which forest is home to Legolas?",
options: ["Mirkwood", "Fangorn", "Lothlórien", "Shire"],
answer: 0,
points: 5
}, {
q: "What was the name of the land where the Entwives were last seen cultivating gardens?",
options: ["The Brown Lands", "Fangorn Forest", "Rohan", "Ithilien"],
answer: 0,
points: 5
}, {
q: "What vow did Feanor and his sons take?",
options: ["To recover the Silmarils at any cost", "To serve the Valar", "To destroy Morgoth", "To unite the Noldor"],
answer: 0,
points: 5
}, {
q: "What caused Feanor’s rebellion against the Valar?",
options: ["The theft of the Silmarils and murder of his father", "His hatred of Fingolfin", "His desire to rule Middle-earth", "The lies of Melian"],
answer: 0,
points: 5
}, {
q: "Which of these creatures did not inhabit the Dead Marshes?",
options: ["Watcher in the Water", "Corpse-candles", "Phantoms", "Mists"],
answer: 0,
points: 5
}, {
q: "Which of these languages was not invented by Tolkien?",
options: ["Klingon", "Quenya", "Sindarin", "Adûnaic"],
answer: 0,
points: 5
}, {
q: "What is the name of the pony that Sam takes on the journey from Bree?",
options: ["Bill", "Tom", "Fatty", "Brownie"],
answer: 0,
points: 5
}, {
q: "What unusual weapon does Merry use to wound the Witch king?",
options: ["A dagger from the Barrow-downs", "Sting", "A Gondorian spear", "A Númenórean sword"],
answer: 0,
points: 5
}, {
q: "What is the name of the river near Beorn’s house?",
options: ["Anduin", "Withywindle", "Bruinen", "Entwash"],
answer: 0,
points: 5
}, {
q: "What was the name of the Dwarven door hidden with Elvish inscription at Moria’s western entrance?",
options: ["Doors of Durin", "Gate of Azanulbizar", "Threshold of Thrain", "Iron Hall Gate"],
answer: 0,
points: 5
}, {
q: "What is the name of the elf who welcomes Thorin’s company in Rivendell?",
options: ["Lindir", "Glorfindel", "Galdor", "Erestor"],
answer: 0,
points: 5
}, {
q: "Which of these was not one of the Three Elven Rings?",
options: ["Tenya", "Nenya", "Vilya", "Narya"],
answer: 0,
points: 5
}, {
q: "Who was the king of Doriath?",
options: ["Thingol", "Fingolfin", "Finarfin", "Finrod"],
answer: 0,
points: 5
}, {
q: "Who was the Lord of the Eagles that rescued Thorin’s company from the Wargs?",
options: ["Gwaihir", "Thorondor", "Landroval", "Carcaroth"],
answer: 0,
points: 5
}, {
q: "Who gave birth to Fëanor?",
options: ["Míriel", "Indis", "Nerdanel", "Galadriel"],
answer: 0,
points: 5
}, {
q: "Which of the Valar created the stars before the awakening of the Elves?",
options: ["Varda", "Yavanna", "Nessa", "Nienna"],
answer: 0,
points: 5
}, {
q: "Who helped Beren on his quest for a Silmaril?",
options: ["Lúthien", "Idril", "Finrod", "Elwing"],
answer: 0,
points: 5
}, {
q: "What was the name of the great spider that devoured the light of the Trees?",
options: ["Ungoliant", "Shelob", "Gorgol", "Thuringwethil"],
answer: 0,
points: 5
}, {
q: "What is the true name of Gandalf?",
options: ["Olórin", "Curunír", "Aiwendil", "Mithrandir"],
answer: 0,
points: 5
}, {
q: "Which Vala created the Dwarves?",
options: ["Aulë", "Manwë", "Ulmo", "Yavanna"],
answer: 0,
points: 5
}, {
q: "What is the name of the inn in Bree?",
options: ["The Prancing Pony", "The Green Dragon", "The Golden Perch", "The Ivy Bush"],
answer: 0,
points: 5
}, {
q: "What is the name of the island where the Valar dwell?",
options: ["Aman", "Numenor", "Tol Eressëa", "Balar"],
answer: 0,
points: 5
}, {
q: "What is the name of the Elven realm ruled by Galadriel?",
options: ["Lothlórien", "Rivendell", "Mirkwood", "Valinor"],
answer: 0,
points: 5
}, {
q: "Who is the father of Elrond?",
options: ["Eärendil", "Fingolfin", "Fëanor", "Finrod"],
answer: 0,
points: 5
}, {
q: "Which city is known as the White City?",
options: ["Minas Tirith", "Edoras", "Dale", "Osgiliath"],
answer: 0,
points: 5
}, {
q: "Who is the Lord of the Glittering Caves?",
options: ["Gimli", "Legolas", "Thranduil", "Dáin Ironfoot"],
answer: 0,
points: 5
}, {
q: "Who was the first being to awaken in Middle-earth according to the Ainulindalë?",
options: ["The Elves", "The Dwarves", "The Ents", "The Men"],
answer: 0,
points: 5
}, {
q: "What is the name of the forest between the Shire and Bree?",
options: ["The Old Forest", "Fangorn", "Mirkwood", "Greenwood"],
answer: 0,
points: 5
}, {
q: "What is the name of the pass through the Misty Mountains used by the Fellowship?",
options: ["Caradhras", "Cirith Ungol", "Redhorn Pass", "Gap of Rohan"],
answer: 0,
points: 5
}];
var hardQuestions = [{
q: "Who spoke the Doom of Mandos to the Noldor at Losgar?",
options: ["Mandos himself", "Manwë", "Oromë", "Eönwë"],
answer: 0,
points: 10
}, {
q: "What legendary event led to the invention of golf in Hobbit lore?",
options: ["Bullroarer Took knocking off a goblin’s head", "Bilbo fighting spiders", "The Battle of the Five Armies", "Gollum’s riddles"],
answer: 0,
points: 10
}, {
q: "What was the northern kingdom of the Dúnedain called?",
options: ["Arnor", "Gondor", "Rohan", "Eregion"],
answer: 0,
points: 10
}, {
q: "Who is considered the largest and most powerful dragon ever to exist?",
options: ["Ancalagon the Black", "Smaug", "Glaurung", "Scatha"],
answer: 0,
points: 10
}, {
q: "How did Ancalagon the Black die?",
options: ["Fell on Thangorodrim after being slain by Eärendil", "Killed by Beren", "Killed by Thorin", "Defeated by Gandalf"],
answer: 0,
points: 10
}, {
q: "Who was the Lord of the Balrogs during the First Age?",
options: ["Gothmog", "Sauron", "Morgoth", "Thuringwethil"],
answer: 0,
points: 10
}, {
q: "Who among the Elves was NOT offered the choice of mortality?",
options: ["Legolas", "Lúthien", "Arwen", "Idril"],
answer: 0,
points: 10
}, {
q: "How many Rings of Power were made in total (excluding the One Ring)?",
options: ["Nineteen", "Twenty", "Seventeen", "Thirteen"],
answer: 0,
points: 10
}, {
q: "Who forged the Three Elven Rings?",
options: ["Celebrimbor", "Sauron", "Fëanor", "Curufin"],
answer: 0,
points: 10
}, {
q: "What was the name of the great wolf bred by Morgoth?",
options: ["Carcharoth", "Huan", "Draugluin", "Garm"],
answer: 0,
points: 10
}, {
q: "Which Elf first greeted the Sun upon its rising?",
options: ["Ingwë", "Fëanor", "Finwë", "Fingolfin"],
answer: 0,
points: 10
}, {
q: "What is the name of the chain that bound Melkor?",
options: ["Angainor", "Grond", "Andúril", "Vingilot"],
answer: 0,
points: 10
}, {
q: "Which of the Two Trees of Valinor gave silver light?",
options: ["Telperion", "Laurelin", "Galathilion", "Silpion"],
answer: 0,
points: 10
}, {
q: "Which river did Isildur try to cross when he was ambushed and killed?",
options: ["Anduin", "Baranduin", "Sirion", "Gwathló"],
answer: 0,
points: 10
}, {
q: "Who betrayed Gondolin to Morgoth?",
options: ["Maeglin", "Eöl", "Tuor", "Salgant"],
answer: 0,
points: 10
}, {
q: "What was the name of the sword that killed the Witch-king?",
options: ["Merry’s Barrow-blade", "Andúril", "Sting", "Glamdring"],
answer: 0,
points: 10
}, {
q: "Which Maia helped Morgoth corrupt Elves into Orcs?",
options: ["Sauron", "Gothmog", "Saruman", "Thuringwethil"],
answer: 0,
points: 10
}, {
q: "What star was created from a Silmaril and placed in the sky?",
options: ["Eärendil", "Elbereth", "Valacirca", "Carnil"],
answer: 0,
points: 10
}, {
q: "Which Vala was closest to Melkor in might before his fall?",
options: ["Manwë", "Tulkas", "Ulmo", "Aulë"],
answer: 0,
points: 10
}, {
q: "What was the original name of Sauron as a Maia?",
options: ["Mairon", "Annatar", "Gorthaur", "Curumo"],
answer: 0,
points: 10
}, {
q: "Which Elf of Gondolin created the Great Eagles alongside Manwë?",
options: ["Thorondor", "Ecthelion", "Glorfindel", "Maeglin"],
answer: 0,
points: 10
}, {
q: "Which language did the Black Númenóreans retain after the fall of Númenor?",
options: ["Adûnaic", "Quenya", "Sindarin", "Westron"],
answer: 0,
points: 10
}, {
q: "What was the name of the chain used to bind Melkor?",
options: ["Angainor", "Angband", "Gurthang", "Grond"],
answer: 0,
points: 10
}, {
q: "Which river marked the western border of Mordor?",
options: ["Anduin", "Poros", "Harnen", "Narglorn"],
answer: 0,
points: 10
}, {
q: "Which mountain was formed from the remains of the Lamps after their destruction?",
options: ["Isle of Almaren", "Mount Rerir", "Mount Illuin", "Mount Thangorodrim"],
answer: 0,
points: 10
}, {
q: "Who was the mother of Maeglin?",
options: ["Aredhel", "Idril", "Galadriel", "Nimloth"],
answer: 0,
points: 10
}, {
q: "What is the true name of the island that later became Tol Eressëa?",
options: ["Elenna", "Avallónë", "Alqualondë", "Tol Galen"],
answer: 0,
points: 10
}, {
q: "What creature did Huan, the Hound of Valinor, fatally battle?",
options: ["Carcharoth", "Glaurung", "Shelob", "Ancalagon"],
answer: 0,
points: 10
}, {
q: "What was the name of the sword that Túrin used to slay Glaurung?",
options: ["Gurthang", "Anglachel", "Narsil", "Ringil"],
answer: 0,
points: 10
}, {
q: "Who was the mother of Lúthien?",
options: ["Melian", "Galadriel", "Míriel", "Aredhel"],
answer: 0,
points: 10
}, {
q: "Which Maia guided the Sun across the sky?",
options: ["Arien", "Tilion", "Eönwë", "Ilmarë"],
answer: 0,
points: 10
}, {
q: "Who was the original bearer of the Ring Nenya?",
options: ["Galadriel", "Celebrimbor", "Círdan", "Elrond"],
answer: 0,
points: 10
}, {
q: "What were the twin sons of Elrond named?",
options: ["Elladan and Elrohir", "Elendil and Isildur", "Faramir and Boromir", "Finrod and Fingon"],
answer: 0,
points: 10
}, {
q: "Who killed Fëanor?",
options: ["Balrogs of Morgoth", "Sauron", "Ungoliant", "Gothmog"],
answer: 0,
points: 10
}, {
q: "In what language was the One Ring inscription written?",
options: ["Black Speech", "Quenya", "Sindarin", "Adûnaic"],
answer: 0,
points: 10
}, {
q: "What is the name of the land between Dorthonion and Himring?",
options: ["Lothlann", "Dor-lómin", "Hithlum", "Nevrast"],
answer: 0,
points: 10
}, {
q: "Who was the only woman among the Ringwraiths in Tolkien’s drafts?",
options: ["Úlairë Lelya", "Tar-Míriel", "Thuringwethil", "Varda disguised"],
answer: 0,
points: 10
}, {
q: "What did Beren cut from Morgoth’s crown?",
options: ["A Silmaril", "The One Ring", "Morgul Blade", "Arkenstone"],
answer: 0,
points: 10
}, {
q: "What was the name of the dragon slain by Eärendil?",
options: ["Ancalagon the Black", "Glaurung", "Smaug", "Scatha"],
answer: 0,
points: 10
}, {
q: "Which Elf-lord survived the Fall of Gondolin and later became king in the Third Age?",
options: ["Glorfindel", "Ecthelion", "Turgon", "Maeglin"],
answer: 0,
points: 10
}, {
q: "Who built the secret city of Nargothrond?",
options: ["Finrod Felagund", "Turgon", "Círdan", "Fingolfin"],
answer: 0,
points: 10
}, {
q: "What was the name of the sword forged from a meteor by Telchar of Nogrod?",
options: ["Angrist", "Glamdring", "Andúril", "Herugrim"],
answer: 0,
points: 10
}, {
q: "Who is the father of Galadriel?",
options: ["Finarfin", "Finwë", "Fëanor", "Fingolfin"],
answer: 0,
points: 10
}, {
q: "What permanent wound did Fingolfin inflict upon Morgoth?",
options: ["A limp from a wounded foot", "Blindness in one eye", "A scar on his chest", "Loss of his crown"],
answer: 0,
points: 10
}, {
q: "How many times did Morgoth cry out in pain during his battle with Fingolfin?",
options: ["Seven times", "Three times", "Five times", "Nine times"],
answer: 0,
points: 10
}, {
q: "Who is the cousin Bilbo nearly fought a duel with over his inheritance?",
options: ["Otho Sackville-Baggins", "Drogo Baggins", "Paladin Took", "Fatty Bolger"],
answer: 0,
points: 10
}, {
q: "What ancient spirit animates the Barrow - wights?",
options: ["Evil spirits sent by the Witch-king", "Shades of Men from the First Age", "Fallen Maiar", "Spirits of slain Númenóreans"],
answer: 0,
points: 10
}, {
q: "What was the name of the hidden city where Tuor was raised in Gondolin?",
options: ["Vinyamar", "Osgiliath", "Nargothrond", "Himring"],
answer: 0,
points: 10
}, {
q: "What was the original name of the Balrog that resided in Khazad-dûm?",
options: ["Durin’s Bane", "Gothmog", "Valaraukar", "Glaurung"],
answer: 0,
points: 10
}, {
q: "Which Maia guided the Sun across the sky after the destruction of the Two Trees?",
options: ["Arien", "Eönwë", "Melian", "Ilmarë"],
answer: 0,
points: 10
}, {
q: "What Silmaril did Beren retrieve, and from whom?",
options: ["A Silmaril from Morgoth’s iron crown", "A Silmaril from Sauron’s tower", "A Silmaril from Thingol’s treasury", "A Silmaril from Maedhros’ hand"],
answer: 0,
points: 10
}, {
q: "What is the name of the valley outside the East-gate of Khazad-dûm where a major battle occurred?",
options: ["Azanulbizar", "Dimrill Dale", "Rhovanion", "Dor-Cúarthol"],
answer: 0,
points: 10
}, {
q: "What was the hidden language created by Rúmil of Tirion?",
options: ["Sarati", "Tengwar", "Quenya", "Sindarin"],
answer: 0,
points: 10
}, {
q: "Which creature did Lúthien enchant to help Beren enter Angband?",
options: ["Carcharoth", "Glaurung", "Ancalagon", "Huan"],
answer: 0,
points: 10
}, {
q: "What is Beorn’s people called, who later defend the forest after the War of the Ring?",
options: ["Beornings", "Woodsfolk", "Wildermen", "Bear-clans"],
answer: 0,
points: 10
}, {
q: "What was the name of the troll that Bilbo tried to pickpocket?",
options: ["William", "Bert", "Tom", "Uglúk"],
answer: 0,
points: 10
}, {
q: "What was the true name of the hill where Finrod built Nargothrond?",
options: ["Taur-en-Faroth", "Amon Ethir", "Amon Rûdh", "Amon Ereb"],
answer: 0,
points: 10
}, {
q: "What mountain chain marked the northern boundary of Beleriand?",
options: ["Ered Wethrin", "Ered Luin", "Ered Engrin", "Ered Gorgoroth"],
answer: 0,
points: 10
}, {
q: "What gift did Finrod Felagund receive from the Dwarves of Belegost?",
options: ["The Nauglamír necklace", "The Axe of Hador", "The Helm of Dragonfire", "The Ring of Barahir"],
answer: 0,
points: 10
}, {
q: "What fortress did Melkor build in the far north of Middle-earth?",
options: ["Angband", "Utumno", "Barad-dûr", "Thangorodrim"],
answer: 0,
points: 10
}, {
q: "What was the name of the river that flowed beside Menegroth, the Thousand Caves?",
options: ["Esgalduin ", "Sirion", "Aros", "Narog"],
answer: 0,
points: 10
}, {
q: "What was the name of the sword that Beleg used, later taken by Túrin?",
options: ["Anglachel", "Gurthang", "Ringil", "Aranrúth"],
answer: 0,
points: 10
}, {
q: "What is the name of the mountain where the One Ring was forged?",
options: ["Orodruin", "Caradhras", "Erebor", "Thangorodrim"],
answer: 0,
points: 10
}];
// Helper to pick n random questions from an array
function pickRandomQuestions(arr, n) {
var copy = arr.slice();
shuffleArray(copy);
var out = [];
for (var i = 0; i < n && i < copy.length; i++) {
out.push(copy[i]);
}
return out;
}
// Select 4 easy, 3 medium, 3 hard for a 10-question game
var selectedEasy = pickRandomQuestions(easyQuestions, 4);
var selectedMedium = pickRandomQuestions(mediumQuestions, 3);
var selectedHard = pickRandomQuestions(hardQuestions, 3);
// Combine for 10-question game: 4 easy, 3 medium, 3 hard
var allQuestions = selectedEasy.concat(selectedMedium, selectedHard);
// --- State Variables ---
var currentQuestion = 0;
var score = 0;
var timeLeft = 60.0; // seconds
var timerInterval = null;
var quizStarted = false;
var optionButtons = [];
var timerBar = null;
var questionText = null;
var scoreText = null;
var startButton = null;
var summaryText = null;
var bonusText = null;
var canAnswer = false;
// --- Utility Functions ---
// Shuffle array in-place (Fisher-Yates)
function shuffleArray(arr) {
for (var i = arr.length - 1; i > 0; i--) {
var j = Math.floor(Math.random() * (i + 1));
var tmp = arr[i];
arr[i] = arr[j];
arr[j] = tmp;
}
}
// Randomize options for a question, return {options, answerIdx}
function randomizeOptions(q) {
var opts = [];
for (var i = 0; i < 4; i++) {
opts.push({
text: q.options[i],
origIdx: i
});
}
shuffleArray(opts);
var answerIdx = -1;
for (var i = 0; i < 4; i++) {
if (opts[i].origIdx === q.answer) {
answerIdx = i;
break;
}
}
return {
options: [opts[0].text, opts[1].text, opts[2].text, opts[3].text],
answerIdx: answerIdx
};
}
// --- UI Setup ---
// Center positions
var centerX = 2048 / 2;
var centerY = 2732 / 2;
// Question text
questionText = new Text2('', {
size: 100,
fill: "#fff"
});
questionText.anchor.set(0.5, 0.5);
questionText.x = centerX;
questionText.y = 350 + questionText.height / 2;
// Score background asset (bottom center, behind score text)
var scoreBgAsset = LK.getAsset('score', {
anchorX: 0.5,
anchorY: 1.0,
x: centerX,
y: 2732 - 40
});
game.addChild(scoreBgAsset);
// Score text (bottom center, GUI, dramatic font)
scoreText = new Text2(isTurkishSelected ? 'Skor: 0' : 'Score: 0', {
size: 140,
fill: "#fff",
font: "'Impact','GillSans-Bold','Arial Black','Papyrus','Georgia','Times New Roman',serif"
});
scoreText.anchor.set(0.5, 1.0);
// Move Score: text 188px up and 9px left from its previous position
scoreText.x = centerX - 9;
scoreText.y = 2732 - 40 - 10 - 188;
game.addChild(scoreText);
// Timer bar (below score)
timerBar = new TimerBar();
timerBar.x = centerX;
timerBar.y = 200;
timerBar.setProgress(1);
game.addChild(timerBar);
// Timer digits (top right, GUI, using harmonious style)
var timerDigits = new Text2('60', {
size: 110,
fill: 0xE2C275,
// goldish, harmonious with LOTR
font: "'Papyrus','Georgia','Times New Roman',serif"
});
timerDigits.anchor.set(1, 0); // right-top
timerDigits.x = 2048 - 60; // 60px from right edge, avoid top left menu
timerDigits.y = 0;
LK.gui.top.addChild(timerDigits);
// Option buttons (4)
var optionYStart = 900;
var optionYGap = 260 + 32; // 32px extra gap between options
for (var i = 0; i < 4; i++) {
var btn = new OptionButton();
btn.x = centerX;
btn.y = optionYStart + i * optionYGap;
btn.index = i;
btn.setEnabled(false);
// Event: tap/click
btn.down = function (idx) {
return function (x, y, obj) {
if (!canAnswer) {
return;
}
handleOptionSelected(idx);
};
}(i);
optionButtons.push(btn);
game.addChild(btn);
}
// Starting screen background (centered, behind start button)
var startingScreenBg = LK.getAsset('startingscreen', {
anchorX: 0.5,
anchorY: 0.5,
x: centerX,
y: centerY
});
game.addChild(startingScreenBg);
// tolkienText asset (centered, moved 1600px down)
var tolkienTextAsset = LK.getAsset('tolkienText', {
anchorX: 0.5,
anchorY: 0.5,
x: centerX,
y: centerY - 350 - 100 - 60 + 1600 // moved 1600px down
});
game.addChild(tolkienTextAsset);
// Game banner asset (centered, above start button)
var gameBannerAsset = LK.getAsset('gameBanner', {
anchorX: 0.5,
anchorY: 0.5,
x: centerX,
y: centerY - 350 - 100 - 280 // moved 80px further up
});
game.addChild(gameBannerAsset);
// Start button (centered, moved up 214px from previous position)
startButton = new StartButton();
startButton.x = centerX;
startButton.y = centerY + 440 + 200 - 308; // moved 94px further up (214+94=308)
startButton.scaleX = 1;
startButton.scaleY = 1;
// --- Language Selection Page ---
var languagePage = new Container();
languagePage.visible = false;
languagePage.x = 0;
languagePage.y = 0;
game.addChild(languagePage);
// Add startingScreen background to languagePage (centered)
var languageBg = LK.getAsset('startingscreen', {
anchorX: 0.5,
anchorY: 0.5,
x: centerX,
y: centerY
});
languagePage.addChild(languageBg);
// Add gameBanner to languagePage (centered, above buttons, same y as on start)
var languageBanner = LK.getAsset('gameBanner', {
anchorX: 0.5,
anchorY: 0.5,
x: centerX,
y: centerY - 350 - 100 - 280 // same as gameBannerAsset
});
languagePage.addChild(languageBanner);
// Turkish and English button assets
var turkishBtn = LK.getAsset('optionBtn', {
anchorX: 0.5,
anchorY: 0.5,
x: centerX - 300,
y: centerY + 150,
width: 800,
height: 320
});
var turkishText = new Text2('Türkçe', {
size: 110,
fill: "#fff"
});
turkishText.anchor.set(0.5, 0.5);
turkishText.x = turkishBtn.x;
turkishText.y = turkishBtn.y;
languagePage.addChild(turkishBtn);
languagePage.addChild(turkishText);
var englishBtn = LK.getAsset('optionBtn', {
anchorX: 0.5,
anchorY: 0.5,
x: centerX + 300,
y: centerY + 150,
width: 800,
height: 320
});
var englishText = new Text2('English', {
size: 110,
fill: "#fff"
});
englishText.anchor.set(0.5, 0.5);
englishText.x = englishBtn.x;
englishText.y = englishBtn.y;
languagePage.addChild(englishBtn);
languagePage.addChild(englishText);
// Turkish questions (translated, same structure as easyQuestions etc.)
var easyQuestionsTR = [{
q: "Bilbo'nun evinin adı nedir?",
options: ["Çıkın Çıkmazı", "Rivendell", "Minas Tirith", "Helm's Deep"],
answer: 0,
points: 3
}, {
q: "Elrond’un kızının adı nedir?",
options: ["Arwen", "Galadriel", "Eowyn", "Lúthien"],
answer: 0,
points: 3
}, {
q: "Bilbo, goblin tünellerinde hangi yaratıkla karşılaşır?",
options: ["Gollum", "Trol", "Örümcek", "Ork"],
answer: 0,
points: 3
}, {
q: "Bilbo, Gollum’un mağarasında ne bulur?",
options: ["Tek Yüzük", "Bir kılıç", "Bir harita", "Bir anahtar"],
answer: 0,
points: 3
}, {
q: "Shire'dan geçen nehrin adı nedir?",
options: ["Brandywine", "Anduin", "Isen", "Baranduin"],
answer: 0,
points: 3
}, {
q: "Théoden’in yeğeni kimdir?",
options: ["Éowyn", "Éomer", "Lobelia", "Arwen"],
answer: 0,
points: 3
}, {
q: "Gandalf’ın kılıcının adı nedir?",
options: ["Glamdring", "Andúril", "Diken", "Narsil"],
answer: 0,
points: 3
}, {
q: "Amon Hen’de Merry ve Pippin’i kim kaçırır?",
options: ["Uruk-hai", "Moria Orkları", "Goblinler", "Nazgûl"],
answer: 0,
points: 3
}, {
q: "Kılıç Sting’in ilk sahibi kimdir?",
options: ["Bilbo", "Frodo", "Gandalf", "Aragorn"],
answer: 0,
points: 3
}, {
q: "Hobbitler insanlara ne ad verir?",
options: ["Büyük Irk", "Uzun Adamlar", "Dev Irk", "Dışlanmışlar"],
answer: 0,
points: 3
}, {
q: "Pippin ve Merry’yi Isengard’a taşıyan Ent kimdir?",
options: ["Ağaçsakal", "Çabukdil", "Yaprakkıran", "Kabuğaç"],
answer: 0,
points: 3
}, {
q: "Mordor’daki volkanın adı nedir?",
options: ["Hüküm Dağı", "Gölge Dağı", "Ateş Dağı", "Sauron Dağı"],
answer: 0,
points: 3
}, {
q: "Rohan'ın kralı kimdir?",
options: ["Théoden", "Denethor", "Boromir", "Aragorn"],
answer: 0,
points: 3
}, {
q: "Tek Yüzük’ü kim yok eder?",
options: ["Gollum", "Frodo", "Sam", "Aragorn"],
answer: 0,
points: 3
}, {
q: "Bilbo’dan önce maceralara atılmasıyla tanınan Hobbit kimdir?",
options: ["Bullroarer Took", "Frodo Baggins", "Samwise Gamgee", "Meriadoc Brandybuck"],
answer: 0,
points: 3
}, {
q: "Sisli Dağlar'ın altında yaşayan ve Bilbo ile bilmece yarışına giren yaratık kimdir?",
options: ["Gollum", "Shelob", "Suyun Altındaki Gözcü", "Smaug"],
answer: 0,
points: 3
}, {
q: "Rivendell’in efendisi kimdir?",
options: ["Elrond", "Glorfindel", "Thranduil", "Celeborn"],
answer: 0,
points: 3
}, {
q: "Ölü Bataklıklar’dan geçen yolun adı nedir?",
options: ["Düz Merdiven", "Yeşil Yol", "Dimholt Yolu", "Kuzey-Güney Yolu"],
answer: 0,
points: 3
}, {
q: "Hangi Hobbit ailesi Buckland bölgesinde yaşardı?",
options: ["Brandybuck", "Took", "Baggins", "Gamgee"],
answer: 0,
points: 3
}, {
q: "Saruman’ın ikamet ettiği kule hangisidir?",
options: ["Orthanc", "Minas Tirith", "Barad-dûr", "Cirith Ungol"],
answer: 0,
points: 3
}, {
q: "Rivendell’in Elf dilindeki adı nedir?",
options: ["Imladris", "Lothlórien", "Doriath", "Eregion"],
answer: 0,
points: 3
}, {
q: "Valinor'un İki Ağacı'nı kim yarattı?",
options: ["Yavanna", "Varda", "Nienna", "Melian"],
answer: 0,
points: 3
}, {
q: "Aragorn kral olmadan önce Gondor’daki son naip kimdir?",
options: ["Denethor II", "Faramir", "Boromir", "Turgon"],
answer: 0,
points: 3
}, {
q: "Tom Bombadil’in eşinin adı nedir?",
options: ["Altınyemiş", "Lobelia Sackville-Baggins", "Melian", "Gül Pamuk"],
answer: 0,
points: 3
}, {
q: "Samwise'ın eşi kimdir?",
options: ["Gül Pamuk", "Lobelia Sackville-Baggins", "Esmeralda Took", "Bayan Maggot"],
answer: 0,
points: 3
}, {
q: "Carrock yakınlarında Thorin’in grubuna yardım eden şekil değiştirici kimdir?",
options: ["Beorn", "Radagast", "Thranduil", "Gwaihir"],
answer: 0,
points: 3
}, {
q: "Cüceler tarafından terk edildikten sonra Khazad-dûm'un yeni adı ne olmuştur?",
options: ["Moria", "Erebor", "Gundabad", "Aglarond"],
answer: 0,
points: 3
}, {
q: "Khazad-dûm'u geri almaya çalışıp Balrog tarafından öldürülen kimdir?",
options: ["Balin", "Dáin Demirayak", "Thorin Meşekalkan", "Durin VI"],
answer: 0,
points: 3
}, {
q: "Karanlık Orman'da Cüceleri ve Bilbo'yu kimler yakaladı?",
options: ["Dev örümcekler", "Troller", "Goblinler", "Kurtlar"],
answer: 0,
points: 3
}, {
q: "Bilbo'nun annesinin adı nedir?",
options: ["Belladonna Took", "Lobelia Sackville-Baggins", "Primula Brandybuck", "Esmeralda Took"],
answer: 0,
points: 3
}, {
q: "Bilbo evde yokken evini almaya çalışan yaşlı hobbit kimdir?",
options: ["Lobelia Sackville-Baggins", "Ted Sandyman", "Otho Baggins", "Lotho Sackville-Baggins"],
answer: 0,
points: 3
}, {
q: "Sıçrayan Midilli Hanı'nın sahibi kimdir?",
options: ["Arpadam Kaymakpürüzü", "Odo Ayağıkibirli", "Daddy Twofoot", "Hugo Bracegirdle"],
answer: 0,
points: 3
}, {
q: "Thorin’e harita ve anahtarın dedesi Thrór’a ait olduğunu kim söyledi?",
options: ["Gandalf", "Balin", "Elrond", "Thrain"],
answer: 0,
points: 3
}, {
q: "Thorin’in troll hazinesinde bulduğu kılıcın adı nedir?",
options: ["Orcrist", "Glamdring", "Angrist", "Sting"],
answer: 0,
points: 3
}, {
q: "Galadriel, Frodo’ya Lothlórien’den ayrılırken ne hediye etti?",
options: ["Eärendil’in yıldızından bir ışık şişesi", "Bir güç yüzüğü", "Elf ipi", "Batıdiyar bıçağı"],
answer: 0,
points: 3
}, {
q: "Hangi orman Entler ve Ağaçsakal tarafından yönetilir?",
options: ["Fangorn", "Karanlık Orman", "Lothlórien", "Ithilien"],
answer: 0,
points: 3
}, {
q: "Narsil’i Andúril’e kim dövdü?",
options: ["Rivendell Elfleri", "Erebor Cüceleri", "Gondor İnsanları", "Galadriel"],
answer: 0,
points: 3
}, {
q: "Gollum aslında hangi tür canlıydı?",
options: ["Hobbit", "Elf", "Cüce", "Ork"],
answer: 0,
points: 3
}, {
q: "Frodo'nun kılıcının adı nedir?",
options: ["Sting", "Andúril", "Glamdring", "Orcrist"],
answer: 0,
points: 3
}, {
q: "Silmariller neyle yapılmıştır?",
options: ["İki Ağacın ışığı", "Udûn’un ateşi", "Mithril", "Varda’nın yıldız ışığı"],
answer: 0,
points: 3
}, {
q: "Tek Yüzük’ü kim dövdü?",
options: ["Sauron", "Saruman", "Elrond", "Gandalf"],
answer: 0,
points: 3
}, {
q: "Fëanor ile sürgüne giden Elf grubu hangisidir?",
options: ["Noldor", "Vanyar", "Teleri", "Sindar"],
answer: 0,
points: 3
}, {
q: "Mordor’un Kara Lordu olan Maia kimdir?",
options: ["Sauron", "Melkor", "Saruman", "Gothmog"],
answer: 0,
points: 3
}, {
q: "Ağaçsakal ve türü hangi ırktandır?",
options: ["Entler", "Huornlar", "Troller", "Maiar"],
answer: 0,
points: 3
}, {
q: "Moria yakınındaki suda Yüzük Kardeşliği’ni neredeyse tuzağa düşüren yaratığın adı nedir?",
options: ["Sudaki Gözcü", "Höyük Hayaleti", "Gollum", "Caradhras"],
answer: 0,
points: 3
}, {
q: "Ağaçsakal’a göre Ent-dişileri ne oldu?",
options: ["Doğuya göçtüler ve kayboldular", "Ağaca dönüştüler", "Huorn oldular", "Orklar tarafından yok edildiler"],
answer: 0,
points: 3
}, {
q: "Barrow- downs yakınındaki Eski Orman’ı kim yönetir?",
options: ["Tom Bombadil", "Höyük Hayaleti", "Çiftçi Maggot", "Cadı Kral"],
answer: 0,
points: 3
}, {
q: "Hobbitlerin yaşadığı ülkenin adı nedir?",
options: ["Shire", "Rohan", "Gondor", "Mordor"],
answer: 0,
points: 3
}, {
q: "Frodo'nun sadık bahçıvanı ve yol arkadaşı kimdir?",
options: ["Samwise Gamgee", "Peregrin Took", "Meriadoc Brandybuck", "Boromir"],
answer: 0,
points: 3
}, {
q: "Yüzük Kardeşliği’ne liderlik eden büyücünün adı nedir?",
options: ["Gandalf", "Saruman", "Radagast", "Alatar"],
answer: 0,
points: 3
}];
var mediumQuestionsTR = [{
q: "Aragorn'un kılıcının adı nedir?",
options: ["Andúril", "Sting", "Glamdring", "Orcrist"],
answer: 0,
points: 5
}, {
q: "Thranduil hangi Elf diyarının kralıdır?",
options: ["Karanlıkorman", "Lothlórien", "Rivendell", "Doriath"],
answer: 0,
points: 5
}, {
q: "Son İttifak Savaşı’nda Gil-galad’ın habercisi kimdi?",
options: ["Elrond", "Glorfindel", "Círdan", "Erestor"],
answer: 0,
points: 5
}, {
q: "Moria'nın üzerindeki dağın adı nedir?",
options: ["Caradhras", "Barazinbar", "Zirakzigil", "Celebdil"],
answer: 0,
points: 5
}, {
q: "Hobbit'te 'Necromancer' adıyla anılan kişi kimdir?",
options: ["Sauron", "Saruman", "Morgoth", "Cadı Kral"],
answer: 0,
points: 5
}, {
q: "Hobbit'te gruba liderlik eden Cüce kimdir?",
options: ["Thorin Meşekalkan", "Balin", "Fíli", "Dáin Demirayak"],
answer: 0,
points: 5
}, {
q: "Mordor ile Gondor arasında akan nehirin adı nedir?",
options: ["Anduin", "Isen", "Baranduin", "Gri Akarsu"],
answer: 0,
points: 5
}, {
q: "Üç Elf Yüzüğü’nü kim dövmüştür?",
options: ["Celebrimbor", "Fëanor", "Galadriel", "Mahtan"],
answer: 0,
points: 5
}, {
q: "Beren’in babasının adı nedir?",
options: ["Barahir", "Beleg", "Finrod", "Amlach"],
answer: 0,
points: 5
}, {
q: "Nargothrondlu Gwindor hangi ırktandır?",
options: ["Elf", "İnsan", "Cüce", "Maia"],
answer: 0,
points: 5
}, {
q: "Thorin Meşekalkan’ı hangi yaratık öldürmüştür?",
options: ["Azog’un oğlu Bolg", "Smaug", "Suyun Bekçisi", "Gothmog"],
answer: 0,
points: 5
}, {
q: "Elrond’un eşinin adı nedir?",
options: ["Celebrían", "Galadriel", "Lúthien", "Idril"],
answer: 0,
points: 5
}, {
q: "Ent Divanı’nda en çok konuşan Ent kimdir?",
options: ["Ağaçsakal", "Çabukkal", "Kayınkemik", "Kabuğukal"],
answer: 0,
points: 5
}, {
q: "Ölümlülüğü seçen Elrond’un kardeşinin adı nedir?",
options: ["Elros", "Eärendil", "Gil-galad", "Círdan"],
answer: 0,
points: 5
}, {
q: "The Hobbit'te Erebor’un anahtarı ve haritasını taşıyan cüce kimdir?",
options: ["Thorin Meşekalkan", "Balin", "Dwalin", "Gloin"],
answer: 0,
points: 5
}, {
q: "Durin’in Felaketi olarak bilinen kadim düşman aslında nedir?",
options: ["Bir Balrog", "Bir Nazgûl", "Bir Trol Kralı", "Bir Ejderha"],
answer: 0,
points: 5
}, {
q: "Cirith Ungol’da yaşayan dev örümceğin adı nedir?",
options: ["Shelob", "Ungoliant", "Shagrat", "Kankra"],
answer: 0,
points: 5
}, {
q: "Númenor’un ilk kralı kimdir?",
options: ["Elros Tar-Minyatur", "Tar-Aldarion", "Ar-Pharazôn", "Tar-Ancalimë"],
answer: 0,
points: 5
}, {
q: "Andúril olarak yeniden dövülen kılıcın adı nedir?",
options: ["Narsil", "Glamdring", "Orcrist", "Ringil"],
answer: 0,
points: 5
}, {
q: "Palantírler nedir?",
options: ["Görüntü taşları", "Elf kitapları", "Cüce yazıtları", "Gondor parşömenleri"],
answer: 0,
points: 5
}, {
q: "Isildur’un babası kimdir?",
options: ["Elendil", "Ar-Pharazôn", "Tar-Palantir", "Amandil"],
answer: 0,
points: 5
}, {
q: "Lothlórien ordularına Dol Guldur'a karşı kim liderlik etmiştir?",
options: ["Celeborn", "Galadriel", "Thranduil", "Haldir"],
answer: 0,
points: 5
}, {
q: "Angmar Cadı Kralı’nı kim öldürmüştür?",
options: ["Éowyn", "Merry", "Gandalf", "Aragorn"],
answer: 0,
points: 5
}, {
q: "Fingolfin’in Morgoth ile düellosunda kullandığı kılıcın adı nedir?",
options: ["Ringil", "Glamdring", "Anglachel", "Grond"],
answer: 0,
points: 5
}, {
q: "Aglarond mağaralarında ilk olarak hangi ırk yaşamıştır?",
options: ["Cüceler", "Elfler", "Rohanlı insanlar", "Orklar"],
answer: 0,
points: 5
}, {
q: "Legolas hangi ormanda yaşar?",
options: ["Karanlık Orman", "Fangorn", "Lothlórien", "Shire"],
answer: 0,
points: 5
}, {
q: "Ent-dişilerinin en son bahçe yetiştirdiği toprakların adı nedir?",
options: ["Kahverengi Topraklar", "Fangorn Ormanı", "Rohan", "Ithilien"],
answer: 0,
points: 5
}, {
q: "Feanor ve oğulları hangi yemini etti?",
options: ["Silmarilleri ne pahasına olursa olsun geri almak", "Valar’a hizmet etmek", "Morgoth’u yok etmek", "Noldor’u birleştirmek"],
answer: 0,
points: 5
}, {
q: "Feanor’un Valar’a isyan etmesine ne sebep oldu?",
options: ["Silmarillerin çalınması ve babasının öldürülmesi", "Fingolfin’e olan nefreti", "Orta Dünya’yı yönetme arzusu", "Melian’ın yalanları"],
answer: 0,
points: 5
}, {
q: "Aşağıdakilerden hangisi Ölü Bataklıklar’da yaşamamıştır?",
options: ["Sudaki Gözcü", "Ceset mumları", "Hayaletler", "Sisler"],
answer: 0,
points: 5
}, {
q: "Aşağıdaki dillerden hangisi Tolkien tarafından icat edilmemiştir?",
options: ["Klingon", "Quenya", "Sindarin", "Adûnaic"],
answer: 0,
points: 5
}, {
q: "Sam’in Bree’den yolculuğa çıkarken aldığı midillinin adı nedir?",
options: ["Bill", "Tom", "Fatty", "Brownie"],
answer: 0,
points: 5
}, {
q: "Merry, Cadı Kral'ı yaralarken hangi sıradışı silahı kullanmıştır?",
options: ["Barrow-downs’tan bir hançer", "Sting", "Bir Gondor mızrağı", "Bir Númenórean kılıcı"],
answer: 0,
points: 5
}, {
q: "Beorn’un evinin yakınındaki nehrin adı nedir?",
options: ["Anduin", "Withywindle", "Bruinen", "Entwash"],
answer: 0,
points: 5
}, {
q: "Moria’nın batı girişindeki Elf yazılı gizli kapının adı nedir?",
options: ["Durin’in Kapıları", "Azanulbizar Kapısı", "Thrain Eşiği", "Demir Salon Kapısı"],
answer: 0,
points: 5
}, {
q: "Thorin’in grubunu Rivendell’de karşılayan elf kimdir?",
options: ["Lindir", "Glorfindel", "Galdor", "Erestor"],
answer: 0,
points: 5
}, {
q: "Aşağıdakilerden hangisi Üç Elf Yüzüğü’nden biri değildir?",
options: ["Tenya", "Nenya", "Vilya", "Narya"],
answer: 0,
points: 5
}, {
q: "Doriath’ın kralı kimdir?",
options: ["Thingol", "Fingolfin", "Finarfin", "Finrod"],
answer: 0,
points: 5
}, {
q: "Thorin’in grubunu Warglardan kurtaran Kartalların Efendisi kimdir?",
options: ["Gwaihir", "Thorondor", "Landroval", "Carcaroth"],
answer: 0,
points: 5
}, {
q: "Fëanor’u kim doğurdu?",
options: ["Míriel", "Indis", "Nerdanel", "Galadriel"],
answer: 0,
points: 5
}, {
q: "Elfler uyanmadan önce yıldızları yaratan Valar kimdir?",
options: ["Varda", "Yavanna", "Nessa", "Nienna"],
answer: 0,
points: 5
}, {
q: "Beren’e Silmaril arayışında kim yardım etti?",
options: ["Lúthien", "Idril", "Finrod", "Elwing"],
answer: 0,
points: 5
}, {
q: "Ağaçların ışığını yiyen büyük örümceğin adı nedir?",
options: ["Ungoliant", "Shelob", "Gorgol", "Thuringwethil"],
answer: 0,
points: 5
}, {
q: "Shire ile Bree arasında kalan ormanın adı nedir?",
options: ["Eski Orman", "Fangorn", "Karanlık Orman", "Greenwood"],
answer: 0,
points: 5
}, {
q: "Gandalf’ın gerçek adı nedir?",
options: ["Olórin", "Curunír", "Aiwendil", "Mithrandir"],
answer: 0,
points: 5
}, {
q: "Cüceleri hangi Vala yarattı?",
options: ["Aulë", "Manwë", "Ulmo", "Yavanna"],
answer: 0,
points: 5
}, {
q: "Bree’deki hanın adı nedir?",
options: ["Sıçrayan Midilli", "Yeşil Ejderha", "Altın Levrek", "Sarmaşık Çalısı"],
answer: 0,
points: 5
}, {
q: "Valar’ın yaşadığı adanın adı nedir?",
options: ["Aman", "Numenor", "Tol Eressëa", "Balar"],
answer: 0,
points: 5
}, {
q: "Galadriel’in yönettiği Elf diyarının adı nedir?",
options: ["Lothlórien", "Rivendell", "Karanlık Orman", "Valinor"],
answer: 0,
points: 5
}, {
q: "Elrond’un babası kimdir?",
options: ["Eärendil", "Fingolfin", "Fëanor", "Finrod"],
answer: 0,
points: 5
}, {
q: "Beyaz Şehir olarak bilinen şehir hangisidir?",
options: ["Minas Tirith", "Edoras", "Dale", "Osgiliath"],
answer: 0,
points: 5
}, {
q: "Parıldayan Mağaralar’ın Efendisi kimdir?",
options: ["Gimli", "Legolas", "Thranduil", "Dáin Demirayak"],
answer: 0,
points: 5
}, {
q: "Ainulindalë’ye göre Orta Dünya’da ilk uyanan varlık kimdir?",
options: ["Elfler", "Cüceler", "Entler", "İnsanlar"],
answer: 0,
points: 5
}, {
q: "Yüzük Kardeşliği’nin Sisli Dağlar’dan geçtiği geçidin adı nedir?",
options: ["Caradhras", "Cirith Ungol", "Redhorn Pass", "Rohan Geçidi"],
answer: 0,
points: 5
}];
var hardQuestionsTR = [{
q: "Losgar'da Noldor'a Mandos'un Kaderini kim bildirdi?",
options: ["Mandos'un kendisi", "Manwë", "Oromë", "Eönwë"],
answer: 0,
points: 10
}, {
q: "Melkor’un düşüşünden önce, gücü ona en yakın olan Vala kimdi?",
options: ["Manwë", "Tulkas", "Ulmo", "Aulë"],
answer: 0,
points: 10
}, {
q: "Sauron’un Maia olarak özgün ismi neydi?",
options: ["Mairon", "Annatar", "Gorthaur", "Curumo"],
answer: 0,
points: 10
}, {
q: "Gondolin’li hangi Elf, Manwë ile birlikte Büyük Kartalları yaratmıştır?",
options: ["Thorondor", "Ecthelion", "Glorfindel", "Maeglin"],
answer: 0,
points: 10
}, {
q: "Númenor’un çöküşünden sonra Kara Númenorlular hangi dili korumuştur?",
options: ["Adûnaic", "Quenya", "Sindarin", "Ortak Lisan"],
answer: 0,
points: 10
}, {
q: "Melkor’u zincire vurmak için kullanılan zincirin adı nedir?",
options: ["Angainor", "Angband", "Gurthang", "Grond"],
answer: 0,
points: 10
}, {
q: "Mordor’un batı sınırını hangi nehir oluşturur?",
options: ["Anduin", "Poros", "Harnen", "Narglorn"],
answer: 0,
points: 10
}, {
q: "Lambaların yıkılmasından sonra kalıntılarından oluşan dağın adı nedir?",
options: ["Almaren Adası", "Rerir Dağı", "Illuin Dağı", "Thangorodrim Dağı"],
answer: 0,
points: 10
}, {
q: "Maeglin’in annesi kimdir?",
options: ["Aredhel", "Idril", "Galadriel", "Nimloth"],
answer: 0,
points: 10
}, {
q: "Daha sonra Tol Eressëa olarak bilinen adanın gerçek adı nedir?",
options: ["Elenna", "Avallónë", "Alqualondë", "Tol Galen"],
answer: 0,
points: 10
}, {
q: "Valinor’un Tazısı Huan hangi yaratıkla ölümcül bir dövüş yapmıştır?",
options: ["Carcharoth", "Glaurung", "Shelob", "Ancalagon"],
answer: 0,
points: 10
}, {
q: "Túrin, Glaurung'u öldürmek için hangi kılıcı kullanmıştır?",
options: ["Gurthang", "Anglachel", "Narsil", "Ringil"],
answer: 0,
points: 10
}, {
q: "Lúthien’in annesi kimdir?",
options: ["Melian", "Galadriel", "Míriel", "Aredhel"],
answer: 0,
points: 10
}, {
q: "Güneş'i gökyüzünde süren Maia kimdir?",
options: ["Arien", "Tilion", "Eönwë", "Ilmarë"],
answer: 0,
points: 10
}, {
q: "Nenya yüzüğünün ilk taşıyıcısı kimdir?",
options: ["Galadriel", "Celebrimbor", "Círdan", "Elrond"],
answer: 0,
points: 10
}, {
q: "Elrond’un ikiz oğullarının adları nedir?",
options: ["Elladan ve Elrohir", "Elendil ve Isildur", "Faramir ve Boromir", "Finrod ve Fingon"],
answer: 0,
points: 10
}, {
q: "Fëanor’u kim öldürmüştür?",
options: ["Morgoth’un Balrogları", "Sauron", "Ungoliant", "Gothmog"],
answer: 0,
points: 10
}, {
q: "Tek Yüzük üzerindeki yazı hangi dilde yazılmıştır?",
options: ["Kara Lisan", "Quenya", "Sindarin", "Adûnaic"],
answer: 0,
points: 10
}, {
q: "Dorthonion ile Himring arasındaki toprakların adı nedir?",
options: ["Lothlann", "Dor-lómin", "Hithlum", "Nevrast"],
answer: 0,
points: 10
}, {
q: "Tolkien’in erken taslaklarında Tek Yüzük Taşıyıcılarından biri olarak geçen kadın Nazgûl kimdir?",
options: ["Úlairë Lelya", "Tar-Míriel", "Thuringwethil", "Varda kılığına girmiş"],
answer: 0,
points: 10
}, {
q: "Beren, Morgoth’un tacından neyi kesip almıştır?",
options: ["Bir Silmaril", "Tek Yüzük", "Morgul Bıçağı", "Arkenstone"],
answer: 0,
points: 10
}, {
q: "Eärendil'in öldürdüğü büyük ejderhanın adı nedir?",
options: ["Ancalagon the Black", "Glaurung", "Smaug", "Scatha"],
answer: 0,
points: 10
}, {
q: "Gondolin’in düşüşünden sağ çıkan ve Üçüncü Çağ’da kral olan Elf-lord kimdir?",
options: ["Glorfindel", "Ecthelion", "Turgon", "Maeglin"],
answer: 0,
points: 10
}, {
q: "Gizli şehir Nargothrond’u kim inşa etti?",
options: ["Finrod Felagund", "Turgon", "Círdan", "Fingolfin"],
answer: 0,
points: 10
}, {
q: "Nogrodlu Telchar tarafından bir göktaşından dövülen kılıcın adı nedir?",
options: ["Angrist", "Glamdring", "Andúril", "Herugrim"],
answer: 0,
points: 10
}, {
q: "Galadriel’in babası kimdir?",
options: ["Finarfin", "Finwë", "Fëanor", "Fingolfin"],
answer: 0,
points: 10
}, {
q: "Fingolfin, Morgoth’a hangi kalıcı yarayı vermiştir?",
options: ["Ayağının yaralanmasından topallık", "Bir gözde körlük", "Göğsünde bir yara", "Tacını kaybetmek"],
answer: 0,
points: 10
}, {
q: "Fingolfin ile savaşında Morgoth kaç kez acı içinde haykırmıştır?",
options: ["Yedi kez", "Üç kez", "Beş kez", "Dokuz kez"],
answer: 0,
points: 10
}, {
q: "Bilbo’nun neredeyse mirası için düello yaptığı kuzeni kimdir?",
options: ["Otho Sackville-Baggins", "Drogo Baggins", "Paladin Took", "Fatty Bolger"],
answer: 0,
points: 10
}, {
q: "Barrow-wight’ları canlandıran eski ruh nedir?",
options: ["Cadı Kral tarafından gönderilen kötü ruhlar", "Birinci Çağ’dan İnsan gölgeleri", "Düşmüş Maiar", "Öldürülmüş Númenóreli ruhları"],
answer: 0,
points: 10
}, {
q: "Tuor’un Gondolin’de büyüdüğü gizli şehrin adı nedir?",
options: ["Vinyamar", "Osgiliath", "Nargothrond", "Himring"],
answer: 0,
points: 10
}, {
q: "Khazad-dûm’da yaşayan Balrog’un orijinal adı nedir?",
options: ["Durin’in Belası", "Gothmog", "Valaraukar", "Glaurung"],
answer: 0,
points: 10
}, {
q: "İki Ağacın yok edilmesinden sonra Güneş’i gökyüzünde süren Maia kimdir?",
options: ["Arien", "Eönwë", "Melian", "Ilmarë"],
answer: 0,
points: 10
}, {
q: "Beren hangi Silmaril’i ve kimden aldı?",
options: ["Morgoth’un demir tacından bir Silmaril", "Sauron’un kulesinden bir Silmaril", "Thingol’un hazinesinden bir Silmaril", "Maedhros’un elinden bir Silmaril"],
answer: 0,
points: 10
}, {
q: "Khazad-dûm’un doğu kapısının dışındaki vadinin adı nedir?",
options: ["Azanulbizar", "Dimrill Dale", "Rhovanion", "Dor-Cúarthol"],
answer: 0,
points: 10
}, {
q: "Tirion’lu Rúmil’in yarattığı gizli dilin adı nedir?",
options: ["Sarati", "Tengwar", "Quenya", "Sindarin"],
answer: 0,
points: 10
}, {
q: "Lúthien, Beren’in Angband’a girmesine yardım etmek için hangi yaratığı büyüledi?",
options: ["Carcharoth", "Glaurung", "Ancalagon", "Huan"],
answer: 0,
points: 10
}, {
q: "Beorn’un halkı, Yüzük Savaşı’ndan sonra ormanı savunan topluluğun adı nedir?",
options: ["Beorningler", "Orman Halkı", "Vahşi Adamlar", "Ayı Klanları"],
answer: 0,
points: 10
}, {
q: "Bilbo’nun hırsızlık yapmaya çalıştığı trolün adı nedir?",
options: ["William", "Bert", "Tom", "Uglúk"],
answer: 0,
points: 10
}, {
q: "Finrod’un Nargothrond’u inşa ettiği tepenin gerçek adı nedir?",
options: ["Taur-en-Faroth", "Amon Ethir", "Amon Rûdh", "Amon Ereb"],
answer: 0,
points: 10
}, {
q: "Beleriand’ın kuzey sınırını oluşturan dağ zincirinin adı nedir?",
options: ["Ered Wethrin", "Ered Luin", "Ered Engrin", "Ered Gorgoroth"],
answer: 0,
points: 10
}, {
q: "Finrod Felagund, Belegost Cücelerinden hangi hediyeyi almıştır?",
options: ["Nauglamír kolyesi", "Hador’un Baltası", "Ejderha Ateşi Miğferi", "Barahir’in Yüzüğü"],
answer: 0,
points: 10
}, {
q: "Melkor, Orta Dünya’nın kuzeyinde hangi kaleyi inşa etti?",
options: ["Angband", "Utumno", "Barad-dûr", "Thangorodrim"],
answer: 0,
points: 10
}, {
q: "Menegroth, Bin Mağara’nın yanından akan nehrin adı nedir?",
options: ["Esgalduin", "Sirion", "Aros", "Narog"],
answer: 0,
points: 10
}, {
q: "Beleg’in kullandığı, daha sonra Túrin’in aldığı kılıcın adı nedir?",
options: ["Anglachel", "Gurthang", "Ringil", "Aranrúth"],
answer: 0,
points: 10
}, {
q: "Tek Yüzük’ün dövüldüğü dağın adı nedir?",
options: ["Orodruin", "Caradhras", "Erebor", "Thangorodrim"],
answer: 0,
points: 10
}];
// Track if Turkish is selected
var isTurkishSelected = false;
// Language selection logic
turkishBtn.interactive = true;
turkishBtn.down = function (x, y, obj) {
isTurkishSelected = true;
languagePage.visible = false;
// Pick Turkish questions
selectedEasy = pickRandomQuestions(easyQuestionsTR, 4);
selectedMedium = pickRandomQuestions(mediumQuestionsTR, 3);
selectedHard = pickRandomQuestions(hardQuestionsTR, 3);
allQuestions = selectedEasy.concat(selectedMedium, selectedHard);
startQuiz();
};
englishBtn.interactive = true;
englishBtn.down = function (x, y, obj) {
isTurkishSelected = false;
languagePage.visible = false;
// Pick English questions (default)
selectedEasy = pickRandomQuestions(easyQuestions, 4);
selectedMedium = pickRandomQuestions(mediumQuestions, 3);
selectedHard = pickRandomQuestions(hardQuestions, 3);
allQuestions = selectedEasy.concat(selectedMedium, selectedHard);
startQuiz();
};
startButton.down = function (x, y, obj) {
if (!quizStarted) {
LK.getSound('Start').play();
// Show language selection page
startingScreenBg.visible = false;
gameBannerAsset.visible = false;
tolkienTextAsset.visible = false;
startButton.visible = false;
languagePage.visible = true;
}
};
game.addChild(startButton);
// Animate startBtn: pulse scale up and down forever
function animateStartBtn() {
tween(startButton, {
scaleX: 1.12,
scaleY: 1.12
}, {
duration: 600,
easing: tween.easeInOut,
onFinish: function onFinish() {
tween(startButton, {
scaleX: 1,
scaleY: 1
}, {
duration: 600,
easing: tween.easeInOut,
onFinish: animateStartBtn
});
}
});
}
animateStartBtn();
// Summary text (hidden at start)
summaryText = new Text2('', {
size: 110,
fill: "#fff"
});
summaryText.anchor.set(0.5, 0.5);
summaryText.x = centerX;
summaryText.y = centerY - 200;
summaryText.visible = false;
game.addChild(summaryText);
// Bonus text (hidden at start)
bonusText = new Text2('', {
size: 80,
fill: 0x83DE44
});
bonusText.anchor.set(0.5, 0.5);
bonusText.x = centerX;
bonusText.y = centerY + 100;
bonusText.visible = false;
game.addChild(bonusText);
// --- Feedback Assets ---
var trueAsset = LK.getAsset('true', {
anchorX: 0.5,
anchorY: 1.0,
x: centerX - 500,
y: 2732 - 40 + 60
});
var wrongAsset = LK.getAsset('wrong', {
anchorX: 0.5,
anchorY: 1.0,
x: centerX - 500,
y: 2732 - 40 + 60
});
var trueAsset2 = LK.getAsset('true2', {
anchorX: 0.5,
anchorY: 1.0,
x: centerX - 500,
y: 2732 - 40 + 60
});
var wrongAsset2 = LK.getAsset('wrong2', {
anchorX: 0.5,
anchorY: 1.0,
x: centerX - 500,
y: 2732 - 40 + 60
});
trueAsset.visible = false;
wrongAsset.visible = false;
trueAsset2.visible = false;
wrongAsset2.visible = false;
// --- Feedback Text Assets ---
var truetextAsset = LK.getAsset('truetext', {
anchorX: 0.5,
anchorY: 1.0,
x: centerX + 490,
y: 2732 - 300
});
var wrongtextAsset = LK.getAsset('wrongtext', {
anchorX: 0.5,
anchorY: 1.0,
x: centerX + 490,
y: 2732 - 300
});
truetextAsset.visible = false;
wrongtextAsset.visible = false;
game.addChild(trueAsset);
game.addChild(wrongAsset);
game.addChild(trueAsset2);
game.addChild(wrongAsset2);
game.addChild(truetextAsset);
game.addChild(wrongtextAsset);
// --- Game Logic ---
function startQuiz() {
quizStarted = true;
score = 0;
timeLeft = 60.0;
currentQuestion = 0;
game.playerCorrectAnswers = [];
scoreText.setText(isTurkishSelected ? 'Skor: 0' : 'Score: 0');
timerBar.setProgress(1);
timerDigits.setText("60");
summaryText.visible = false;
bonusText.visible = false;
startButton.visible = false;
startingScreenBg.visible = false;
gameBannerAsset.visible = false;
tolkienTextAsset.visible = false;
for (var i = 0; i < 4; i++) {
optionButtons[i].setEnabled(false);
optionButtons[i].visible = true;
}
showQuestion(currentQuestion);
canAnswer = true;
// Start timer
if (timerInterval) {
LK.clearInterval(timerInterval);
}
timerInterval = LK.setInterval(function () {
if (!quizStarted) {
return;
}
timeLeft -= 0.1;
if (timeLeft < 0) {
timeLeft = 0;
}
timerBar.setProgress(timeLeft / 60.0);
// Update timerDigits to show remaining time as integer seconds, always 2 digits
var shownTime = Math.ceil(timeLeft);
if (shownTime < 0) {
shownTime = 0;
}
if (shownTime > 99) {
shownTime = 99;
}
timerDigits.setText((shownTime < 10 ? "0" : "") + shownTime);
if (timeLeft <= 0) {
endQuiz();
}
}, 100);
}
function showQuestion(idx) {
if (idx >= allQuestions.length) {
endQuiz();
return;
}
var q = allQuestions[idx];
var randomized = randomizeOptions(q);
// Split question into two lines if more than 7 words (English) or more than 6 words (Turkish)
var qText = q.q;
var words = qText.split(' ');
// Detect if Turkish question by checking if it matches any Turkish question object reference
var isTurkish = false;
for (var i = 0; i < easyQuestionsTR.length; i++) {
if (q === easyQuestionsTR[i]) {
isTurkish = true;
break;
}
}
if (!isTurkish) {
for (var i = 0; i < mediumQuestionsTR.length; i++) {
if (q === mediumQuestionsTR[i]) {
isTurkish = true;
break;
}
}
}
if (!isTurkish) {
for (var i = 0; i < hardQuestionsTR.length; i++) {
if (q === hardQuestionsTR[i]) {
isTurkish = true;
break;
}
}
}
if (isTurkish && words.length > 6 || !isTurkish && words.length > 7) {
var mid = Math.ceil(words.length / 2);
var firstLine = words.slice(0, mid).join(' ');
var secondLine = words.slice(mid).join(' ');
qText = firstLine + '\n' + secondLine;
}
// Reduce font size by 4 if 5/6/7 words and total letters > 34
var totalLetters = 0;
for (var i = 0; i < words.length; i++) {
totalLetters += words[i].replace(/[^A-Za-zÇĞİÖŞÜçğıöşüA-Z]/g, '').length;
}
var reduceBy4 = false;
if (isTurkish && words.length === 6 && totalLetters > 34 || isTurkish && words.length === 7 && totalLetters > 34 || !isTurkish && words.length === 5 && totalLetters > 34 || !isTurkish && words.length === 6 && totalLetters > 34 || !isTurkish && words.length === 7 && totalLetters > 34) {
reduceBy4 = true;
}
// Reduce font size by 4 if Turkish question has more than 5 words
// Reduce font size by 4 if question has 13 or more words, by 3 if 12, by 2 if more than 9 words (applies to both English and Turkish)
// For Turkish questions, reduce all font sizes by 2
if (isTurkish) {
if (reduceBy4) {
questionText.setStyle({
size: 94 - 4
});
} else if (words.length > 5) {
questionText.setStyle({
size: 94
});
} else if (words.length >= 13) {
questionText.setStyle({
size: 94
});
} else if (words.length >= 12) {
questionText.setStyle({
size: 95
});
} else if (words.length > 9) {
questionText.setStyle({
size: 96
});
} else {
questionText.setStyle({
size: 98
});
}
} else {
if (reduceBy4) {
questionText.setStyle({
size: 100 - 4
});
} else if (words.length >= 13) {
questionText.setStyle({
size: 96
});
} else if (words.length >= 12) {
questionText.setStyle({
size: 97
});
} else if (words.length > 9) {
questionText.setStyle({
size: 98
});
} else {
questionText.setStyle({
size: 100
});
}
}
questionText.setText(qText);
if (!game.children.includes(questionText)) {
game.addChild(questionText);
}
for (var i = 0; i < 4; i++) {
optionButtons[i].setText(randomized.options[i]);
optionButtons[i].setEnabled(true);
optionButtons[i].visible = true;
optionButtons[i].correct = i === randomized.answerIdx;
}
canAnswer = true;
}
function handleOptionSelected(idx) {
if (!canAnswer) {
return;
}
canAnswer = false;
var q = allQuestions[currentQuestion];
var correctIdx = -1;
for (var i = 0; i < 4; i++) {
if (optionButtons[i].correct) {
correctIdx = i;
break;
}
}
// Feedback: flash green/red
// Pick which feedback asset to show
var showTrue = Math.random() < 0.5;
var showWrong = Math.random() < 0.5;
if (optionButtons[idx].correct) {
// Track correct answer
if (!game.playerCorrectAnswers) {
game.playerCorrectAnswers = [];
}
game.playerCorrectAnswers[currentQuestion] = true;
// Play correct sound
LK.getSound('True1').play();
optionButtons[idx].flash(0x83de44, 300);
score += q.points;
scoreText.setText(isTurkishSelected ? 'Skor: ' + score : 'Score: ' + score);
if (showTrue) {
trueAsset.visible = true;
trueAsset2.visible = false;
} else {
trueAsset.visible = false;
trueAsset2.visible = true;
}
wrongAsset.visible = false;
wrongAsset2.visible = false;
// Show truetext asset
truetextAsset.visible = true;
wrongtextAsset.visible = false;
} else {
// Track incorrect answer
if (!game.playerCorrectAnswers) {
game.playerCorrectAnswers = [];
}
game.playerCorrectAnswers[currentQuestion] = false;
// Play wrong sound
LK.getSound('Wrong1').play();
optionButtons[idx].flash(0xff0000, 300);
optionButtons[correctIdx].flash(0x83de44, 300);
trueAsset.visible = false;
trueAsset2.visible = false;
if (showWrong) {
wrongAsset.visible = true;
wrongAsset2.visible = false;
} else {
wrongAsset.visible = false;
wrongAsset2.visible = true;
}
// Show wrongtext asset
truetextAsset.visible = false;
wrongtextAsset.visible = true;
}
// Hide feedback after short delay
LK.setTimeout(function () {
trueAsset.visible = false;
wrongAsset.visible = false;
trueAsset2.visible = false;
wrongAsset2.visible = false;
truetextAsset.visible = false;
wrongtextAsset.visible = false;
}, 500);
// Disable all buttons
for (var i = 0; i < 4; i++) {
optionButtons[i].setEnabled(false);
}
// Next question after short delay
LK.setTimeout(function () {
currentQuestion++;
if (currentQuestion < allQuestions.length && timeLeft > 0) {
showQuestion(currentQuestion);
} else {
endQuiz();
}
}, 600);
}
function endQuiz() {
quizStarted = false;
canAnswer = false;
if (timerInterval) {
LK.clearInterval(timerInterval);
timerInterval = null;
}
timerDigits.setText("00");
// Hide question/options
questionText.setText('');
for (var i = 0; i < 4; i++) {
optionButtons[i].setEnabled(false);
optionButtons[i].visible = false;
}
// Calculate number of correct answers
var correctCount = 0;
if (!game.playerCorrectAnswers) {
game.playerCorrectAnswers = [];
}
for (var i = 0; i < allQuestions.length; i++) {
if (game.playerCorrectAnswers[i] === true) {
correctCount++;
}
}
// Calculate bonus: 1 point per 2 seconds left (rounded down)
var bonus = Math.floor(timeLeft / 2);
// If 3 or fewer correct in 10 questions, only 1/4 bonus
if (allQuestions.length === 10 && correctCount <= 3) {
bonus = Math.floor(bonus / 4);
}
// If player finishes in under 10 seconds, reduce bonus to 1/4
if (allQuestions.length === 10 && 60.0 - timeLeft < 10) {
bonus = Math.floor(bonus / 4);
}
var total = score + bonus;
// Hide quiz UI
questionText.visible = false;
scoreText.visible = false;
timerBar.visible = false;
timerDigits.visible = false;
// Show ending screen background and gameBanner
startingScreenBg.visible = true;
startingScreenBg.x = centerX;
startingScreenBg.y = centerY;
startingScreenBg.anchorX = 0.5;
startingScreenBg.anchorY = 0.5;
gameBannerAsset.visible = true;
gameBannerAsset.x = centerX;
gameBannerAsset.y = centerY - 530; // same as starting screen
// Hide tolkienText (not on ending screen)
tolkienTextAsset.visible = false;
// Show final score in bold, large, centered
if (!game.endingScoreText) {
game.endingScoreText = new Text2('', {
size: 160,
fill: 0xB8860B,
// darker gold/yellow
font: "'Impact','GillSans-Bold','Arial Black','Papyrus','Georgia','Times New Roman',serif",
fontWeight: "bold"
});
game.endingScoreText.anchor.set(0.5, 0.5);
game.addChild(game.endingScoreText);
}
if (!game.endingScorePoints) {
game.endingScorePoints = new Text2('', {
size: 260,
fill: 0xB8860B,
// darker gold/yellow
font: "'Impact','GillSans-Bold','Arial Black','Papyrus','Georgia','Times New Roman',serif",
fontWeight: "bold"
});
game.endingScorePoints.anchor.set(0.5, 0.5);
game.addChild(game.endingScorePoints);
}
if (!game.endingScoreDetails) {
game.endingScoreDetails = new Text2('', {
size: 80,
fill: 0x1B7F2A,
// bold green
font: "'GillSans-Bold','Arial Black','Papyrus','Georgia','Times New Roman',serif",
fontWeight: "bold"
});
game.endingScoreDetails.anchor.set(0.5, 0.5);
game.addChild(game.endingScoreDetails);
}
game.endingScoreText.setText(isTurkishSelected ? "Final Skoru:" : "FINAL SCORE:");
game.endingScoreText.x = centerX;
game.endingScoreText.y = centerY + 220; // 40px further down (180+40=220)
game.endingScoreText.visible = true;
game.endingScoreText.setStyle({
size: 110
}); // reduce size
game.endingScorePoints.setText(total + "");
game.endingScorePoints.x = centerX;
game.endingScorePoints.y = centerY + 440; // 30px further down (410+30=440)
game.endingScorePoints.visible = true;
game.endingScorePoints.setStyle({
size: 340,
fontWeight: "bold"
}); // increase font size and bold
game.endingScoreDetails.setText(isTurkishSelected ? "Doğru: " + correctCount + " Zaman Bonusu: " + bonus : "Correct: " + correctCount + " Time Bonus: " + bonus);
game.endingScoreDetails.x = centerX;
game.endingScoreDetails.y = centerY + 700; // 50px further down (650+50=700)
game.endingScoreDetails.visible = true;
game.endingScoreDetails.setStyle({
fill: 0x14551a
}); // much darker green
// Hide summary and bonus text (not used in new ending screen)
summaryText.visible = false;
bonusText.visible = false;
// Show star asset at the bottom of ending screen based on total score
var starAssetId = '';
var starMusicId = '';
if (total < 31) {
starAssetId = 'oneStars';
starMusicId = '1Star';
} else if (total <= 66) {
starAssetId = 'twoStars';
starMusicId = '2Stars';
} else {
starAssetId = 'threeStars';
starMusicId = 'Victory';
}
// Play the corresponding star melody only if not already played for this ending
if (!game.endingMusicPlayed || game.endingMusicPlayed !== starMusicId) {
LK.stopMusic();
LK.playMusic(starMusicId, {
loop: false
});
game.endingMusicPlayed = starMusicId;
}
if (!game.endingStarsAsset) {
game.endingStarsAsset = LK.getAsset(starAssetId, {
anchorX: 0.5,
anchorY: 1.0,
x: centerX,
y: 2732 - 40 // bottom center, above the very bottom
});
game.addChild(game.endingStarsAsset);
} else {
// Remove previous if any, and create new
game.removeChild(game.endingStarsAsset);
game.endingStarsAsset = LK.getAsset(starAssetId, {
anchorX: 0.5,
anchorY: 1.0,
x: centerX,
y: 2732 - 40
});
game.addChild(game.endingStarsAsset);
}
game.endingStarsAsset.visible = true;
// Animate ending screen star asset: pulse scale up and down forever
function animateEndingStarsAsset() {
if (!game.endingStarsAsset || !game.endingStarsAsset.visible) {
return;
}
tween(game.endingStarsAsset, {
scaleX: 1.12,
scaleY: 1.12
}, {
duration: 600,
easing: tween.easeInOut,
onFinish: function onFinish() {
tween(game.endingStarsAsset, {
scaleX: 1,
scaleY: 1
}, {
duration: 600,
easing: tween.easeInOut,
onFinish: animateEndingStarsAsset
});
}
});
}
animateEndingStarsAsset();
// Show ending screen for 8 seconds, then show a custom replay dialog and restore UI
LK.setTimeout(function () {
if (game.endingScoreText) {
game.endingScoreText.visible = false;
}
if (game.endingScorePoints) {
game.endingScorePoints.visible = false;
}
if (game.endingScoreDetails) {
game.endingScoreDetails.visible = false;
}
if (game.endingStarsAsset) {
game.endingStarsAsset.visible = false;
}
summaryText.visible = false;
bonusText.visible = false;
// Keep scoreText visible and up-to-date
scoreText.setText('Score: ' + score);
scoreText.visible = true;
// Show correct count and bonus as a new Text2 (or reuse if already exists)
if (!game.replayCorrectText) {
game.replayCorrectText = new Text2('', {
size: 90,
fill: 0x1B7F2A,
font: "'GillSans-Bold','Arial Black','Papyrus','Georgia','Times New Roman',serif",
fontWeight: "bold"
});
game.replayCorrectText.anchor.set(0.5, 0.5);
game.addChild(game.replayCorrectText);
}
game.replayCorrectText.setText(isTurkishSelected ? "Doğru: " + correctCount + " Zaman Bonusu: " + bonus : "Correct: " + correctCount + " Time Bonus: " + bonus);
game.replayCorrectText.x = centerX;
game.replayCorrectText.y = centerY + 260;
game.replayCorrectText.visible = true;
timerBar.visible = true;
timerDigits.visible = true;
questionText.visible = true;
// Remove any previous replay dialog
if (game.replayDialogBg) {
game.removeChild(game.replayDialogBg);
game.replayDialogBg = null;
}
if (game.replayDialogText) {
game.removeChild(game.replayDialogText);
game.replayDialogText = null;
}
if (game.replayDialogBtn) {
game.removeChild(game.replayDialogBtn);
game.replayDialogBtn = null;
}
// Create a semi-transparent dark background
var dialogBg = LK.getAsset('startingscreen', {
anchorX: 0.5,
anchorY: 0.5,
x: centerX,
y: centerY,
width: 1200,
height: 900,
color: 0x000000
});
dialogBg.alpha = 0.85;
game.addChild(dialogBg);
game.replayDialogBg = dialogBg;
// No dialog text for replay dialog
game.replayDialogText = null;
// Create replay button (no text inside)
var replayBtn;
if (isTurkishSelected) {
replayBtn = new TekrarButton();
} else {
replayBtn = new RestartButton();
}
replayBtn.x = centerX;
replayBtn.y = centerY + 120;
replayBtn.scaleX = 0.7;
replayBtn.scaleY = 0.7;
game.addChild(replayBtn);
game.replayDialogBtn = replayBtn;
// --- Show star asset and score under the restart dialog ---
// Show the same star asset as in ending screen, but for replay dialog
if (game.replayStarsAsset) {
game.removeChild(game.replayStarsAsset);
game.replayStarsAsset = null;
}
game.replayStarsAsset = LK.getAsset(starAssetId, {
anchorX: 0.5,
anchorY: 1.0,
x: centerX,
y: centerY + 820 // 400px further down than before
});
game.addChild(game.replayStarsAsset);
game.replayStarsAsset.visible = true;
// Animate replay dialog star asset: pulse scale up and down forever
function animateReplayStarsAsset() {
if (!game.replayStarsAsset || !game.replayStarsAsset.visible) {
return;
}
tween(game.replayStarsAsset, {
scaleX: 1.12,
scaleY: 1.12
}, {
duration: 600,
easing: tween.easeInOut,
onFinish: function onFinish() {
tween(game.replayStarsAsset, {
scaleX: 1,
scaleY: 1
}, {
duration: 600,
easing: tween.easeInOut,
onFinish: animateReplayStarsAsset
});
}
});
}
animateReplayStarsAsset();
// Show the final score under the stars in the replay dialog
if (!game.replayScoreText) {
game.replayScoreText = new Text2('', {
size: 140,
fill: 0xFFD84A,
// lighter yellow
font: "'Impact','GillSans-Bold','Arial Black','Papyrus','Georgia','Times New Roman',serif",
fontWeight: "bold"
});
game.replayScoreText.anchor.set(0.5, 0.5);
game.addChild(game.replayScoreText);
}
game.replayScoreText.setText(isTurkishSelected ? "Skor: " + total : "Score: " + total);
game.replayScoreText.x = centerX;
game.replayScoreText.y = centerY + 940; // 400px further down than before
game.replayScoreText.visible = true;
game.replayScoreText.setStyle({
size: 200,
fill: 0xFFD84A,
fontWeight: "bold"
});
// Animate replay button
function animateReplayBtn() {
tween(replayBtn, {
scaleX: 0.8,
scaleY: 0.8
}, {
duration: 500,
easing: tween.easeInOut,
onFinish: function onFinish() {
tween(replayBtn, {
scaleX: 0.7,
scaleY: 0.7
}, {
duration: 500,
easing: tween.easeInOut,
onFinish: animateReplayBtn
});
}
});
}
animateReplayBtn();
// Replay button event
replayBtn.down = function (x, y, obj) {
// Remove dialog
if (game.replayDialogBg) {
game.removeChild(game.replayDialogBg);
game.replayDialogBg = null;
}
if (game.replayDialogText) {
game.removeChild(game.replayDialogText);
game.replayDialogText = null;
}
if (game.replayDialogBtn) {
game.removeChild(game.replayDialogBtn);
game.replayDialogBtn = null;
}
// Hide correct/bonus text on replay
if (game.replayCorrectText) {
game.replayCorrectText.visible = false;
}
if (game.endingStarsAsset) {
game.endingStarsAsset.visible = false;
}
// Hide replay dialog star asset and score text
if (game.replayStarsAsset) {
game.replayStarsAsset.visible = false;
}
if (game.replayScoreText) {
game.replayScoreText.visible = false;
}
// Stop ending music and reset flag so it can play again on next ending
LK.stopMusic();
game.endingMusicPlayed = null;
quizStarted = false;
canAnswer = false;
score = 0;
timeLeft = 60.0;
currentQuestion = 0;
game.playerCorrectAnswers = [];
// --- Restart timer interval and timebar animation ---
if (timerInterval) {
LK.clearInterval(timerInterval);
timerInterval = null;
}
timerBar.setProgress(1);
timerDigits.setText("60");
quizStarted = true;
timerInterval = LK.setInterval(function () {
if (!quizStarted) {
return;
}
timeLeft -= 0.1;
if (timeLeft < 0) {
timeLeft = 0;
}
timerBar.setProgress(timeLeft / 60.0);
// Update timerDigits to show remaining time as integer seconds, always 2 digits
var shownTime = Math.ceil(timeLeft);
if (shownTime < 0) {
shownTime = 0;
}
if (shownTime > 99) {
shownTime = 99;
}
timerDigits.setText((shownTime < 10 ? "0" : "") + shownTime);
if (timeLeft <= 0) {
endQuiz();
}
}, 100);
// --- Remember language selection ---
// If last game was Turkish, use Turkish question sets; else use English
// We detect this by checking the first question object reference
var isTurkish = false;
if (allQuestions && allQuestions.length > 0) {
// Check if first question is in Turkish sets
var q0 = allQuestions[0];
for (var i = 0; i < easyQuestionsTR.length; i++) {
if (q0 === easyQuestionsTR[i]) {
isTurkish = true;
break;
}
}
if (!isTurkish) {
for (var i = 0; i < mediumQuestionsTR.length; i++) {
if (q0 === mediumQuestionsTR[i]) {
isTurkish = true;
break;
}
}
}
if (!isTurkish) {
for (var i = 0; i < hardQuestionsTR.length; i++) {
if (q0 === hardQuestionsTR[i]) {
isTurkish = true;
break;
}
}
}
}
// Set isTurkishSelected for next game
isTurkishSelected = isTurkish;
// Re-pick questions for new game (4 easy, 3 medium, 3 hard) in the same language
if (isTurkish) {
selectedEasy = pickRandomQuestions(easyQuestionsTR, 4);
selectedMedium = pickRandomQuestions(mediumQuestionsTR, 3);
selectedHard = pickRandomQuestions(hardQuestionsTR, 3);
} else {
selectedEasy = pickRandomQuestions(easyQuestions, 4);
selectedMedium = pickRandomQuestions(mediumQuestions, 3);
selectedHard = pickRandomQuestions(hardQuestions, 3);
}
allQuestions = selectedEasy.concat(selectedMedium, selectedHard);
scoreText.setText(isTurkishSelected ? 'Skor: 0' : 'Score: 0');
timerBar.setProgress(1);
timerDigits.setText("60");
summaryText.visible = false;
bonusText.visible = false;
// --- Skip startingScreen and languageScreen, go directly to new game ---
startButton.visible = false;
startingScreenBg.visible = false;
gameBannerAsset.visible = false;
tolkienTextAsset.visible = false;
questionText.visible = false;
for (var i = 0; i < 4; i++) {
optionButtons[i].setEnabled(false);
optionButtons[i].visible = true;
}
// Ensure questionText and options are visible and show the first question
questionText.visible = true;
showQuestion(0);
canAnswer = true;
};
}, 8000);
}
// --- Game Update ---
game.update = function () {
// No per-frame logic needed; timer handled by interval
};
// --- Touch Handling ---
// No drag/move needed; all handled by button events
// --- End of File --- ===================================================================
--- original.js
+++ change.js
@@ -109,14 +109,14 @@
/****
* Game Code
****/
-// 3 packages: Easy, Medium, Hard. Each is an array of {q, options, answer, points}
-// --- Quiz Data ---
-// Button shape: dark red rectangle for options
-// Start button shape: larger dark red rectangle
-// Timer bar background
// Timer bar foreground
+// Timer bar background
+// Start button shape: larger dark red rectangle
+// Button shape: dark red rectangle for options
+// --- Quiz Data ---
+// 3 packages: Easy, Medium, Hard. Each is an array of {q, options, answer, points}
var easyQuestions = [{
q: "What is the name of Bilbo's home?",
options: ["Bag End", "Rivendell", "Minas Tirith", "Helm's Deep"],
answer: 0,
@@ -643,8 +643,93 @@
options: ["Mandos himself", "Manwë", "Oromë", "Eönwë"],
answer: 0,
points: 10
}, {
+ q: "What legendary event led to the invention of golf in Hobbit lore?",
+ options: ["Bullroarer Took knocking off a goblin’s head", "Bilbo fighting spiders", "The Battle of the Five Armies", "Gollum’s riddles"],
+ answer: 0,
+ points: 10
+}, {
+ q: "What was the northern kingdom of the Dúnedain called?",
+ options: ["Arnor", "Gondor", "Rohan", "Eregion"],
+ answer: 0,
+ points: 10
+}, {
+ q: "Who is considered the largest and most powerful dragon ever to exist?",
+ options: ["Ancalagon the Black", "Smaug", "Glaurung", "Scatha"],
+ answer: 0,
+ points: 10
+}, {
+ q: "How did Ancalagon the Black die?",
+ options: ["Fell on Thangorodrim after being slain by Eärendil", "Killed by Beren", "Killed by Thorin", "Defeated by Gandalf"],
+ answer: 0,
+ points: 10
+}, {
+ q: "Who was the Lord of the Balrogs during the First Age?",
+ options: ["Gothmog", "Sauron", "Morgoth", "Thuringwethil"],
+ answer: 0,
+ points: 10
+}, {
+ q: "Who among the Elves was NOT offered the choice of mortality?",
+ options: ["Legolas", "Lúthien", "Arwen", "Idril"],
+ answer: 0,
+ points: 10
+}, {
+ q: "How many Rings of Power were made in total (excluding the One Ring)?",
+ options: ["Nineteen", "Twenty", "Seventeen", "Thirteen"],
+ answer: 0,
+ points: 10
+}, {
+ q: "Who forged the Three Elven Rings?",
+ options: ["Celebrimbor", "Sauron", "Fëanor", "Curufin"],
+ answer: 0,
+ points: 10
+}, {
+ q: "What was the name of the great wolf bred by Morgoth?",
+ options: ["Carcharoth", "Huan", "Draugluin", "Garm"],
+ answer: 0,
+ points: 10
+}, {
+ q: "Which Elf first greeted the Sun upon its rising?",
+ options: ["Ingwë", "Fëanor", "Finwë", "Fingolfin"],
+ answer: 0,
+ points: 10
+}, {
+ q: "What is the name of the chain that bound Melkor?",
+ options: ["Angainor", "Grond", "Andúril", "Vingilot"],
+ answer: 0,
+ points: 10
+}, {
+ q: "Which of the Two Trees of Valinor gave silver light?",
+ options: ["Telperion", "Laurelin", "Galathilion", "Silpion"],
+ answer: 0,
+ points: 10
+}, {
+ q: "Which river did Isildur try to cross when he was ambushed and killed?",
+ options: ["Anduin", "Baranduin", "Sirion", "Gwathló"],
+ answer: 0,
+ points: 10
+}, {
+ q: "Who betrayed Gondolin to Morgoth?",
+ options: ["Maeglin", "Eöl", "Tuor", "Salgant"],
+ answer: 0,
+ points: 10
+}, {
+ q: "What was the name of the sword that killed the Witch-king?",
+ options: ["Merry’s Barrow-blade", "Andúril", "Sting", "Glamdring"],
+ answer: 0,
+ points: 10
+}, {
+ q: "Which Maia helped Morgoth corrupt Elves into Orcs?",
+ options: ["Sauron", "Gothmog", "Saruman", "Thuringwethil"],
+ answer: 0,
+ points: 10
+}, {
+ q: "What star was created from a Silmaril and placed in the sky?",
+ options: ["Eärendil", "Elbereth", "Valacirca", "Carnil"],
+ answer: 0,
+ points: 10
+}, {
q: "Which Vala was closest to Melkor in might before his fall?",
options: ["Manwë", "Tulkas", "Ulmo", "Aulë"],
answer: 0,
points: 10
Make him smile
a LOTR style button with elegant and green leaves. In-Game asset. 2d. High contrast. No shadows
write "TAP to START" on it with LOTR style
tonu daha yapraksı ve dokulu olsun
Kare ama köşeleri oval bir banner. LOTR tarzı. Yeşil ve altın sarısı ağırlıklı. İçinde "Myths of the West" yazıyor.
write: "This is an unofficial, non-commercial quiz game created as a tribute to the epic legends imagined by J.R.R. Tolkien." with golden color and LOTR style. 1400x200. In-Game asset. 2d. High contrast. No shadows
Golden ornoment LOTR style. In-Game asset. 2d. High contrast. No shadows
Same but write "RESTART"
Same stars but make it two.
delete blacks
Write "MAGNIFICENT" bottom of the stars with LOTR style
Arka planı sil şeffaf olsun
Tamamen aynı sanatsal formda ama parmağını aşağı indirip üzülen GOLLUM olacak
Tamamen aynı sanatsal formda ama parmağını aşağı indirip üzülen GRIMA WORMTHONG olacak
Tamamen aynı sanatsal formda ama parmağını yukarı kaldırıp gülen ARAGORN olacak
Tamamen aynı sanatsal formda ama parmağını aşağı indirip üzülen SARUMAN olacak
Make a mute button in lotr style
Çerçeve içinde "5'te 5 BONUS" yazsın. LOTR temalı olacak. Dikkat çekici bir popup bu.. In-Game asset. 2d. High contrast. No shadows
Her şey aynı sadece yazıyı düzenle; "5 out of 5 BONUS"
tamamen aynı sadece rengi biraz daha soluk gri olacak
tamamen aynı ama yeşilin tonunu daha LOTR dünyasına uydur. ve çizgileri koyu kahverengi yap
Tamamen aynı resim olacak ama daha gerçekçi bir hale getir
Tamamen aynı ama yatay olacak
arka planı ve pençesindeki yüzüğü sil