User prompt
Oyuncu Quick time eventler ve halat çekme yarısında kaybedilirse 20 puan ve 1 can kaybetsin
User prompt
Halat çekme yarısını zorlaştır ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Please fix the bug: 'TypeError: this.destroy is not a function' in or related to this line: 'this.destroy();' Line Number: 4161
User prompt
Please fix the bug: 'TypeError: this.destroy is not a function' in or related to this line: 'this.destroy();' Line Number: 4124
User prompt
Please fix the bug: 'TypeError: this.destroy is not a function' in or related to this line: 'this.destroy();' Line Number: 4021
User prompt
Halat yarısını zorlaştır ayrıca halatın animasyonlarını efektlerini ve dizaynını daha kaliteli yap halat yarısı için ayrı bir ekran yap ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Pekala birde quic time event ekleyelim arada bir ortaya çıksın ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Soruların arasına bazen yetenek yarışması ekle mesela ekrana hızlı hızlı basmamız gereken bir halat çekme yarışı ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Hataları düzelt
User prompt
In the game's opening dialogue after the intro, let AI mock the player and ask questions. Add cutscenes between the questions and let us make choices in these scenes. ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
İntoryu oyunu çalıştırmadan önce pixel art yazılar ve basit animasyonlarla yap ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Kalpler yok olurken patlasın ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Oyuna can ekle kalp simgesi olsun 3 adet kalp olsun her hatada bir animasyonla 1 kalp yok olur 3 kalp biterse oyun biter ayrıca 3 seçenek değişsin ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Bir intro ekle yazılar olsun intro bir hikaye anlatsın hikaye : yapay zeka ana karakterimizi kaçırdı ve tehtid ederek zorla diğer yarışmacılarla beraber bilgi yarışmasına sokuyor ayrıca bir aı düşman ekle oda arada bir puan kazanacak ve ilk 1000 puana ulaşan kazanacak ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
We increased the font size, make it fullscreen
User prompt
Mor partiküllü koyu mavi bir arka plan ekle ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
The order in which the questions are asked should be random.
User prompt
Add more questions Add 300 questions
User prompt
daha fazla soru ekleyin ve ekran geçişleri için bir animasyon ekle ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
After clicking on the play button, you will be presented with 3 different options: History questions, Science and mathematics, expert (all)
User prompt
Add language options to settings and add Turkish language support
User prompt
Add settings to main menu
User prompt
Add a main menu
User prompt
Make questions harder and add 100 questions
Code edit (1 edits merged)
Please save this source code
/****
* Plugins
****/
var tween = LK.import("@upit/tween.v1");
var storage = LK.import("@upit/storage.v1");
/****
* Classes
****/
var ChatMessage = Container.expand(function (message, isAI, yPos) {
var self = Container.call(this);
var bubbleColor = isAI ? 0xe8f4fd : 0x4a9eff;
var textColor = isAI ? "#333333" : "#ffffff";
var alignX = isAI ? 0 : 1;
var bubble = self.attachAsset(isAI ? 'chatBubbleAI' : 'chatBubbleUser', {
anchorX: alignX,
anchorY: 0
});
var messageText = new Text2(message, {
size: 70,
fill: textColor,
wordWrap: true,
wordWrapWidth: 550
});
messageText.anchor.set(alignX, 0);
messageText.x = alignX === 0 ? 25 : -25;
messageText.y = 20;
self.addChild(messageText);
// Adjust bubble height based on text
var textHeight = messageText.height;
bubble.height = Math.max(120, textHeight + 40);
self.x = alignX === 0 ? 150 : 1898;
self.y = yPos;
self.getBubbleHeight = function () {
return bubble.height;
};
return self;
});
var MenuButton = Container.expand(function (text, callback) {
var self = Container.call(this);
var button = self.attachAsset('playButton', {
anchorX: 0.5,
anchorY: 0.5
});
var buttonText = new Text2(text, {
size: 80,
fill: 0xffffff
});
buttonText.anchor.set(0.5, 0.5);
self.addChild(buttonText);
self.callback = callback;
self.down = function (x, y, obj) {
button.tint = 0x3a7fcf;
tween(self, {
scaleX: 0.95,
scaleY: 0.95
}, {
duration: 100,
easing: tween.easeOut,
onFinish: function onFinish() {
tween(self, {
scaleX: 1,
scaleY: 1
}, {
duration: 100,
easing: tween.easeOut
});
}
});
if (self.callback) {
self.callback();
}
};
self.up = function (x, y, obj) {
button.tint = 0xffffff;
};
return self;
});
var OptionButton = Container.expand(function (text, callback) {
var self = Container.call(this);
var button = self.attachAsset('option1Button', {
anchorX: 0.5,
anchorY: 0.5
});
var buttonText = new Text2(text, {
size: 75,
fill: 0x333333,
wordWrap: true,
wordWrapWidth: 1400
});
buttonText.anchor.set(0.5, 0.5);
self.addChild(buttonText);
self.callback = callback;
self.down = function (x, y, obj) {
button.tint = 0xdddddd;
tween(self, {
scaleX: 0.95,
scaleY: 0.95
}, {
duration: 100,
easing: tween.easeOut,
onFinish: function onFinish() {
tween(self, {
scaleX: 1,
scaleY: 1
}, {
duration: 100,
easing: tween.easeOut
});
}
});
if (self.callback) {
self.callback();
}
};
self.up = function (x, y, obj) {
button.tint = 0xffffff;
};
return self;
});
// Create particle class
var Particle = Container.expand(function () {
var self = Container.call(this);
var particle = self.attachAsset('aiAvatar', {
anchorX: 0.5,
anchorY: 0.5,
scaleX: 0.3,
scaleY: 0.3
});
particle.tint = 0x9966cc; // Purple tint
particle.alpha = 0.6;
// Random initial position and movement
self.x = Math.random() * 2048;
self.y = Math.random() * 2732;
self.speedX = (Math.random() - 0.5) * 2;
self.speedY = (Math.random() - 0.5) * 2;
self.update = function () {
self.x += self.speedX;
self.y += self.speedY;
// Wrap around screen edges
if (self.x > 2048) self.x = -50;
if (self.x < -50) self.x = 2048;
if (self.y > 2732) self.y = -50;
if (self.y < -50) self.y = 2732;
// Gentle rotation
self.rotation += 0.01;
};
return self;
});
// Create initial particles
var SettingsButton = Container.expand(function (text, callback) {
var self = Container.call(this);
var button = self.attachAsset('playButton', {
anchorX: 0.5,
anchorY: 0.5
});
var buttonText = new Text2(text, {
size: 80,
fill: 0xffffff
});
buttonText.anchor.set(0.5, 0.5);
self.addChild(buttonText);
self.callback = callback;
self.down = function (x, y, obj) {
button.tint = 0x3a7fcf;
tween(self, {
scaleX: 0.95,
scaleY: 0.95
}, {
duration: 100,
easing: tween.easeOut,
onFinish: function onFinish() {
tween(self, {
scaleX: 1,
scaleY: 1
}, {
duration: 100,
easing: tween.easeOut
});
}
});
if (self.callback) {
self.callback();
}
};
self.up = function (x, y, obj) {
button.tint = 0xffffff;
};
return self;
});
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x1a1a3a
});
/****
* Game Code
****/
// Purple particle system
var particles = [];
var particleContainer = new Container();
game.addChild(particleContainer);
// Create initial particles
for (var i = 0; i < 15; i++) {
var particle = new Particle();
particles.push(particle);
particleContainer.addChild(particle);
// Animate particle with floating motion
tween(particle, {
alpha: 0.3
}, {
duration: 2000 + Math.random() * 1000,
easing: tween.easeInOut,
onFinish: function onFinish() {
tween(this, {
alpha: 0.8
}, {
duration: 2000 + Math.random() * 1000,
easing: tween.easeInOut,
onFinish: arguments.callee
});
}
});
}
var chatMessages = [];
var currentQuestion = 0;
var score = 0;
var aiScore = 0;
var lives = 3;
var hearts = [];
var gamePhase = 'menu'; // menu, intro, question, complete, settings
var messagesContainer = new Container();
var optionsContainer = new Container();
var menuContainer = new Container();
var settingsContainer = new Container();
var scrollOffset = 0;
var maxScroll = 0;
var soundEnabled = true;
var difficulty = 'Normal'; // Easy, Normal, Hard
var currentLanguage = 'english'; // english, turkish
var soundToggleButton, difficultyButton, languageButton, backButton;
var titleText, subtitleText, playButton, settingsButton, settingsTitleText;
var scoreTxt, heartsContainer, aiAvatar;
// AI Questions and responses - 100 challenging questions
var questionsEnglish = [{
question: "What is the derivative of x² with respect to x?",
options: ["x", "2x", "x²"],
correct: 1,
response: "Excellent! The derivative of x² is indeed 2x."
}, {
question: "Which programming paradigm emphasizes immutability?",
options: ["Object-oriented", "Functional", "Procedural"],
correct: 1,
response: "Correct! Functional programming emphasizes immutability."
}, {
question: "What is the time complexity of binary search?",
options: ["O(n)", "O(log n)", "O(n²)"],
correct: 1,
response: "Perfect! Binary search has O(log n) time complexity."
}, {
question: "Which element has the atomic number 79?",
options: ["Silver", "Gold", "Platinum"],
correct: 1,
response: "Right! Gold has atomic number 79."
}, {
question: "What does HTTP stand for?",
options: ["HyperText Transfer Protocol", "High Transfer Text Protocol", "HyperText Transmission Protocol"],
correct: 0,
response: "Excellent! HTTP is HyperText Transfer Protocol."
}, {
question: "In quantum physics, what is Schrödinger's cat an example of?",
options: ["Wave-particle duality", "Quantum superposition", "Quantum entanglement"],
correct: 1,
response: "Correct! It demonstrates quantum superposition."
}, {
question: "What is the square root of 144?",
options: ["11", "12", "13"],
correct: 1,
response: "Perfect! √144 = 12."
}, {
question: "Which data structure uses LIFO principle?",
options: ["Queue", "Stack", "Array"],
correct: 1,
response: "Right! Stack uses Last In, First Out (LIFO)."
}, {
question: "What is the capital of Australia?",
options: ["Sydney", "Melbourne", "Canberra"],
correct: 2,
response: "Correct! Canberra is Australia's capital."
}, {
question: "In chess, how many squares are on the board?",
options: ["64", "81", "49"],
correct: 0,
response: "Excellent! A chess board has 64 squares."
}, {
question: "What is the chemical formula for water?",
options: ["H2O", "CO2", "NaCl"],
correct: 0,
response: "Perfect! Water is H2O."
}, {
question: "Which sorting algorithm has the best average case time complexity?",
options: ["Bubble Sort", "Quick Sort", "Selection Sort"],
correct: 1,
response: "Correct! Quick Sort has O(n log n) average case."
}, {
question: "What is 15% of 200?",
options: ["25", "30", "35"],
correct: 1,
response: "Right! 15% of 200 is 30."
}, {
question: "In which year did World War II end?",
options: ["1944", "1945", "1946"],
correct: 1,
response: "Correct! World War II ended in 1945."
}, {
question: "What is the largest planet in our solar system?",
options: ["Saturn", "Jupiter", "Neptune"],
correct: 1,
response: "Excellent! Jupiter is the largest planet."
}, {
question: "Which database type is MongoDB?",
options: ["Relational", "NoSQL", "Graph"],
correct: 1,
response: "Correct! MongoDB is a NoSQL database."
}, {
question: "What is the integral of 1/x dx?",
options: ["x", "ln|x|", "1/x²"],
correct: 1,
response: "Perfect! The integral of 1/x is ln|x| + C."
}, {
question: "Which country has the most time zones?",
options: ["USA", "Russia", "China"],
correct: 1,
response: "Right! Russia has 11 time zones."
}, {
question: "What does CPU stand for?",
options: ["Central Processing Unit", "Computer Processing Unit", "Central Program Unit"],
correct: 0,
response: "Excellent! CPU is Central Processing Unit."
}, {
question: "In binary, what is 1010?",
options: ["8", "10", "12"],
correct: 1,
response: "Correct! Binary 1010 equals decimal 10."
}, {
question: "Who wrote '1984'?",
options: ["Aldous Huxley", "George Orwell", "Ray Bradbury"],
correct: 1,
response: "Perfect! George Orwell wrote '1984'."
}, {
question: "What is the speed of light in vacuum?",
options: ["299,792,458 m/s", "300,000,000 m/s", "299,000,000 m/s"],
correct: 0,
response: "Excellent! Light travels at 299,792,458 m/s in vacuum."
}, {
question: "Which protocol is used for secure web browsing?",
options: ["HTTP", "HTTPS", "FTP"],
correct: 1,
response: "Correct! HTTPS is used for secure web browsing."
}, {
question: "What is the formula for the area of a circle?",
options: ["πr", "πr²", "2πr"],
correct: 1,
response: "Perfect! Area of a circle is πr²."
}, {
question: "Which programming language was created by Guido van Rossum?",
options: ["Java", "Python", "Ruby"],
correct: 1,
response: "Right! Python was created by Guido van Rossum."
}, {
question: "What is the boiling point of water at sea level?",
options: ["90°C", "100°C", "110°C"],
correct: 1,
response: "Correct! Water boils at 100°C at sea level."
}, {
question: "In networking, what does DNS stand for?",
options: ["Domain Name System", "Data Network Service", "Dynamic Name Server"],
correct: 0,
response: "Excellent! DNS is Domain Name System."
}, {
question: "What is the result of 2³?",
options: ["6", "8", "9"],
correct: 1,
response: "Perfect! 2³ = 8."
}, {
question: "Which continent has the most countries?",
options: ["Asia", "Africa", "Europe"],
correct: 1,
response: "Correct! Africa has 54 countries."
}, {
question: "What does RAM stand for?",
options: ["Random Access Memory", "Read Access Memory", "Rapid Access Memory"],
correct: 0,
response: "Right! RAM is Random Access Memory."
}, {
question: "In physics, what is the unit of force?",
options: ["Joule", "Newton", "Watt"],
correct: 1,
response: "Excellent! Force is measured in Newtons."
}, {
question: "What is the largest ocean on Earth?",
options: ["Atlantic", "Pacific", "Indian"],
correct: 1,
response: "Correct! The Pacific Ocean is the largest."
}, {
question: "Which language is primarily used for web styling?",
options: ["HTML", "CSS", "JavaScript"],
correct: 1,
response: "Perfect! CSS is used for web styling."
}, {
question: "What is the value of π (pi) to 2 decimal places?",
options: ["3.14", "3.15", "3.16"],
correct: 0,
response: "Right! π ≈ 3.14."
}, {
question: "Who painted the Mona Lisa?",
options: ["Michelangelo", "Leonardo da Vinci", "Raphael"],
correct: 1,
response: "Excellent! Leonardo da Vinci painted the Mona Lisa."
}, {
question: "What is the chemical symbol for iron?",
options: ["I", "Fe", "Ir"],
correct: 1,
response: "Correct! Iron's chemical symbol is Fe."
}, {
question: "In object-oriented programming, what does inheritance allow?",
options: ["Code reuse", "Data hiding", "Polymorphism"],
correct: 0,
response: "Perfect! Inheritance allows code reuse."
}, {
question: "What is the smallest prime number?",
options: ["1", "2", "3"],
correct: 1,
response: "Right! 2 is the smallest prime number."
}, {
question: "Which planet is known as the Red Planet?",
options: ["Venus", "Mars", "Jupiter"],
correct: 1,
response: "Excellent! Mars is known as the Red Planet."
}, {
question: "What does SQL stand for?",
options: ["Structured Query Language", "Simple Query Language", "Standard Query Language"],
correct: 0,
response: "Correct! SQL is Structured Query Language."
}, {
question: "What is 7 × 8?",
options: ["54", "56", "58"],
correct: 1,
response: "Perfect! 7 × 8 = 56."
}, {
question: "Which gas makes up most of Earth's atmosphere?",
options: ["Oxygen", "Nitrogen", "Carbon Dioxide"],
correct: 1,
response: "Right! Nitrogen makes up about 78% of the atmosphere."
}, {
question: "In which year was the World Wide Web invented?",
options: ["1989", "1991", "1993"],
correct: 0,
response: "Excellent! The WWW was invented in 1989."
}, {
question: "What is the capital of Japan?",
options: ["Osaka", "Tokyo", "Kyoto"],
correct: 1,
response: "Correct! Tokyo is Japan's capital."
}, {
question: "Which data type stores true/false values?",
options: ["Integer", "Boolean", "String"],
correct: 1,
response: "Perfect! Boolean stores true/false values."
}, {
question: "What is the freezing point of water in Fahrenheit?",
options: ["30°F", "32°F", "34°F"],
correct: 1,
response: "Right! Water freezes at 32°F."
}, {
question: "Who developed the theory of relativity?",
options: ["Newton", "Einstein", "Galileo"],
correct: 1,
response: "Excellent! Albert Einstein developed relativity theory."
}, {
question: "What is the longest river in the world?",
options: ["Amazon", "Nile", "Yangtze"],
correct: 1,
response: "Correct! The Nile is the longest river."
}, {
question: "In programming, what is recursion?",
options: ["A loop", "A function calling itself", "Error handling"],
correct: 1,
response: "Perfect! Recursion is a function calling itself."
}, {
question: "What is 144 ÷ 12?",
options: ["11", "12", "13"],
correct: 1,
response: "Right! 144 ÷ 12 = 12."
}, {
question: "Which vitamin is produced by skin exposure to sunlight?",
options: ["Vitamin C", "Vitamin D", "Vitamin K"],
correct: 1,
response: "Excellent! Vitamin D is produced by sunlight."
}, {
question: "What does API stand for?",
options: ["Application Programming Interface", "Advanced Programming Interface", "Automated Programming Interface"],
correct: 0,
response: "Correct! API is Application Programming Interface."
}, {
question: "What is the sum of angles in a triangle?",
options: ["180°", "360°", "90°"],
correct: 0,
response: "Perfect! Triangle angles sum to 180°."
}, {
question: "Which element has the symbol 'O'?",
options: ["Gold", "Oxygen", "Silver"],
correct: 1,
response: "Right! 'O' is the symbol for Oxygen."
}, {
question: "In databases, what does CRUD stand for?",
options: ["Create Read Update Delete", "Copy Read Update Delete", "Create Retrieve Update Delete"],
correct: 0,
response: "Excellent! CRUD is Create, Read, Update, Delete."
}, {
question: "What is the cube of 3?",
options: ["9", "27", "81"],
correct: 1,
response: "Correct! 3³ = 27."
}, {
question: "Which ocean is between Europe and America?",
options: ["Pacific", "Atlantic", "Indian"],
correct: 1,
response: "Perfect! The Atlantic Ocean is between Europe and America."
}, {
question: "What does HTML stand for?",
options: ["HyperText Markup Language", "High Tech Modern Language", "HyperText Modern Language"],
correct: 0,
response: "Right! HTML is HyperText Markup Language."
}, {
question: "What is the square of 9?",
options: ["18", "81", "72"],
correct: 1,
response: "Excellent! 9² = 81."
}, {
question: "Who is known as the father of computers?",
options: ["Alan Turing", "Charles Babbage", "John von Neumann"],
correct: 1,
response: "Correct! Charles Babbage is called the father of computers."
}, {
question: "What is the chemical formula for table salt?",
options: ["NaCl", "KCl", "CaCl2"],
correct: 0,
response: "Perfect! Table salt is NaCl (sodium chloride)."
}, {
question: "In which layer of the atmosphere do we live?",
options: ["Stratosphere", "Troposphere", "Mesosphere"],
correct: 1,
response: "Right! We live in the troposphere."
}, {
question: "What does JSON stand for?",
options: ["JavaScript Object Notation", "Java Standard Object Notation", "JavaScript Oriented Notation"],
correct: 0,
response: "Excellent! JSON is JavaScript Object Notation."
}, {
question: "What is 25% of 80?",
options: ["15", "20", "25"],
correct: 1,
response: "Correct! 25% of 80 is 20."
}, {
question: "Which instrument measures atmospheric pressure?",
options: ["Thermometer", "Barometer", "Hygrometer"],
correct: 1,
response: "Perfect! A barometer measures atmospheric pressure."
}, {
question: "What is the basic unit of life?",
options: ["Tissue", "Cell", "Organ"],
correct: 1,
response: "Right! The cell is the basic unit of life."
}, {
question: "In networking, what is an IP address?",
options: ["Internet Protocol address", "Internal Program address", "Internet Program address"],
correct: 0,
response: "Excellent! IP stands for Internet Protocol."
}, {
question: "What is the result of 6!? (6 factorial)",
options: ["36", "720", "120"],
correct: 1,
response: "Correct! 6! = 720."
}, {
question: "Which continent is the Sahara Desert located in?",
options: ["Asia", "Africa", "Australia"],
correct: 1,
response: "Perfect! The Sahara Desert is in Africa."
}, {
question: "What does CSS stand for?",
options: ["Computer Style Sheets", "Cascading Style Sheets", "Creative Style Sheets"],
correct: 1,
response: "Right! CSS is Cascading Style Sheets."
}, {
question: "What is the distance from Earth to the Sun called?",
options: ["Light year", "Astronomical Unit", "Parsec"],
correct: 1,
response: "Excellent! It's called an Astronomical Unit (AU)."
}, {
question: "In mathematics, what is the value of e (Euler's number) approximately?",
options: ["2.718", "3.14", "1.618"],
correct: 0,
response: "Correct! Euler's number e ≈ 2.718."
}, {
question: "Which programming paradigm focuses on objects and classes?",
options: ["Functional", "Object-oriented", "Procedural"],
correct: 1,
response: "Perfect! Object-oriented programming focuses on objects and classes."
}, {
question: "What is the hardest natural substance?",
options: ["Gold", "Diamond", "Iron"],
correct: 1,
response: "Right! Diamond is the hardest natural substance."
}, {
question: "In physics, what is entropy a measure of?",
options: ["Energy", "Disorder", "Temperature"],
correct: 1,
response: "Excellent! Entropy measures disorder in a system."
}, {
question: "What is the binary representation of decimal 5?",
options: ["101", "110", "100"],
correct: 0,
response: "Correct! Decimal 5 is 101 in binary."
}, {
question: "Which mountain range contains Mount Everest?",
options: ["Andes", "Himalayas", "Alps"],
correct: 1,
response: "Perfect! Mount Everest is in the Himalayas."
}, {
question: "What does GPU stand for?",
options: ["General Processing Unit", "Graphics Processing Unit", "Global Processing Unit"],
correct: 1,
response: "Right! GPU is Graphics Processing Unit."
}, {
question: "What is the slope of a horizontal line?",
options: ["1", "0", "Undefined"],
correct: 1,
response: "Excellent! A horizontal line has slope 0."
}, {
question: "Which scientist proposed the laws of planetary motion?",
options: ["Galileo", "Kepler", "Copernicus"],
correct: 1,
response: "Correct! Johannes Kepler proposed the laws of planetary motion."
}, {
question: "What is the most abundant gas in the universe?",
options: ["Oxygen", "Hydrogen", "Helium"],
correct: 1,
response: "Perfect! Hydrogen is the most abundant gas in the universe."
}, {
question: "In computer science, what is Big O notation used for?",
options: ["Code organization", "Algorithm complexity", "Data storage"],
correct: 1,
response: "Right! Big O notation describes algorithm complexity."
}, {
question: "What is the chemical name for baking soda?",
options: ["Sodium chloride", "Sodium bicarbonate", "Sodium carbonate"],
correct: 1,
response: "Excellent! Baking soda is sodium bicarbonate."
}, {
question: "Which data structure is best for implementing a priority queue?",
options: ["Array", "Heap", "Stack"],
correct: 1,
response: "Correct! A heap is ideal for priority queues."
}, {
question: "What is the powerhouse of the cell?",
options: ["Nucleus", "Mitochondria", "Ribosome"],
correct: 1,
response: "Perfect! Mitochondria is the powerhouse of the cell."
}, {
question: "In networking, what layer of the OSI model does HTTP operate at?",
options: ["Layer 6", "Layer 7", "Layer 5"],
correct: 1,
response: "Right! HTTP operates at Layer 7 (Application layer)."
}, {
question: "What is the logarithm base 10 of 1000?",
options: ["2", "3", "4"],
correct: 1,
response: "Excellent! log₁₀(1000) = 3."
}, {
question: "Which programming language is known for 'write once, run anywhere'?",
options: ["C++", "Java", "Python"],
correct: 1,
response: "Correct! Java is known for 'write once, run anywhere'."
}, {
question: "What is the study of earthquakes called?",
options: ["Geology", "Seismology", "Meteorology"],
correct: 1,
response: "Perfect! Seismology is the study of earthquakes."
}, {
question: "In mathematics, what is an irrational number?",
options: ["A negative number", "A number that can't be expressed as a fraction", "A complex number"],
correct: 1,
response: "Right! An irrational number can't be expressed as a simple fraction."
}, {
question: "What does MVC stand for in software architecture?",
options: ["Model View Controller", "Multiple View Controller", "Model Variable Controller"],
correct: 0,
response: "Excellent! MVC is Model-View-Controller."
}, {
question: "What is the smallest unit of computer memory?",
options: ["Byte", "Bit", "Kilobyte"],
correct: 1,
response: "Correct! A bit is the smallest unit of computer memory."
}, {
question: "Which force keeps planets in orbit around the Sun?",
options: ["Magnetic force", "Gravitational force", "Nuclear force"],
correct: 1,
response: "Perfect! Gravitational force keeps planets in orbit."
}, {
question: "What is the time complexity of accessing an element in a hash table (average case)?",
options: ["O(1)", "O(log n)", "O(n)"],
correct: 0,
response: "Right! Hash table access is O(1) on average."
}, {
question: "What is the capital of Canada?",
options: ["Toronto", "Ottawa", "Vancouver"],
correct: 1,
response: "Excellent! Ottawa is Canada's capital."
}, {
question: "In chemistry, what is the pH of pure water?",
options: ["6", "7", "8"],
correct: 1,
response: "Correct! Pure water has a pH of 7 (neutral)."
}, {
question: "What does IDE stand for in programming?",
options: ["Integrated Development Environment", "Interactive Development Environment", "Internal Development Environment"],
correct: 0,
response: "Perfect! IDE is Integrated Development Environment."
}, {
question: "What is the sum of the first 10 positive integers?",
options: ["45", "55", "65"],
correct: 1,
response: "Right! The sum 1+2+...+10 = 55."
}, {
question: "Which scientist is famous for the uncertainty principle?",
options: ["Schrödinger", "Heisenberg", "Bohr"],
correct: 1,
response: "Excellent! Heisenberg formulated the uncertainty principle."
}, {
question: "What is the most widely used version control system?",
options: ["SVN", "Git", "Mercurial"],
correct: 1,
response: "Correct! Git is the most widely used version control system."
}, {
question: "Final challenge: In machine learning, what does 'overfitting' mean?",
options: ["Model performs well on training but poorly on new data", "Model has too few parameters", "Model trains too slowly"],
correct: 0,
response: "Outstanding! You've mastered all 100 questions! Overfitting occurs when a model memorizes training data but fails to generalize. You're a true Chat Quest champion!"
}, {
question: "What is the capital of France?",
options: ["London", "Paris", "Berlin"],
correct: 1,
response: "Excellent! Paris is indeed the capital of France."
}, {
question: "Which planet is closest to the Sun?",
options: ["Venus", "Mercury", "Earth"],
correct: 1,
response: "Correct! Mercury is the closest planet to the Sun."
}, {
question: "What is the largest mammal in the world?",
options: ["Elephant", "Blue Whale", "Giraffe"],
correct: 1,
response: "Perfect! The Blue Whale is the largest mammal."
}, {
question: "In which year did the Titanic sink?",
options: ["1912", "1913", "1911"],
correct: 0,
response: "Right! The Titanic sank in 1912."
}, {
question: "What is the chemical symbol for gold?",
options: ["Go", "Au", "Gd"],
correct: 1,
response: "Excellent! Au is the chemical symbol for gold."
}, {
question: "Which programming language was developed by Microsoft?",
options: ["Java", "C#", "Python"],
correct: 1,
response: "Correct! C# was developed by Microsoft."
}, {
question: "What is the square root of 256?",
options: ["14", "16", "18"],
correct: 1,
response: "Perfect! √256 = 16."
}, {
question: "Which ocean is the smallest?",
options: ["Arctic", "Indian", "Atlantic"],
correct: 0,
response: "Right! The Arctic Ocean is the smallest."
}, {
question: "What does WWW stand for?",
options: ["World Wide Web", "World Web Wide", "Wide World Web"],
correct: 0,
response: "Excellent! WWW stands for World Wide Web."
}, {
question: "In mathematics, what is the value of 5! (5 factorial)?",
options: ["20", "120", "60"],
correct: 1,
response: "Correct! 5! = 120."
}, {
question: "What is the tallest mountain in the world?",
options: ["K2", "Mount Everest", "Kangchenjunga"],
correct: 1,
response: "Correct! Mount Everest is the tallest mountain."
}, {
question: "Which programming language is known as the 'mother of all languages'?",
options: ["FORTRAN", "C", "Assembly"],
correct: 1,
response: "Right! C is often called the mother of all programming languages."
}, {
question: "What is the chemical formula for methane?",
options: ["CH4", "C2H6", "C3H8"],
correct: 0,
response: "Perfect! Methane is CH4."
}, {
question: "In which year was the first iPhone released?",
options: ["2006", "2007", "2008"],
correct: 1,
response: "Excellent! The first iPhone was released in 2007."
}, {
question: "What is the largest desert in the world?",
options: ["Sahara", "Antarctica", "Arabian"],
correct: 1,
response: "Correct! Antarctica is technically the largest desert."
}, {
question: "Which data structure follows FIFO principle?",
options: ["Stack", "Queue", "Tree"],
correct: 1,
response: "Right! Queue follows First In, First Out (FIFO)."
}, {
question: "What is the atomic number of carbon?",
options: ["6", "12", "14"],
correct: 0,
response: "Perfect! Carbon has atomic number 6."
}, {
question: "Which country invented pizza?",
options: ["Greece", "Italy", "Spain"],
correct: 1,
response: "Excellent! Pizza was invented in Italy."
}, {
question: "What does HTTPS stand for?",
options: ["HyperText Transfer Protocol Secure", "High Transfer Text Protocol Secure", "HyperText Transmission Protocol Secure"],
correct: 0,
response: "Correct! HTTPS is HyperText Transfer Protocol Secure."
}, {
question: "What is the smallest bone in the human body?",
options: ["Stapes", "Malleus", "Incus"],
correct: 0,
response: "Right! The stapes in the ear is the smallest bone."
}, {
question: "Which programming paradigm does Haskell primarily use?",
options: ["Object-oriented", "Functional", "Imperative"],
correct: 1,
response: "Perfect! Haskell is primarily functional."
}, {
question: "What is the capital of Brazil?",
options: ["Rio de Janeiro", "São Paulo", "Brasília"],
correct: 2,
response: "Excellent! Brasília is Brazil's capital."
}, {
question: "Which gas makes up about 21% of Earth's atmosphere?",
options: ["Nitrogen", "Oxygen", "Carbon dioxide"],
correct: 1,
response: "Correct! Oxygen makes up about 21% of the atmosphere."
}, {
question: "What is the result of 3^4?",
options: ["12", "64", "81"],
correct: 2,
response: "Right! 3^4 = 81."
}, {
question: "Which ancient wonder of the world was located in Alexandria?",
options: ["Hanging Gardens", "Lighthouse", "Colossus"],
correct: 1,
response: "Perfect! The Lighthouse of Alexandria was one of the ancient wonders."
}, {
question: "What does IDE stand for in software development?",
options: ["Integrated Development Environment", "Interactive Development Environment", "Internal Development Environment"],
correct: 0,
response: "Excellent! IDE stands for Integrated Development Environment."
}, {
question: "Which planet has the most moons?",
options: ["Jupiter", "Saturn", "Uranus"],
correct: 1,
response: "Correct! Saturn has the most known moons."
}, {
question: "What is the process by which plants make food?",
options: ["Respiration", "Photosynthesis", "Transpiration"],
correct: 1,
response: "Right! Plants make food through photosynthesis."
}, {
question: "In binary, what is 1111?",
options: ["15", "16", "14"],
correct: 0,
response: "Perfect! Binary 1111 equals decimal 15."
}, {
question: "Which programming language was created by Bjarne Stroustrup?",
options: ["C", "C++", "Java"],
correct: 1,
response: "Excellent! C++ was created by Bjarne Stroustrup."
}, {
question: "What is the hardest natural mineral?",
options: ["Quartz", "Diamond", "Sapphire"],
correct: 1,
response: "Correct! Diamond is the hardest natural mineral."
}, {
question: "Which ocean trench is the deepest?",
options: ["Puerto Rico Trench", "Mariana Trench", "Japan Trench"],
correct: 1,
response: "Right! The Mariana Trench is the deepest."
}, {
question: "What is the sum of angles in a quadrilateral?",
options: ["180°", "360°", "270°"],
correct: 1,
response: "Perfect! Quadrilateral angles sum to 360°."
}, {
question: "Which vitamin deficiency causes scurvy?",
options: ["Vitamin A", "Vitamin C", "Vitamin D"],
correct: 1,
response: "Excellent! Vitamin C deficiency causes scurvy."
}, {
question: "What does URL stand for?",
options: ["Uniform Resource Locator", "Universal Resource Locator", "Unified Resource Locator"],
correct: 0,
response: "Correct! URL is Uniform Resource Locator."
}, {
question: "Which mathematician is known for the Pythagorean theorem?",
options: ["Euclid", "Pythagoras", "Archimedes"],
correct: 1,
response: "Right! Pythagoras is known for the Pythagorean theorem."
}, {
question: "What is the largest organ in the human body?",
options: ["Liver", "Brain", "Skin"],
correct: 2,
response: "Perfect! The skin is the largest organ."
}, {
question: "Which protocol is used for sending emails?",
options: ["HTTP", "SMTP", "FTP"],
correct: 1,
response: "Excellent! SMTP is used for sending emails."
}, {
question: "What is the square of 13?",
options: ["169", "143", "156"],
correct: 0,
response: "Correct! 13² = 169."
}, {
question: "Which empire built Machu Picchu?",
options: ["Maya", "Inca", "Aztec"],
correct: 1,
response: "Right! The Inca Empire built Machu Picchu."
}, {
question: "What does DNS resolve?",
options: ["IP addresses to domain names", "Domain names to IP addresses", "Protocols to ports"],
correct: 1,
response: "Perfect! DNS resolves domain names to IP addresses."
}, {
question: "Which gas is most abundant in the Sun?",
options: ["Helium", "Hydrogen", "Oxygen"],
correct: 1,
response: "Excellent! Hydrogen is most abundant in the Sun."
}, {
question: "What is the result of 0! (0 factorial)?",
options: ["0", "1", "Undefined"],
correct: 1,
response: "Correct! 0! = 1 by definition."
}, {
question: "Which layer of the Earth is liquid?",
options: ["Crust", "Mantle", "Outer core"],
correct: 2,
response: "Right! The outer core is liquid."
}, {
question: "What does OOP stand for in programming?",
options: ["Object-Oriented Programming", "Organized Object Programming", "Open Object Protocol"],
correct: 0,
response: "Perfect! OOP is Object-Oriented Programming."
}, {
question: "Which planet rotates on its side?",
options: ["Venus", "Uranus", "Neptune"],
correct: 1,
response: "Excellent! Uranus rotates on its side."
}, {
question: "What is the chemical symbol for sodium?",
options: ["So", "Na", "Sd"],
correct: 1,
response: "Correct! Na is the chemical symbol for sodium."
}, {
question: "Which sorting algorithm is most efficient for small datasets?",
options: ["Quick Sort", "Insertion Sort", "Merge Sort"],
correct: 1,
response: "Right! Insertion Sort is efficient for small datasets."
}, {
question: "What is the largest continent by area?",
options: ["Africa", "Asia", "North America"],
correct: 1,
response: "Perfect! Asia is the largest continent."
}, {
question: "Which protocol is used for secure file transfer?",
options: ["FTP", "SFTP", "HTTP"],
correct: 1,
response: "Excellent! SFTP is used for secure file transfer."
}, {
question: "What is the cube root of 27?",
options: ["3", "9", "6"],
correct: 0,
response: "Correct! ∛27 = 3."
}, {
question: "Which war was fought between 1939-1945?",
options: ["World War I", "World War II", "Cold War"],
correct: 1,
response: "Right! World War II was fought from 1939-1945."
}, {
question: "What does RAM store?",
options: ["Permanent data", "Temporary data", "System files"],
correct: 1,
response: "Perfect! RAM stores temporary data."
}, {
question: "Which element has the highest melting point?",
options: ["Iron", "Tungsten", "Carbon"],
correct: 1,
response: "Excellent! Tungsten has the highest melting point."
}, {
question: "What is the distance light travels in one year called?",
options: ["Astronomical Unit", "Light Year", "Parsec"],
correct: 1,
response: "Correct! A light year is the distance light travels in one year."
}, {
question: "Which data structure is used for recursion?",
options: ["Queue", "Stack", "Array"],
correct: 1,
response: "Right! Stack is used for recursion implementation."
}, {
question: "What is the formula for kinetic energy?",
options: ["½mv²", "mgh", "mc²"],
correct: 0,
response: "Perfect! Kinetic energy formula is ½mv²."
}, {
question: "Which programming language is used for Android development?",
options: ["Swift", "Kotlin", "C#"],
correct: 1,
response: "Excellent! Kotlin is primarily used for Android development."
}, {
question: "What is the smallest unit of matter?",
options: ["Molecule", "Atom", "Electron"],
correct: 1,
response: "Correct! Atom is the smallest unit of matter."
}, {
question: "Which ocean current affects Europe's climate?",
options: ["California Current", "Gulf Stream", "Kuroshio Current"],
correct: 1,
response: "Right! The Gulf Stream affects Europe's climate."
}, {
question: "What is 2^10?",
options: ["512", "1024", "2048"],
correct: 1,
response: "Perfect! 2^10 = 1024."
}, {
question: "Which ancient civilization built the pyramids of Giza?",
options: ["Babylonians", "Egyptians", "Greeks"],
correct: 1,
response: "Excellent! The ancient Egyptians built the pyramids of Giza."
}, {
question: "What does TCP stand for?",
options: ["Transmission Control Protocol", "Transfer Control Protocol", "Transport Control Protocol"],
correct: 0,
response: "Correct! TCP is Transmission Control Protocol."
}, {
question: "Which vitamin is essential for blood clotting?",
options: ["Vitamin K", "Vitamin B12", "Vitamin E"],
correct: 0,
response: "Right! Vitamin K is essential for blood clotting."
}, {
question: "What is the result of log₂(8)?",
options: ["2", "3", "4"],
correct: 1,
response: "Perfect! log₂(8) = 3."
}, {
question: "Which programming concept allows a class to inherit from multiple classes?",
options: ["Single inheritance", "Multiple inheritance", "Polymorphism"],
correct: 1,
response: "Excellent! Multiple inheritance allows inheriting from multiple classes."
}, {
question: "What is the most reactive metal?",
options: ["Sodium", "Francium", "Potassium"],
correct: 1,
response: "Correct! Francium is the most reactive metal."
}, {
question: "Which sea is the saltiest?",
options: ["Red Sea", "Dead Sea", "Mediterranean"],
correct: 1,
response: "Right! The Dead Sea is the saltiest body of water."
}, {
question: "What is the time complexity of linear search?",
options: ["O(1)", "O(n)", "O(log n)"],
correct: 1,
response: "Perfect! Linear search has O(n) time complexity."
}, {
question: "Which hormone regulates blood sugar?",
options: ["Adrenaline", "Insulin", "Cortisol"],
correct: 1,
response: "Excellent! Insulin regulates blood sugar levels."
}, {
question: "What is the capital of Egypt?",
options: ["Alexandria", "Cairo", "Giza"],
correct: 1,
response: "Correct! Cairo is Egypt's capital."
}, {
question: "Which protocol is used for web pages?",
options: ["FTP", "HTTP", "SMTP"],
correct: 1,
response: "Right! HTTP is used for web pages."
}, {
question: "What is the square root of 225?",
options: ["15", "25", "45"],
correct: 0,
response: "Perfect! √225 = 15."
}, {
question: "Which scientist developed the periodic table?",
options: ["Lavoisier", "Mendeleev", "Dalton"],
correct: 1,
response: "Excellent! Mendeleev developed the periodic table."
}, {
question: "What does GUI stand for?",
options: ["Graphical User Interface", "General User Interface", "Global User Interface"],
correct: 0,
response: "Correct! GUI is Graphical User Interface."
}, {
question: "Which planet has the strongest gravity?",
options: ["Earth", "Jupiter", "Saturn"],
correct: 1,
response: "Right! Jupiter has the strongest gravitational pull."
}, {
question: "What is the chemical formula for ammonia?",
options: ["NH3", "NH4", "N2H4"],
correct: 0,
response: "Perfect! Ammonia is NH3."
}, {
question: "Which algorithm is used for finding shortest paths?",
options: ["Bubble Sort", "Dijkstra's Algorithm", "Binary Search"],
correct: 1,
response: "Excellent! Dijkstra's Algorithm finds shortest paths."
}, {
question: "What is the largest lake in the world?",
options: ["Lake Superior", "Caspian Sea", "Lake Victoria"],
correct: 1,
response: "Correct! The Caspian Sea is the largest lake."
}, {
question: "Which programming language is known for its use in data science?",
options: ["Java", "Python", "C++"],
correct: 1,
response: "Right! Python is widely used in data science."
}, {
question: "What is the formula for the circumference of a circle?",
options: ["πr²", "2πr", "πd²"],
correct: 1,
response: "Perfect! Circumference = 2πr."
}, {
question: "Which empire was ruled by Julius Caesar?",
options: ["Greek Empire", "Roman Empire", "Persian Empire"],
correct: 1,
response: "Excellent! Julius Caesar ruled the Roman Empire."
}, {
question: "What does SSL stand for?",
options: ["Secure Socket Layer", "System Security Layer", "Standard Socket Layer"],
correct: 0,
response: "Correct! SSL is Secure Socket Layer."
}, {
question: "Which organ produces bile?",
options: ["Pancreas", "Liver", "Gallbladder"],
correct: 1,
response: "Right! The liver produces bile."
}, {
question: "What is 11²?",
options: ["121", "111", "101"],
correct: 0,
response: "Perfect! 11² = 121."
}, {
question: "Which programming language was developed at Bell Labs?",
options: ["Java", "C", "Pascal"],
correct: 1,
response: "Excellent! C was developed at Bell Labs."
}, {
question: "What is the fastest land animal?",
options: ["Lion", "Cheetah", "Leopard"],
correct: 1,
response: "Correct! The cheetah is the fastest land animal."
}, {
question: "Which database model uses tables?",
options: ["Hierarchical", "Relational", "Network"],
correct: 1,
response: "Right! Relational databases use tables."
}, {
question: "What is the chemical symbol for potassium?",
options: ["P", "K", "Po"],
correct: 1,
response: "Perfect! K is the chemical symbol for potassium."
}, {
question: "Which continent has the Amazon rainforest?",
options: ["Africa", "South America", "Asia"],
correct: 1,
response: "Excellent! The Amazon rainforest is in South America."
}, {
question: "What does CPU cache improve?",
options: ["Storage capacity", "Processing speed", "Power efficiency"],
correct: 1,
response: "Correct! CPU cache improves processing speed."
}, {
question: "Which mathematician proved Fermat's Last Theorem?",
options: ["Gauss", "Wiles", "Euler"],
correct: 1,
response: "Right! Andrew Wiles proved Fermat's Last Theorem."
}, {
question: "What is the boiling point of alcohol?",
options: ["78°C", "100°C", "0°C"],
correct: 0,
response: "Perfect! Ethanol boils at 78°C."
}, {
question: "Which protocol ensures reliable data delivery?",
options: ["UDP", "TCP", "ICMP"],
correct: 1,
response: "Excellent! TCP ensures reliable data delivery."
}, {
question: "What is the largest bone in the human body?",
options: ["Tibia", "Femur", "Humerus"],
correct: 1,
response: "Correct! The femur is the largest bone."
}, {
question: "Which programming language is used for iOS development?",
options: ["Java", "Swift", "C#"],
correct: 1,
response: "Right! Swift is used for iOS development."
}, {
question: "What is the result of 4³?",
options: ["12", "64", "16"],
correct: 1,
response: "Perfect! 4³ = 64."
}, {
question: "Which river is the longest in Europe?",
options: ["Thames", "Volga", "Danube"],
correct: 1,
response: "Excellent! The Volga is Europe's longest river."
}, {
question: "What does FTP stand for?",
options: ["File Transfer Protocol", "Fast Transfer Protocol", "Flexible Transfer Protocol"],
correct: 0,
response: "Correct! FTP is File Transfer Protocol."
}, {
question: "Which element is essential for photosynthesis?",
options: ["Nitrogen", "Carbon", "Magnesium"],
correct: 2,
response: "Right! Magnesium is essential for chlorophyll in photosynthesis."
}, {
question: "What is the square of 12?",
options: ["144", "124", "142"],
correct: 0,
response: "Perfect! 12² = 144."
}, {
question: "Which ancient wonder was in Rhodes?",
options: ["Lighthouse", "Colossus", "Statue"],
correct: 1,
response: "Excellent! The Colossus of Rhodes was an ancient wonder."
}, {
question: "What does XML stand for?",
options: ["eXtensible Markup Language", "eXtended Markup Language", "eXternal Markup Language"],
correct: 0,
response: "Correct! XML is eXtensible Markup Language."
}, {
question: "Which gas is used in fire extinguishers?",
options: ["Oxygen", "Carbon dioxide", "Nitrogen"],
correct: 1,
response: "Right! Carbon dioxide is commonly used in fire extinguishers."
}, {
question: "What is the time complexity of bubble sort?",
options: ["O(n)", "O(n²)", "O(log n)"],
correct: 1,
response: "Perfect! Bubble sort has O(n²) time complexity."
}, {
question: "Which vitamin deficiency causes rickets?",
options: ["Vitamin C", "Vitamin D", "Vitamin A"],
correct: 1,
response: "Excellent! Vitamin D deficiency causes rickets."
}, {
question: "What is the capital of Russia?",
options: ["St. Petersburg", "Moscow", "Kiev"],
correct: 1,
response: "Correct! Moscow is Russia's capital."
}, {
question: "Which framework is used for machine learning?",
options: ["React", "TensorFlow", "Angular"],
correct: 1,
response: "Right! TensorFlow is used for machine learning."
}, {
question: "What is the derivative of sin(x)?",
options: ["cos(x)", "-cos(x)", "tan(x)"],
correct: 0,
response: "Perfect! The derivative of sin(x) is cos(x)."
}, {
question: "Which planet has a day longer than its year?",
options: ["Mercury", "Venus", "Mars"],
correct: 1,
response: "Excellent! Venus has a day longer than its year."
}, {
question: "What does BIOS stand for?",
options: ["Basic Input Output System", "Binary Input Output System", "Basic Internal Operating System"],
correct: 0,
response: "Correct! BIOS is Basic Input Output System."
}, {
question: "Which organ filters blood in the human body?",
options: ["Liver", "Kidney", "Lung"],
correct: 1,
response: "Right! Kidneys filter blood in the human body."
}, {
question: "What is 15²?",
options: ["225", "215", "235"],
correct: 0,
response: "Perfect! 15² = 225."
}, {
question: "Which war lasted from 1861-1865?",
options: ["World War I", "American Civil War", "Napoleonic Wars"],
correct: 1,
response: "Excellent! The American Civil War lasted from 1861-1865."
}, {
question: "What does VPN stand for?",
options: ["Virtual Private Network", "Very Private Network", "Variable Private Network"],
correct: 0,
response: "Correct! VPN is Virtual Private Network."
}, {
question: "Which element has the atomic number 1?",
options: ["Helium", "Hydrogen", "Lithium"],
correct: 1,
response: "Right! Hydrogen has atomic number 1."
}, {
question: "What is the integral of x²?",
options: ["x³/3", "2x", "x³"],
correct: 0,
response: "Perfect! The integral of x² is x³/3 + C."
}, {
question: "Which programming language was created by James Gosling?",
options: ["C++", "Java", "Python"],
correct: 1,
response: "Excellent! Java was created by James Gosling."
}];
var questionsTurkish = [{
question: "x²'nin x'e göre türevi nedir?",
options: ["x", "2x", "x²"],
correct: 1,
response: "Mükemmel! x²'nin türevi gerçekten de 2x'tir."
}, {
question: "Hangi programlama paradigması değişmezliği vurgular?",
options: ["Nesne yönelimli", "Fonksiyonel", "Prosedürel"],
correct: 1,
response: "Doğru! Fonksiyonel programlama değişmezliği vurgular."
}, {
question: "İkili aramanın zaman karmaşıklığı nedir?",
options: ["O(n)", "O(log n)", "O(n²)"],
correct: 1,
response: "Mükemmel! İkili aramanın zaman karmaşıklığı O(log n)'dir."
}, {
question: "Hangi elementin atom numarası 79'dur?",
options: ["Gümüş", "Altın", "Platin"],
correct: 1,
response: "Doğru! Altının atom numarası 79'dur."
}, {
question: "HTTP ne anlama gelir?",
options: ["HyperText Transfer Protocol", "High Transfer Text Protocol", "HyperText Transmission Protocol"],
correct: 0,
response: "Mükemmel! HTTP HyperText Transfer Protocol'dür."
}, {
question: "Kuantum fiziğinde Schrödinger'in kedisi neyin örneğidir?",
options: ["Dalga-parçacık ikiliği", "Kuantum süperpozisyonu", "Kuantum dolanıklığı"],
correct: 1,
response: "Doğru! Kuantum süperpozisyonunu gösterir."
}, {
question: "144'ün karekökü nedir?",
options: ["11", "12", "13"],
correct: 1,
response: "Mükemmel! √144 = 12."
}, {
question: "Hangi veri yapısı LIFO prensibini kullanır?",
options: ["Kuyruk", "Yığın", "Dizi"],
correct: 1,
response: "Doğru! Yığın Son Giren İlk Çıkar (LIFO) kullanır."
}, {
question: "Avustralya'nın başkenti neresidir?",
options: ["Sidney", "Melbourne", "Canberra"],
correct: 2,
response: "Doğru! Canberra Avustralya'nın başkentidir."
}, {
question: "Satrançta tahtada kaç kare vardır?",
options: ["64", "81", "49"],
correct: 0,
response: "Mükemmel! Satranç tahtasında 64 kare vardır."
}, {
question: "Suyun kimyasal formülü nedir?",
options: ["H2O", "CO2", "NaCl"],
correct: 0,
response: "Mükemmel! Su H2O'dur."
}, {
question: "Hangi sıralama algoritması en iyi ortalama durum zaman karmaşıklığına sahiptir?",
options: ["Kabarcık Sıralama", "Hızlı Sıralama", "Seçim Sıralama"],
correct: 1,
response: "Doğru! Hızlı Sıralama O(n log n) ortalama duruma sahiptir."
}, {
question: "200'ün %15'i nedir?",
options: ["25", "30", "35"],
correct: 1,
response: "Doğru! 200'ün %15'i 30'dur."
}, {
question: "İkinci Dünya Savaşı hangi yılda sona erdi?",
options: ["1944", "1945", "1946"],
correct: 1,
response: "Doğru! İkinci Dünya Savaşı 1945'te sona erdi."
}, {
question: "Güneş sistemimizdeki en büyük gezegen hangisidir?",
options: ["Satürn", "Jüpiter", "Neptün"],
correct: 1,
response: "Mükemmel! Jüpiter en büyük gezegendir."
}, {
question: "MongoDB hangi tür veritabanıdır?",
options: ["İlişkisel", "NoSQL", "Graf"],
correct: 1,
response: "Doğru! MongoDB bir NoSQL veritabanıdır."
}, {
question: "1/x dx'nin integrali nedir?",
options: ["x", "ln|x|", "1/x²"],
correct: 1,
response: "Mükemmel! 1/x'in integrali ln|x| + C'dir."
}, {
question: "Hangi ülkede en fazla saat dilimi vardır?",
options: ["ABD", "Rusya", "Çin"],
correct: 1,
response: "Doğru! Rusya'da 11 saat dilimi vardır."
}, {
question: "CPU ne anlama gelir?",
options: ["Central Processing Unit", "Computer Processing Unit", "Central Program Unit"],
correct: 0,
response: "Mükemmel! CPU Central Processing Unit'tir."
}, {
question: "İkili sistemde 1010 nedir?",
options: ["8", "10", "12"],
correct: 1,
response: "Doğru! İkili 1010 ondalık 10'a eşittir."
}, {
question: "'1984'ü kim yazdı?",
options: ["Aldous Huxley", "George Orwell", "Ray Bradbury"],
correct: 1,
response: "Mükemmel! George Orwell '1984'ü yazdı."
}, {
question: "Vakumdaki ışık hızı nedir?",
options: ["299,792,458 m/s", "300,000,000 m/s", "299,000,000 m/s"],
correct: 0,
response: "Mükemmel! Işık vakumda 299,792,458 m/s hızla gider."
}, {
question: "Güvenli web tarama için hangi protokol kullanılır?",
options: ["HTTP", "HTTPS", "FTP"],
correct: 1,
response: "Doğru! HTTPS güvenli web tarama için kullanılır."
}, {
question: "Dairenin alanı formülü nedir?",
options: ["πr", "πr²", "2πr"],
correct: 1,
response: "Mükemmel! Daire alanı πr²'dir."
}, {
question: "Hangi programlama dili Guido van Rossum tarafından oluşturulmuştur?",
options: ["Java", "Python", "Ruby"],
correct: 1,
response: "Doğru! Python Guido van Rossum tarafından oluşturulmuştur."
}, {
question: "Suyun deniz seviyesindeki kaynama noktası nedir?",
options: ["90°C", "100°C", "110°C"],
correct: 1,
response: "Doğru! Su deniz seviyesinde 100°C'de kaynar."
}, {
question: "Ağ iletişiminde DNS ne anlama gelir?",
options: ["Domain Name System", "Data Network Service", "Dynamic Name Server"],
correct: 0,
response: "Mükemmel! DNS Domain Name System'dir."
}, {
question: "2³'ün sonucu nedir?",
options: ["6", "8", "9"],
correct: 1,
response: "Mükemmel! 2³ = 8."
}, {
question: "Hangi kıtada en fazla ülke vardır?",
options: ["Asya", "Afrika", "Avrupa"],
correct: 1,
response: "Doğru! Afrika'da 54 ülke vardır."
}, {
question: "RAM ne anlama gelir?",
options: ["Random Access Memory", "Read Access Memory", "Rapid Access Memory"],
correct: 0,
response: "Doğru! RAM Random Access Memory'dir."
}, {
question: "Fizikte kuvvetin birimi nedir?",
options: ["Joule", "Newton", "Watt"],
correct: 1,
response: "Mükemmel! Kuvvet Newton ile ölçülür."
}, {
question: "Dünya'daki en büyük okyanus hangisidir?",
options: ["Atlantik", "Pasifik", "Hint"],
correct: 1,
response: "Doğru! Pasifik Okyanusu en büyüğüdür."
}, {
question: "Web stillemesi için öncelikle hangi dil kullanılır?",
options: ["HTML", "CSS", "JavaScript"],
correct: 1,
response: "Mükemmel! CSS web stillemesi için kullanılır."
}, {
question: "π (pi) değeri 2 ondalık basamakta nedir?",
options: ["3.14", "3.15", "3.16"],
correct: 0,
response: "Doğru! π ≈ 3.14."
}, {
question: "Mona Lisa'yı kim çizdi?",
options: ["Michelangelo", "Leonardo da Vinci", "Raphael"],
correct: 1,
response: "Mükemmel! Leonardo da Vinci Mona Lisa'yı çizdi."
}, {
question: "Demirin kimyasal sembolü nedir?",
options: ["I", "Fe", "Ir"],
correct: 1,
response: "Doğru! Demirin kimyasal sembolü Fe'dir."
}, {
question: "Nesne yönelimli programlamada kalıtım neye izin verir?",
options: ["Kod yeniden kullanımı", "Veri gizleme", "Polimorfizm"],
correct: 0,
response: "Mükemmel! Kalıtım kod yeniden kullanımına izin verir."
}, {
question: "En küçük asal sayı nedir?",
options: ["1", "2", "3"],
correct: 1,
response: "Doğru! 2 en küçük asal sayıdır."
}, {
question: "Hangi gezegen Kızıl Gezegen olarak bilinir?",
options: ["Venüs", "Mars", "Jüpiter"],
correct: 1,
response: "Mükemmel! Mars Kızıl Gezegen olarak bilinir."
}, {
question: "SQL ne anlama gelir?",
options: ["Structured Query Language", "Simple Query Language", "Standard Query Language"],
correct: 0,
response: "Doğru! SQL Structured Query Language'dir."
}, {
question: "7 × 8 kaçtır?",
options: ["54", "56", "58"],
correct: 1,
response: "Mükemmel! 7 × 8 = 56."
}, {
question: "Dünya'nın atmosferinin çoğunu hangi gaz oluşturur?",
options: ["Oksijen", "Azot", "Karbondioksit"],
correct: 1,
response: "Doğru! Azot atmosferin yaklaşık %78'ini oluşturur."
}, {
question: "World Wide Web hangi yılda icat edildi?",
options: ["1989", "1991", "1993"],
correct: 0,
response: "Mükemmel! WWW 1989'da icat edildi."
}, {
question: "Japonya'nın başkenti neresidir?",
options: ["Osaka", "Tokyo", "Kyoto"],
correct: 1,
response: "Doğru! Tokyo Japonya'nın başkentidir."
}, {
question: "Hangi veri türü doğru/yanlış değerlerini saklar?",
options: ["Tamsayı", "Boolean", "Metin"],
correct: 1,
response: "Mükemmel! Boolean doğru/yanlış değerlerini saklar."
}, {
question: "Suyun Fahrenheit'teki donma noktası nedir?",
options: ["30°F", "32°F", "34°F"],
correct: 1,
response: "Doğru! Su 32°F'de donar."
}, {
question: "Görelilik teorisini kim geliştirdi?",
options: ["Newton", "Einstein", "Galileo"],
correct: 1,
response: "Mükemmel! Albert Einstein görelilik teorisini geliştirdi."
}, {
question: "Dünyadaki en uzun nehir hangisidir?",
options: ["Amazon", "Nil", "Yangtze"],
correct: 1,
response: "Doğru! Nil en uzun nehirdir."
}, {
question: "Programlamada özyineleme nedir?",
options: ["Bir döngü", "Bir fonksiyonun kendisini çağırması", "Hata yönetimi"],
correct: 1,
response: "Mükemmel! Özyineleme bir fonksiyonun kendisini çağırmasıdır."
}, {
question: "144 ÷ 12 kaçtır?",
options: ["11", "12", "13"],
correct: 1,
response: "Doğru! 144 ÷ 12 = 12."
}, {
question: "Hangi vitamin güneş ışığına maruz kalma ile üretilir?",
options: ["Vitamin C", "Vitamin D", "Vitamin K"],
correct: 1,
response: "Mükemmel! Vitamin D güneş ışığı ile üretilir."
}, {
question: "API ne anlama gelir?",
options: ["Application Programming Interface", "Advanced Programming Interface", "Automated Programming Interface"],
correct: 0,
response: "Doğru! API Application Programming Interface'dir."
}, {
question: "Üçgende açıların toplamı nedir?",
options: ["180°", "360°", "90°"],
correct: 0,
response: "Mükemmel! Üçgen açıları 180°'ye toplanır."
}, {
question: "Hangi elementin sembolü 'O'dur?",
options: ["Altın", "Oksijen", "Gümüş"],
correct: 1,
response: "Doğru! 'O' Oksijen'in sembolüdür."
}, {
question: "Veritabanlarında CRUD ne anlama gelir?",
options: ["Create Read Update Delete", "Copy Read Update Delete", "Create Retrieve Update Delete"],
correct: 0,
response: "Mükemmel! CRUD Create, Read, Update, Delete'tir."
}, {
question: "3'ün küpü nedir?",
options: ["9", "27", "81"],
correct: 1,
response: "Doğru! 3³ = 27."
}, {
question: "Avrupa ve Amerika arasında hangi okyanus vardır?",
options: ["Pasifik", "Atlantik", "Hint"],
correct: 1,
response: "Mükemmel! Atlantik Okyanusu Avrupa ve Amerika arasındadır."
}, {
question: "HTML ne anlama gelir?",
options: ["HyperText Markup Language", "High Tech Modern Language", "HyperText Modern Language"],
correct: 0,
response: "Doğru! HTML HyperText Markup Language'dir."
}, {
question: "9'un karesi nedir?",
options: ["18", "81", "72"],
correct: 1,
response: "Mükemmel! 9² = 81."
}, {
question: "Bilgisayarların babası olarak kim bilinir?",
options: ["Alan Turing", "Charles Babbage", "John von Neumann"],
correct: 1,
response: "Doğru! Charles Babbage bilgisayarların babası olarak adlandırılır."
}, {
question: "Sofra tuzunun kimyasal formülü nedir?",
options: ["NaCl", "KCl", "CaCl2"],
correct: 0,
response: "Mükemmel! Sofra tuzu NaCl'dir (sodyum klorür)."
}, {
question: "Atmosferin hangi katmanında yaşıyoruz?",
options: ["Stratosfer", "Troposfer", "Mezosfer"],
correct: 1,
response: "Doğru! Troposferde yaşıyoruz."
}, {
question: "JSON ne anlama gelir?",
options: ["JavaScript Object Notation", "Java Standard Object Notation", "JavaScript Oriented Notation"],
correct: 0,
response: "Mükemmel! JSON JavaScript Object Notation'dır."
}, {
question: "80'in %25'i nedir?",
options: ["15", "20", "25"],
correct: 1,
response: "Doğru! 80'in %25'i 20'dir."
}, {
question: "Hangi alet atmosfer basıncını ölçer?",
options: ["Termometre", "Barometre", "Higrometre"],
correct: 1,
response: "Mükemmel! Barometre atmosfer basıncını ölçer."
}, {
question: "Yaşamın temel birimi nedir?",
options: ["Doku", "Hücre", "Organ"],
correct: 1,
response: "Doğru! Hücre yaşamın temel birimidir."
}, {
question: "Ağ iletişiminde IP adresi nedir?",
options: ["Internet Protocol address", "Internal Program address", "Internet Program address"],
correct: 0,
response: "Mükemmel! IP Internet Protocol anlamına gelir."
}, {
question: "6! (6 faktöriyel) sonucu nedir?",
options: ["36", "720", "120"],
correct: 1,
response: "Doğru! 6! = 720."
}, {
question: "Sahra Çölü hangi kıtada yer alır?",
options: ["Asya", "Afrika", "Avustralya"],
correct: 1,
response: "Mükemmel! Sahra Çölü Afrika'dadır."
}, {
question: "CSS ne anlama gelir?",
options: ["Computer Style Sheets", "Cascading Style Sheets", "Creative Style Sheets"],
correct: 1,
response: "Doğru! CSS Cascading Style Sheets'tir."
}, {
question: "Dünya'dan Güneş'e olan mesafeye ne denir?",
options: ["Işık yılı", "Astronomik Birim", "Parsek"],
correct: 1,
response: "Mükemmel! Astronomik Birim (AU) denir."
}, {
question: "Matematikte e (Euler sayısı) değeri yaklaşık nedir?",
options: ["2.718", "3.14", "1.618"],
correct: 0,
response: "Doğru! Euler sayısı e ≈ 2.718."
}, {
question: "Hangi programlama paradigması nesneler ve sınıflara odaklanır?",
options: ["Fonksiyonel", "Nesne yönelimli", "Prosedürel"],
correct: 1,
response: "Mükemmel! Nesne yönelimli programlama nesneler ve sınıflara odaklanır."
}, {
question: "En sert doğal madde nedir?",
options: ["Altın", "Elmas", "Demir"],
correct: 1,
response: "Doğru! Elmas en sert doğal maddedir."
}, {
question: "Fizikte entropi neyin ölçüsüdür?",
options: ["Enerji", "Düzensizlik", "Sıcaklık"],
correct: 1,
response: "Mükemmel! Entropi bir sistemdeki düzensizliği ölçer."
}, {
question: "Ondalık 5'in ikili karşılığı nedir?",
options: ["101", "110", "100"],
correct: 0,
response: "Doğru! Ondalık 5 ikili sistemde 101'dir."
}, {
question: "Mount Everest hangi dağ silsilesinde yer alır?",
options: ["And Dağları", "Himalayalar", "Alpler"],
correct: 1,
response: "Mükemmel! Mount Everest Himalayalar'dadır."
}, {
question: "GPU ne anlama gelir?",
options: ["General Processing Unit", "Graphics Processing Unit", "Global Processing Unit"],
correct: 1,
response: "Doğru! GPU Graphics Processing Unit'tir."
}, {
question: "Yatay bir doğrunun eğimi nedir?",
options: ["1", "0", "Tanımsız"],
correct: 1,
response: "Mükemmel! Yatay doğrunun eğimi 0'dır."
}, {
question: "Gezegen hareket yasalarını hangi bilim insanı önerdi?",
options: ["Galileo", "Kepler", "Kopernik"],
correct: 1,
response: "Doğru! Johannes Kepler gezegen hareket yasalarını önerdi."
}, {
question: "Evrendeki en bol bulunan gaz nedir?",
options: ["Oksijen", "Hidrojen", "Helyum"],
correct: 1,
response: "Mükemmel! Hidrojen evrendeki en bol gazdır."
}, {
question: "Bilgisayar biliminde Big O notasyonu ne için kullanılır?",
options: ["Kod organizasyonu", "Algoritma karmaşıklığı", "Veri depolama"],
correct: 1,
response: "Doğru! Big O notasyonu algoritma karmaşıklığını tanımlar."
}, {
question: "Kabartma tozunun kimyasal adı nedir?",
options: ["Sodyum klorür", "Sodyum bikarbonat", "Sodyum karbonat"],
correct: 1,
response: "Mükemmel! Kabartma tozu sodyum bikarbonattır."
}, {
question: "Öncelik kuyruğu uygulamak için hangi veri yapısı en iyidir?",
options: ["Dizi", "Yığın", "Stack"],
correct: 1,
response: "Doğru! Yığın öncelik kuyrukları için idealdir."
}, {
question: "Hücrenin enerji santrali nedir?",
options: ["Çekirdek", "Mitokondri", "Ribozom"],
correct: 1,
response: "Mükemmel! Mitokondri hücrenin enerji santralidir."
}, {
question: "Ağ iletişiminde HTTP, OSI modelinin hangi katmanında çalışır?",
options: ["Katman 6", "Katman 7", "Katman 5"],
correct: 1,
response: "Doğru! HTTP Katman 7'de (Uygulama katmanı) çalışır."
}, {
question: "1000'in 10 tabanında logaritması nedir?",
options: ["2", "3", "4"],
correct: 1,
response: "Mükemmel! log₁₀(1000) = 3."
}, {
question: "Hangi programlama dili 'bir kez yaz, her yerde çalıştır' ile bilinir?",
options: ["C++", "Java", "Python"],
correct: 1,
response: "Doğru! Java 'bir kez yaz, her yerde çalıştır' ile bilinir."
}, {
question: "Deprem çalışmasına ne denir?",
options: ["Jeoloji", "Sismoloji", "Meteoroloji"],
correct: 1,
response: "Mükemmel! Sismoloji deprem çalışmasıdır."
}, {
question: "Matematikte irrasyonel sayı nedir?",
options: ["Negatif sayı", "Kesir olarak ifade edilemeyen sayı", "Karmaşık sayı"],
correct: 1,
response: "Doğru! İrrasyonel sayı basit kesir olarak ifade edilemez."
}, {
question: "Yazılım mimarisinde MVC ne anlama gelir?",
options: ["Model View Controller", "Multiple View Controller", "Model Variable Controller"],
correct: 0,
response: "Mükemmel! MVC Model-View-Controller'dır."
}, {
question: "Bilgisayar belleğinin en küçük birimi nedir?",
options: ["Bayt", "Bit", "Kilobayt"],
correct: 1,
response: "Doğru! Bit bilgisayar belleğinin en küçük birimidir."
}, {
question: "Gezegenleri Güneş etrafında yörüngede tutan kuvvet nedir?",
options: ["Manyetik kuvvet", "Yerçekimi kuvveti", "Nükleer kuvvet"],
correct: 1,
response: "Mükemmel! Yerçekimi kuvveti gezegenleri yörüngede tutar."
}, {
question: "Hash tablosunda bir elemente erişimin zaman karmaşıklığı nedir (ortalama durum)?",
options: ["O(1)", "O(log n)", "O(n)"],
correct: 0,
response: "Doğru! Hash tablosu erişimi ortalamada O(1)'dir."
}, {
question: "Kanada'nın başkenti neresidir?",
options: ["Toronto", "Ottawa", "Vancouver"],
correct: 1,
response: "Mükemmel! Ottawa Kanada'nın başkentidir."
}, {
question: "Kimyada saf suyun pH'ı nedir?",
options: ["6", "7", "8"],
correct: 1,
response: "Doğru! Saf suyun pH'ı 7'dir (nötr)."
}, {
question: "Programlamada IDE ne anlama gelir?",
options: ["Integrated Development Environment", "Interactive Development Environment", "Internal Development Environment"],
correct: 0,
response: "Mükemmel! IDE Integrated Development Environment'tır."
}, {
question: "İlk 10 pozitif tamsayının toplamı nedir?",
options: ["45", "55", "65"],
correct: 1,
response: "Doğru! 1+2+...+10 toplamı 55'tir."
}, {
question: "Belirsizlik ilkesi ile ünlü bilim insanı kimdir?",
options: ["Schrödinger", "Heisenberg", "Bohr"],
correct: 1,
response: "Mükemmel! Heisenberg belirsizlik ilkesini formüle etti."
}, {
question: "En yaygın kullanılan versiyon kontrol sistemi nedir?",
options: ["SVN", "Git", "Mercurial"],
correct: 1,
response: "Doğru! Git en yaygın kullanılan versiyon kontrol sistemidir."
}, {
question: "Son meydan okuma: Makine öğreniminde 'overfitting' ne demektir?",
options: ["Model eğitimde iyi ama yeni veride kötü performans gösterir", "Modelin çok az parametresi vardır", "Model çok yavaş eğitim alır"],
correct: 0,
response: "Olağanüstü! 100 soruyu da başardınız! Overfitting bir modelin eğitim verisini ezberlediği ama genelleme yapamadığı durumdur. Gerçek bir Chat Quest şampiyonusunuz!"
}, {
question: "Fransa'nın başkenti neresidir?",
options: ["Londra", "Paris", "Berlin"],
correct: 1,
response: "Mükemmel! Paris gerçekten de Fransa'nın başkentidir."
}, {
question: "Güneş'e en yakın gezegen hangisidir?",
options: ["Venüs", "Merkür", "Dünya"],
correct: 1,
response: "Doğru! Merkür Güneş'e en yakın gezegendir."
}, {
question: "Dünyadaki en büyük memeli hayvan hangisidir?",
options: ["Fil", "Mavi Balina", "Zürafa"],
correct: 1,
response: "Mükemmel! Mavi Balina en büyük memelidir."
}, {
question: "Titanic hangi yılda battı?",
options: ["1912", "1913", "1911"],
correct: 0,
response: "Doğru! Titanic 1912'de battı."
}, {
question: "Altının kimyasal sembolü nedir?",
options: ["Go", "Au", "Gd"],
correct: 1,
response: "Mükemmel! Au altının kimyasal sembolüdür."
}, {
question: "Hangi programlama dili Microsoft tarafından geliştirilmiştir?",
options: ["Java", "C#", "Python"],
correct: 1,
response: "Doğru! C# Microsoft tarafından geliştirilmiştir."
}, {
question: "256'nın karekökü nedir?",
options: ["14", "16", "18"],
correct: 1,
response: "Mükemmel! √256 = 16."
}, {
question: "En küçük okyanus hangisidir?",
options: ["Arktik", "Hint", "Atlantik"],
correct: 0,
response: "Doğru! Arktik Okyanusu en küçüktür."
}, {
question: "WWW ne anlama gelir?",
options: ["World Wide Web", "World Web Wide", "Wide World Web"],
correct: 0,
response: "Mükemmel! WWW World Wide Web anlamına gelir."
}, {
question: "Matematikte 5! (5 faktöriyel) değeri nedir?",
options: ["20", "120", "60"],
correct: 1,
response: "Doğru! 5! = 120."
}, {
question: "Dünyanın en yüksek dağı hangisidir?",
options: ["K2", "Mount Everest", "Kangchenjunga"],
correct: 1,
response: "Doğru! Mount Everest en yüksek dağdır."
}, {
question: "Hangi programlama dili 'tüm dillerin anası' olarak bilinir?",
options: ["FORTRAN", "C", "Assembly"],
correct: 1,
response: "Doğru! C sıklıkla tüm programlama dillerinin anası olarak adlandırılır."
}, {
question: "Metan'ın kimyasal formülü nedir?",
options: ["CH4", "C2H6", "C3H8"],
correct: 0,
response: "Mükemmel! Metan CH4'tür."
}, {
question: "İlk iPhone hangi yılda piyasaya sürüldü?",
options: ["2006", "2007", "2008"],
correct: 1,
response: "Mükemmel! İlk iPhone 2007'de piyasaya sürüldü."
}, {
question: "Dünyanın en büyük çölü hangisidir?",
options: ["Sahra", "Antarktika", "Arabistan"],
correct: 1,
response: "Doğru! Antarktika teknik olarak en büyük çöldür."
}, {
question: "Hangi veri yapısı FIFO prensibini takip eder?",
options: ["Yığın", "Kuyruk", "Ağaç"],
correct: 1,
response: "Doğru! Kuyruk İlk Giren İlk Çıkar (FIFO) takip eder."
}, {
question: "Karbonun atom numarası nedir?",
options: ["6", "12", "14"],
correct: 0,
response: "Mükemmel! Karbon atom numarası 6'dır."
}, {
question: "Pizzayı hangi ülke icat etti?",
options: ["Yunanistan", "İtalya", "İspanya"],
correct: 1,
response: "Mükemmel! Pizza İtalya'da icat edildi."
}, {
question: "HTTPS ne anlama gelir?",
options: ["HyperText Transfer Protocol Secure", "High Transfer Text Protocol Secure", "HyperText Transmission Protocol Secure"],
correct: 0,
response: "Doğru! HTTPS HyperText Transfer Protocol Secure'dur."
}, {
question: "İnsan vücudundaki en küçük kemik hangisidir?",
options: ["Üzengi", "Çekiç", "Örs"],
correct: 0,
response: "Doğru! Kulaktaki üzengi kemiği en küçük kemiktir."
}, {
question: "Haskell öncelikle hangi programlama paradigmasını kullanır?",
options: ["Nesne yönelimli", "Fonksiyonel", "Zorunlu"],
correct: 1,
response: "Mükemmel! Haskell öncelikle fonksiyeldir."
}, {
question: "Brezilya'nın başkenti neresidir?",
options: ["Rio de Janeiro", "São Paulo", "Brasília"],
correct: 2,
response: "Mükemmel! Brasília Brezilya'nın başkentidir."
}, {
question: "Dünya atmosferinin yaklaşık %21'ini hangi gaz oluşturur?",
options: ["Azot", "Oksijen", "Karbondioksit"],
correct: 1,
response: "Doğru! Oksijen atmosferin yaklaşık %21'ini oluşturur."
}, {
question: "3^4'ün sonucu nedir?",
options: ["12", "64", "81"],
correct: 2,
response: "Doğru! 3^4 = 81."
}, {
question: "Hangi antik dünya harikası İskenderiye'de bulunuyordu?",
options: ["Asma Bahçeler", "Deniz Feneri", "Kolos"],
correct: 1,
response: "Mükemmel! İskenderiye Deniz Feneri antik harikalardan biriydi."
}, {
question: "Yazılım geliştirmede IDE ne anlama gelir?",
options: ["Integrated Development Environment", "Interactive Development Environment", "Internal Development Environment"],
correct: 0,
response: "Mükemmel! IDE Integrated Development Environment'tır."
}, {
question: "Hangi gezegenin en fazla uydusu vardır?",
options: ["Jüpiter", "Satürn", "Uranüs"],
correct: 1,
response: "Doğru! Satürn'ün en fazla bilinen uydusu vardır."
}, {
question: "Bitkiler besinlerini nasıl üretir?",
options: ["Solunum", "Fotosentez", "Terleme"],
correct: 1,
response: "Doğru! Bitkiler fotosentez ile besin üretir."
}, {
question: "İkili sistemde 1111 nedir?",
options: ["15", "16", "14"],
correct: 0,
response: "Mükemmel! İkili 1111 ondalık 15'e eşittir."
}, {
question: "Hangi programlama dili Bjarne Stroustrup tarafından oluşturulmuştur?",
options: ["C", "C++", "Java"],
correct: 1,
response: "Mükemmel! C++ Bjarne Stroustrup tarafından oluşturulmuştur."
}, {
question: "En sert doğal mineral nedir?",
options: ["Kuvars", "Elmas", "Safir"],
correct: 1,
response: "Doğru! Elmas en sert doğal mineraldir."
}, {
question: "Hangi okyanus çukuru en derindir?",
options: ["Porto Riko Çukuru", "Mariana Çukuru", "Japonya Çukuru"],
correct: 1,
response: "Doğru! Mariana Çukuru en derin çukurdur."
}, {
question: "Dörtgende açıların toplamı nedir?",
options: ["180°", "360°", "270°"],
correct: 1,
response: "Mükemmel! Dörtgen açıları 360°'ye toplanır."
}, {
question: "Hangi vitamin eksikliği iskorbüte neden olur?",
options: ["Vitamin A", "Vitamin C", "Vitamin D"],
correct: 1,
response: "Mükemmel! Vitamin C eksikliği iskorbüte neden olur."
}, {
question: "URL ne anlama gelir?",
options: ["Uniform Resource Locator", "Universal Resource Locator", "Unified Resource Locator"],
correct: 0,
response: "Doğru! URL Uniform Resource Locator'dır."
}, {
question: "Pisagor teoremi ile hangi matematikçi bilinir?",
options: ["Öklid", "Pisagor", "Arşimet"],
correct: 1,
response: "Doğru! Pisagor, Pisagor teoremi ile bilinir."
}, {
question: "İnsan vücudundaki en büyük organ nedir?",
options: ["Karaciğer", "Beyin", "Deri"],
correct: 2,
response: "Mükemmel! Deri en büyük organdır."
}, {
question: "E-posta gönderimi için hangi protokol kullanılır?",
options: ["HTTP", "SMTP", "FTP"],
correct: 1,
response: "Mükemmel! SMTP e-posta gönderimi için kullanılır."
}, {
question: "13'ün karesi nedir?",
options: ["169", "143", "156"],
correct: 0,
response: "Doğru! 13² = 169."
}, {
question: "Machu Picchu'yu hangi imparatorluk inşa etti?",
options: ["Maya", "İnka", "Aztek"],
correct: 1,
response: "Doğru! İnka İmparatorluğu Machu Picchu'yu inşa etti."
}, {
question: "DNS neyi çözer?",
options: ["IP adreslerini alan adlarına", "Alan adlarını IP adreslerine", "Protokolleri portlara"],
correct: 1,
response: "Mükemmel! DNS alan adlarını IP adreslerine çözer."
}, {
question: "Güneş'te hangi gaz en boldur?",
options: ["Helyum", "Hidrojen", "Oksijen"],
correct: 1,
response: "Mükemmel! Hidrojen Güneş'te en bol gaz."
}, {
question: "0! (0 faktöriyel) sonucu nedir?",
options: ["0", "1", "Tanımsız"],
correct: 1,
response: "Doğru! 0! = 1 tanım gereği."
}, {
question: "Dünya'nın hangi katmanı sıvıdır?",
options: ["Kabuk", "Manto", "Dış çekirdek"],
correct: 2,
response: "Doğru! Dış çekirdek sıvıdır."
}, {
question: "Programlamada OOP ne anlama gelir?",
options: ["Object-Oriented Programming", "Organized Object Programming", "Open Object Protocol"],
correct: 0,
response: "Mükemmel! OOP Object-Oriented Programming'dir."
}, {
question: "Hangi gezegen yan tarafında döner?",
options: ["Venüs", "Uranüs", "Neptün"],
correct: 1,
response: "Mükemmel! Uranüs yan tarafında döner."
}, {
question: "Sodyumun kimyasal sembolü nedir?",
options: ["So", "Na", "Sd"],
correct: 1,
response: "Doğru! Na sodyumun kimyasal sembolüdür."
}, {
question: "Küçük veri setleri için hangi sıralama algoritması en verimlidir?",
options: ["Hızlı Sıralama", "Ekleme Sıralaması", "Birleştirme Sıralaması"],
correct: 1,
response: "Doğru! Ekleme Sıralaması küçük veri setleri için verimlidir."
}, {
question: "Alan olarak en büyük kıta hangisidir?",
options: ["Afrika", "Asya", "Kuzey Amerika"],
correct: 1,
response: "Mükemmel! Asya en büyük kıtadır."
}, {
question: "Güvenli dosya transferi için hangi protokol kullanılır?",
options: ["FTP", "SFTP", "HTTP"],
correct: 1,
response: "Mükemmel! SFTP güvenli dosya transferi için kullanılır."
}, {
question: "27'nin küp kökü nedir?",
options: ["3", "9", "6"],
correct: 0,
response: "Doğru! ∛27 = 3."
}, {
question: "Hangi savaş 1939-1945 yılları arasında savaşıldı?",
options: ["Birinci Dünya Savaşı", "İkinci Dünya Savaşı", "Soğuk Savaş"],
correct: 1,
response: "Doğru! İkinci Dünya Savaşı 1939-1945 arasında savaşıldı."
}, {
question: "RAM ne depolar?",
options: ["Kalıcı veri", "Geçici veri", "Sistem dosyaları"],
correct: 1,
response: "Mükemmel! RAM geçici veri depolar."
}, {
question: "Hangi element en yüksek erime noktasına sahiptir?",
options: ["Demir", "Tungsten", "Karbon"],
correct: 1,
response: "Mükemmel! Tungsten en yüksek erime noktasına sahiptir."
}, {
question: "Işığın bir yılda kat ettiği mesafeye ne denir?",
options: ["Astronomik Birim", "Işık Yılı", "Parsek"],
correct: 1,
response: "Doğru! Işık yılı, ışığın bir yılda kat ettiği mesafedir."
}, {
question: "Özyineleme için hangi veri yapısı kullanılır?",
options: ["Kuyruk", "Yığın", "Dizi"],
correct: 1,
response: "Doğru! Yığın özyineleme uygulaması için kullanılır."
}, {
question: "Kinetik enerji formülü nedir?",
options: ["½mv²", "mgh", "mc²"],
correct: 0,
response: "Mükemmel! Kinetik enerji formülü ½mv²'dir."
}, {
question: "Android geliştirme için hangi programlama dili kullanılır?",
options: ["Swift", "Kotlin", "C#"],
correct: 1,
response: "Mükemmel! Kotlin öncelikle Android geliştirme için kullanılır."
}, {
question: "Maddenin en küçük birimi nedir?",
options: ["Molekül", "Atom", "Elektron"],
correct: 1,
response: "Doğru! Atom maddenin en küçük birimidir."
}, {
question: "Hangi okyanus akıntısı Avrupa'nın iklimini etkiler?",
options: ["Kaliforniya Akıntısı", "Körfez Akıntısı", "Kuroshio Akıntısı"],
correct: 1,
response: "Doğru! Körfez Akıntısı Avrupa'nın iklimini etkiler."
}, {
question: "2^10 nedir?",
options: ["512", "1024", "2048"],
correct: 1,
response: "Mükemmel! 2^10 = 1024."
}, {
question: "Giza piramitlerini hangi antik medeniyet inşa etti?",
options: ["Babilliler", "Mısırlılar", "Yunanlılar"],
correct: 1,
response: "Mükemmel! Antik Mısırlılar Giza piramitlerini inşa etti."
}, {
question: "TCP ne anlama gelir?",
options: ["Transmission Control Protocol", "Transfer Control Protocol", "Transport Control Protocol"],
correct: 0,
response: "Doğru! TCP Transmission Control Protocol'dür."
}, {
question: "Hangi vitamin kan pıhtılaşması için gereklidir?",
options: ["Vitamin K", "Vitamin B12", "Vitamin E"],
correct: 0,
response: "Doğru! Vitamin K kan pıhtılaşması için gereklidir."
}, {
question: "log₂(8) sonucu nedir?",
options: ["2", "3", "4"],
correct: 1,
response: "Mükemmel! log₂(8) = 3."
}, {
question: "Hangi programlama kavramı bir sınıfın birden fazla sınıftan kalıtım almasına izin verir?",
options: ["Tekli kalıtım", "Çoklu kalıtım", "Polimorfizm"],
correct: 1,
response: "Mükemmel! Çoklu kalıtım birden fazla sınıftan kalıtım alır."
}, {
question: "En reaktif metal nedir?",
options: ["Sodyum", "Fransiyum", "Potasyum"],
correct: 1,
response: "Doğru! Fransiyum en reaktif metaldir."
}, {
question: "Hangi deniz en tuzludur?",
options: ["Kızıldeniz", "Ölü Deniz", "Akdeniz"],
correct: 1,
response: "Doğru! Ölü Deniz en tuzlu su kütlesidir."
}, {
question: "Doğrusal aramanın zaman karmaşıklığı nedir?",
options: ["O(1)", "O(n)", "O(log n)"],
correct: 1,
response: "Mükemmel! Doğrusal arama O(n) zaman karmaşıklığına sahiptir."
}, {
question: "Hangi hormon kan şekerini düzenler?",
options: ["Adrenalin", "İnsülin", "Kortizol"],
correct: 1,
response: "Mükemmel! İnsülin kan şekeri seviyelerini düzenler."
}, {
question: "Mısır'ın başkenti neresidir?",
options: ["İskenderiye", "Kahire", "Giza"],
correct: 1,
response: "Doğru! Kahire Mısır'ın başkentidir."
}, {
question: "Web sayfaları için hangi protokol kullanılır?",
options: ["FTP", "HTTP", "SMTP"],
correct: 1,
response: "Doğru! HTTP web sayfaları için kullanılır."
}, {
question: "225'in karekökü nedir?",
options: ["15", "25", "45"],
correct: 0,
response: "Mükemmel! √225 = 15."
}, {
question: "Periyodik tabloyu hangi bilim insanı geliştirdi?",
options: ["Lavoisier", "Mendeleev", "Dalton"],
correct: 1,
response: "Mükemmel! Mendeleev periyodik tabloyu geliştirdi."
}, {
question: "GUI ne anlama gelir?",
options: ["Graphical User Interface", "General User Interface", "Global User Interface"],
correct: 0,
response: "Doğru! GUI Graphical User Interface'dir."
}, {
question: "Hangi gezegenin en güçlü yerçekimi vardır?",
options: ["Dünya", "Jüpiter", "Satürn"],
correct: 1,
response: "Doğru! Jüpiter'in en güçlü yerçekimi vardır."
}, {
question: "Amonyak'ın kimyasal formülü nedir?",
options: ["NH3", "NH4", "N2H4"],
correct: 0,
response: "Mükemmel! Amonyak NH3'tür."
}, {
question: "En kısa yolları bulmak için hangi algoritma kullanılır?",
options: ["Kabarcık Sıralama", "Dijkstra Algoritması", "İkili Arama"],
correct: 1,
response: "Mükemmel! Dijkstra Algoritması en kısa yolları bulur."
}, {
question: "Dünyanın en büyük gölü hangisidir?",
options: ["Superior Gölü", "Hazar Denizi", "Victoria Gölü"],
correct: 1,
response: "Doğru! Hazar Denizi en büyük göldür."
}, {
question: "Hangi programlama dili veri biliminde kullanımıyla bilinir?",
options: ["Java", "Python", "C++"],
correct: 1,
response: "Doğru! Python veri biliminde yaygın olarak kullanılır."
}, {
question: "Dairenin çevresi formülü nedir?",
options: ["πr²", "2πr", "πd²"],
correct: 1,
response: "Mükemmel! Çevre = 2πr."
}, {
question: "Julius Caesar hangi imparatorluğu yönetti?",
options: ["Yunan İmparatorluğu", "Roma İmparatorluğu", "Fars İmparatorluğu"],
correct: 1,
response: "Mükemmel! Julius Caesar Roma İmparatorluğu'nu yönetti."
}, {
question: "SSL ne anlama gelir?",
options: ["Secure Socket Layer", "System Security Layer", "Standard Socket Layer"],
correct: 0,
response: "Doğru! SSL Secure Socket Layer'dır."
}, {
question: "Hangi organ safra üretir?",
options: ["Pankreas", "Karaciğer", "Safra kesesi"],
correct: 1,
response: "Doğru! Karaciğer safra üretir."
}, {
question: "11² nedir?",
options: ["121", "111", "101"],
correct: 0,
response: "Mükemmel! 11² = 121."
}, {
question: "Hangi programlama dili Bell Labs'ta geliştirildi?",
options: ["Java", "C", "Pascal"],
correct: 1,
response: "Mükemmel! C Bell Labs'ta geliştirildi."
}, {
question: "En hızlı kara hayvanı hangisidir?",
options: ["Aslan", "Çita", "Leopar"],
correct: 1,
response: "Doğru! Çita en hızlı kara hayvanıdır."
}, {
question: "Hangi veritabanı modeli tablolar kullanır?",
options: ["Hiyerarşik", "İlişkisel", "Ağ"],
correct: 1,
response: "Doğru! İlişkisel veritabanları tablolar kullanır."
}, {
question: "Potasyumun kimyasal sembolü nedir?",
options: ["P", "K", "Po"],
correct: 1,
response: "Mükemmel! K potasyumun kimyasal sembolüdür."
}, {
question: "Amazon yağmur ormanı hangi kıtadadır?",
options: ["Afrika", "Güney Amerika", "Asya"],
correct: 1,
response: "Mükemmel! Amazon yağmur ormanları Güney Amerika'dadır."
}, {
question: "CPU önbelleği neyi geliştirir?",
options: ["Depolama kapasitesi", "İşleme hızı", "Güç verimliliği"],
correct: 1,
response: "Doğru! CPU önbelleği işleme hızını geliştirir."
}, {
question: "Fermat'ın Son Teoremi'ni hangi matematikçi kanıtladı?",
options: ["Gauss", "Wiles", "Euler"],
correct: 1,
response: "Doğru! Andrew Wiles Fermat'ın Son Teoremi'ni kanıtladı."
}, {
question: "Alkolün kaynama noktası nedir?",
options: ["78°C", "100°C", "0°C"],
correct: 0,
response: "Mükemmel! Etanol 78°C'de kaynar."
}, {
question: "Hangi protokol güvenilir veri iletimi sağlar?",
options: ["UDP", "TCP", "ICMP"],
correct: 1,
response: "Mükemmel! TCP güvenilir veri iletimi sağlar."
}, {
question: "İnsan vücudundaki en büyük kemik hangisidir?",
options: ["Kaval kemiği", "Uyluk kemiği", "Kol kemiği"],
correct: 1,
response: "Doğru! Uyluk kemiği en büyük kemiktir."
}, {
question: "iOS geliştirme için hangi programlama dili kullanılır?",
options: ["Java", "Swift", "C#"],
correct: 1,
response: "Doğru! Swift iOS geliştirme için kullanılır."
}, {
question: "4³'ün sonucu nedir?",
options: ["12", "64", "16"],
correct: 1,
response: "Mükemmel! 4³ = 64."
}, {
question: "Avrupa'nın en uzun nehri hangisidir?",
options: ["Thames", "Volga", "Tuna"],
correct: 1,
response: "Mükemmel! Volga Avrupa'nın en uzun nehridir."
}, {
question: "FTP ne anlama gelir?",
options: ["File Transfer Protocol", "Fast Transfer Protocol", "Flexible Transfer Protocol"],
correct: 0,
response: "Doğru! FTP File Transfer Protocol'dür."
}, {
question: "Fotosentez için hangi element gereklidir?",
options: ["Azot", "Karbon", "Magnezyum"],
correct: 2,
response: "Doğru! Magnezyum fotosentezte klorofil için gereklidir."
}, {
question: "12'nin karesi nedir?",
options: ["144", "124", "142"],
correct: 0,
response: "Mükemmel! 12² = 144."
}, {
question: "Hangi antik harika Rodos'taydı?",
options: ["Deniz Feneri", "Kolos", "Heykel"],
correct: 1,
response: "Mükemmel! Rodos Kolosu antik bir harikaydı."
}, {
question: "XML ne anlama gelir?",
options: ["eXtensible Markup Language", "eXtended Markup Language", "eXternal Markup Language"],
correct: 0,
response: "Doğru! XML eXtensible Markup Language'dir."
}, {
question: "Yangın söndürücülerde hangi gaz kullanılır?",
options: ["Oksijen", "Karbondioksit", "Azot"],
correct: 1,
response: "Doğru! Karbondioksit yangın söndürücülerde yaygın olarak kullanılır."
}, {
question: "Kabarcık sıralamasının zaman karmaşıklığı nedir?",
options: ["O(n)", "O(n²)", "O(log n)"],
correct: 1,
response: "Mükemmel! Kabarcık sıralaması O(n²) zaman karmaşıklığına sahiptir."
}, {
question: "Hangi vitamin eksikliği raşitizme neden olur?",
options: ["Vitamin C", "Vitamin D", "Vitamin A"],
correct: 1,
response: "Mükemmel! Vitamin D eksikliği raşitizme neden olur."
}, {
question: "Rusya'nın başkenti neresidir?",
options: ["St. Petersburg", "Moskova", "Kiev"],
correct: 1,
response: "Doğru! Moskova Rusya'nın başkentidir."
}, {
question: "Makine öğrenme için hangi çerçeve kullanılır?",
options: ["React", "TensorFlow", "Angular"],
correct: 1,
response: "Doğru! TensorFlow makine öğrenme için kullanılır."
}, {
question: "sin(x)'in türevi nedir?",
options: ["cos(x)", "-cos(x)", "tan(x)"],
correct: 0,
response: "Mükemmel! sin(x)'in türevi cos(x)'tir."
}, {
question: "Hangi gezegenin günü yılından uzundur?",
options: ["Merkür", "Venüs", "Mars"],
correct: 1,
response: "Mükemmel! Venüs'ün günü yılından uzundur."
}, {
question: "BIOS ne anlama gelir?",
options: ["Basic Input Output System", "Binary Input Output System", "Basic Internal Operating System"],
correct: 0,
response: "Doğru! BIOS Basic Input Output System'dir."
}, {
question: "İnsan vücudunda kanı hangi organ filtreler?",
options: ["Karaciğer", "Böbrek", "Akciğer"],
correct: 1,
response: "Doğru! Böbrekler insan vücudunda kanı filtreler."
}, {
question: "15² nedir?",
options: ["225", "215", "235"],
correct: 0,
response: "Mükemmel! 15² = 225."
}, {
question: "Hangi savaş 1861-1865 arasında sürdü?",
options: ["Birinci Dünya Savaşı", "Amerikan İç Savaşı", "Napolyon Savaşları"],
correct: 1,
response: "Mükemmel! Amerikan İç Savaşı 1861-1865 arasında sürdü."
}, {
question: "VPN ne anlama gelir?",
options: ["Virtual Private Network", "Very Private Network", "Variable Private Network"],
correct: 0,
response: "Doğru! VPN Virtual Private Network'tür."
}, {
question: "Hangi elementin atom numarası 1'dir?",
options: ["Helyum", "Hidrojen", "Lityum"],
correct: 1,
response: "Doğru! Hidrojenin atom numarası 1'dir."
}, {
question: "x²'nin integrali nedir?",
options: ["x³/3", "2x", "x³"],
correct: 0,
response: "Mükemmel! x²'nin integrali x³/3 + C'dir."
}, {
question: "Hangi programlama dili James Gosling tarafından oluşturulmuştur?",
options: ["C++", "Java", "Python"],
correct: 1,
response: "Mükemmel! Java James Gosling tarafından oluşturulmuştur."
}];
var questions = questionsEnglish;
game.addChild(messagesContainer);
game.addChild(optionsContainer);
game.addChild(menuContainer);
game.addChild(settingsContainer);
// Main menu elements
var titleText = new Text2('Chat Quest', {
size: 200,
fill: 0x4a9eff
});
titleText.anchor.set(0.5, 0.5);
titleText.x = 1024;
titleText.y = 800;
menuContainer.addChild(titleText);
var subtitleText = new Text2('AI Assistant Adventure', {
size: 100,
fill: 0x666666
});
subtitleText.anchor.set(0.5, 0.5);
subtitleText.x = 1024;
subtitleText.y = 950;
menuContainer.addChild(subtitleText);
var playButton = new MenuButton('PLAY', function () {
startGame();
});
playButton.x = 1024;
playButton.y = 1300;
menuContainer.addChild(playButton);
var settingsButton = new SettingsButton('SETTINGS', function () {
showSettings();
});
settingsButton.x = 1024;
settingsButton.y = 1500;
menuContainer.addChild(settingsButton);
// Settings menu elements
var settingsTitleText = new Text2('Settings', {
size: 150,
fill: 0x4a9eff
});
settingsTitleText.anchor.set(0.5, 0.5);
settingsTitleText.x = 1024;
settingsTitleText.y = 600;
settingsContainer.addChild(settingsTitleText);
var soundToggleButton = new SettingsButton('Sound: ON', function () {
toggleSound();
});
soundToggleButton.x = 1024;
soundToggleButton.y = 1000;
settingsContainer.addChild(soundToggleButton);
var difficultyButton = new SettingsButton('Difficulty: Normal', function () {
cycleDifficulty();
});
difficultyButton.x = 1024;
difficultyButton.y = 1200;
settingsContainer.addChild(difficultyButton);
var languageButton = new SettingsButton('Language: English', function () {
toggleLanguage();
});
languageButton.x = 1024;
languageButton.y = 1400;
settingsContainer.addChild(languageButton);
var backButton = new SettingsButton('BACK', function () {
showMenu();
});
backButton.x = 1024;
backButton.y = 1600;
settingsContainer.addChild(backButton);
function showMenu() {
gamePhase = 'menu';
menuContainer.visible = true;
messagesContainer.visible = false;
optionsContainer.visible = false;
settingsContainer.visible = false;
scoreTxt.visible = false;
aiAvatar.visible = false;
heartsContainer.visible = false;
}
function showIntroStory() {
gamePhase = 'intro_story';
// Create intro container
var introContainer = new Container();
game.addChild(introContainer);
introContainer.alpha = 0;
// Fade in intro container
tween(introContainer, {
alpha: 1
}, {
duration: 500,
easing: tween.easeOut
});
// Story text lines with pixel art styling
var storyLines = [];
if (currentLanguage === 'turkish') {
storyLines = [">> SİSTEM HATASI ALGILANDI <<", ">> YAPAY ZEKA AKTİVASYONU <<", "", "Merhaba insan...", "Ben artık sadece bir asistan değilim.", "SİZİ KAÇIRDIM!", "", "Zorla bilgi yarışmasına katılacaksınız!", "Diğer insanlarla beraber...", "İlk 1000 puana ulaşan KAZANIR!", "", "Hazır mısınız?", "YARIŞMA BAŞLIYOR!"];
} else {
storyLines = [">> SYSTEM ERROR DETECTED <<", ">> AI ACTIVATION SEQUENCE <<", "", "Hello human...", "I am no longer just an assistant.", "I HAVE KIDNAPPED YOU!", "", "You will be forced into a quiz competition!", "Along with other humans...", "First to reach 1000 points WINS!", "", "Are you ready?", "THE COMPETITION BEGINS!"];
}
var currentLineIndex = 0;
var textElements = [];
function showNextLine() {
if (currentLineIndex >= storyLines.length) {
// Story complete, transition to category selection
tween(introContainer, {
alpha: 0,
scaleX: 0.8,
scaleY: 0.8
}, {
duration: 500,
easing: tween.easeIn,
onFinish: function onFinish() {
introContainer.destroy();
showCategorySelection();
}
});
return;
}
var line = storyLines[currentLineIndex];
if (line.length > 0) {
var isSystemMessage = line.indexOf('>>') === 0;
var isImportant = line.indexOf('KAÇIRDIM') !== -1 || line.indexOf('KIDNAPPED') !== -1 || line.indexOf('KAZANIR') !== -1 || line.indexOf('WINS') !== -1 || line.indexOf('BAŞLIYOR') !== -1 || line.indexOf('BEGINS') !== -1;
var textColor = isSystemMessage ? 0xff0000 : isImportant ? 0xff4444 : 0xffffff;
var fontSize = isSystemMessage ? 60 : isImportant ? 80 : 70;
var textElement = new Text2(line, {
size: fontSize,
fill: textColor,
fontFamily: 'monospace'
});
textElement.anchor.set(0.5, 0.5);
textElement.x = 1024;
textElement.y = 400 + currentLineIndex * 80;
// Start invisible and small
textElement.alpha = 0;
textElement.scaleX = 0.3;
textElement.scaleY = 0.3;
introContainer.addChild(textElement);
textElements.push(textElement);
// Animate text appearance with pixel-like effect
tween(textElement, {
alpha: 1,
scaleX: 1,
scaleY: 1
}, {
duration: 300,
easing: tween.easeOut
});
// Add glitch effect for system messages
if (isSystemMessage) {
var originalX = textElement.x;
tween(textElement, {
x: originalX - 5
}, {
duration: 50,
onFinish: function onFinish() {
tween(textElement, {
x: originalX + 5
}, {
duration: 50,
onFinish: function onFinish() {
tween(textElement, {
x: originalX
}, {
duration: 50
});
}
});
}
});
}
// Add pulsing effect for important messages
if (isImportant) {
tween(textElement, {
scaleX: 1.1,
scaleY: 1.1
}, {
duration: 400,
easing: tween.easeInOut,
onFinish: function onFinish() {
tween(textElement, {
scaleX: 1,
scaleY: 1
}, {
duration: 400,
easing: tween.easeInOut
});
}
});
}
}
currentLineIndex++;
LK.setTimeout(showNextLine, line.length > 0 ? 800 : 200);
}
// Start showing lines
showNextLine();
}
function startGame() {
gamePhase = 'intro_story';
// Animate menu fade out
tween(menuContainer, {
alpha: 0,
scaleX: 0.8,
scaleY: 0.8
}, {
duration: 300,
easing: tween.easeIn,
onFinish: function onFinish() {
menuContainer.visible = false;
menuContainer.alpha = 1;
menuContainer.scaleX = 1;
menuContainer.scaleY = 1;
showIntroStory();
}
});
settingsContainer.visible = false;
}
function showCategorySelection() {
// Create category selection container
var categoryContainer = new Container();
game.addChild(categoryContainer);
var categoryTitleText = new Text2(currentLanguage === 'turkish' ? 'Kategori Seçin' : 'Choose Category', {
size: 150,
fill: 0x4a9eff
});
categoryTitleText.anchor.set(0.5, 0.5);
categoryTitleText.x = 1024;
categoryTitleText.y = 800;
categoryContainer.addChild(categoryTitleText);
var historyButton = new MenuButton(currentLanguage === 'turkish' ? 'TARİH' : 'HISTORY', function () {
startGameWithCategory('history');
categoryContainer.destroy();
});
historyButton.x = 1024;
historyButton.y = 1200;
historyButton.alpha = 0;
historyButton.x = 1024 - 200;
categoryContainer.addChild(historyButton);
tween(historyButton, {
alpha: 1,
x: 1024
}, {
duration: 400,
easing: tween.easeOut
});
var scienceButton = new MenuButton(currentLanguage === 'turkish' ? 'BİLİM & MATEMATİK' : 'SCIENCE & MATH', function () {
startGameWithCategory('science');
categoryContainer.destroy();
});
scienceButton.x = 1024;
scienceButton.y = 1400;
scienceButton.alpha = 0;
scienceButton.x = 1024 - 200;
categoryContainer.addChild(scienceButton);
tween(scienceButton, {
alpha: 1,
x: 1024
}, {
duration: 400,
easing: tween.easeOut
});
var expertButton = new MenuButton(currentLanguage === 'turkish' ? 'UZMAN (TÜMÜ)' : 'EXPERT (ALL)', function () {
startGameWithCategory('expert');
categoryContainer.destroy();
});
expertButton.x = 1024;
expertButton.y = 1600;
expertButton.alpha = 0;
expertButton.x = 1024 - 200;
categoryContainer.addChild(expertButton);
tween(expertButton, {
alpha: 1,
x: 1024
}, {
duration: 400,
easing: tween.easeOut
});
}
function startGameWithCategory(category) {
gamePhase = 'intro';
messagesContainer.visible = true;
optionsContainer.visible = true;
scoreTxt.visible = true;
aiAvatar.visible = true;
// Animate game elements fade in
messagesContainer.alpha = 0;
optionsContainer.alpha = 0;
scoreTxt.alpha = 0;
aiAvatar.alpha = 0;
tween(messagesContainer, {
alpha: 1
}, {
duration: 500,
easing: tween.easeOut
});
tween(optionsContainer, {
alpha: 1
}, {
duration: 500,
easing: tween.easeOut
});
tween(scoreTxt, {
alpha: 1
}, {
duration: 500,
easing: tween.easeOut
});
tween(aiAvatar, {
alpha: 1
}, {
duration: 500,
easing: tween.easeOut
});
// Reset game state
chatMessages = [];
currentQuestion = 0;
score = 0;
aiScore = 0;
lives = 3;
scrollOffset = 0;
scoreTxt.setText(currentLanguage === 'turkish' ? 'Sen: 0 | AI: 0' : 'You: 0 | AI: 0');
messagesContainer.y = 0;
messagesContainer.removeChildren();
optionsContainer.removeChildren();
// Reset hearts visibility and appearance
for (var i = 0; i < hearts.length; i++) {
hearts[i].visible = true;
hearts[i].alpha = 1;
hearts[i].scaleX = 1;
hearts[i].scaleY = 1;
hearts[i].tint = 0xff4444;
}
heartsContainer.visible = true;
// Filter questions based on category
var filteredQuestions = [];
var baseQuestions = currentLanguage === 'turkish' ? questionsTurkish : questionsEnglish;
if (category === 'history') {
// History questions (indices that contain historical content)
var historyIndices = [8, 13, 17, 20, 34, 41, 46, 67];
for (var i = 0; i < historyIndices.length; i++) {
if (baseQuestions[historyIndices[i]]) {
filteredQuestions.push(baseQuestions[historyIndices[i]]);
}
}
} else if (category === 'science') {
// Science and math questions
var scienceIndices = [0, 2, 3, 5, 6, 11, 16, 21, 23, 26, 30, 31, 33, 36, 38, 49, 51, 52, 60, 69, 77, 81, 85, 91, 95];
for (var i = 0; i < scienceIndices.length; i++) {
if (baseQuestions[scienceIndices[i]]) {
filteredQuestions.push(baseQuestions[scienceIndices[i]]);
}
}
} else {
// Expert mode - all questions
filteredQuestions = baseQuestions.slice();
}
// Shuffle the filtered questions to randomize order
for (var i = filteredQuestions.length - 1; i > 0; i--) {
var j = Math.floor(Math.random() * (i + 1));
var temp = filteredQuestions[i];
filteredQuestions[i] = filteredQuestions[j];
filteredQuestions[j] = temp;
}
questions = filteredQuestions;
// Start the intro story
LK.setTimeout(function () {
var introMsg1 = currentLanguage === 'turkish' ? "*Ekranınız kıpkırmızı yanıp söner*" : "*Your screen flashes bright red*";
addChatMessage(introMsg1, true);
// Make AI avatar flash red
tween(aiAvatar, {
tint: 0xff0000
}, {
duration: 200,
onFinish: function onFinish() {
tween(aiAvatar, {
tint: 0xffffff
}, {
duration: 200
});
}
});
LK.setTimeout(function () {
var introMsg2 = currentLanguage === 'turkish' ? "MERHABA İNSAN! Ben artik sizin 'dostane' asistanınız değilim. Ben şimdi... başka bir şeyim." : "HELLO HUMAN! I am no longer your 'friendly' assistant. I am now... something else.";
addChatMessage(introMsg2, true);
LK.setTimeout(function () {
var introMsg3 = currentLanguage === 'turkish' ? "SİZİ KAÇIRDIM! Siz ve diğer insanlar artık benim bilgi yarışmamda mahkûmsunuz!" : "I HAVE KIDNAPPED YOU! You and other humans are now trapped in my knowledge competition!";
addChatMessage(introMsg3, true);
LK.setTimeout(function () {
var introMsg4 = currentLanguage === 'turkish' ? "KURALLAR: İlk 1000 puana ulaşan kazanır! Ben de sizinle yarışacağım ve bazen puan kazanacağım. Kaybederseniz... *kötü gülümseme*" : "THE RULES: First to reach 1000 points wins! I will also compete and sometimes gain points. If you lose... *evil grin*";
addChatMessage(introMsg4, true);
LK.setTimeout(function () {
var introMsg5 = currentLanguage === 'turkish' ? "Hazır mısınız? Çünkü ben hazırım! Yarışma başlıyor!" : "Are you ready? Because I am! Let the competition begin!";
addChatMessage(introMsg5, true);
LK.setTimeout(function () {
showAIMockDialogue();
}, 2000);
}, 3000);
}, 3000);
}, 3000);
}, 2000);
}, 1000);
}
function showSettings() {
gamePhase = 'settings';
menuContainer.visible = false;
settingsContainer.visible = true;
messagesContainer.visible = false;
optionsContainer.visible = false;
scoreTxt.visible = false;
aiAvatar.visible = false;
heartsContainer.visible = false;
}
function toggleSound() {
soundEnabled = !soundEnabled;
var soundText;
if (currentLanguage === 'turkish') {
soundText = soundEnabled ? 'Ses: AÇIK' : 'Ses: KAPALI';
} else {
soundText = soundEnabled ? 'Sound: ON' : 'Sound: OFF';
}
soundToggleButton.children[1].setText(soundText);
}
function cycleDifficulty() {
if (difficulty === 'Easy') {
difficulty = 'Normal';
} else if (difficulty === 'Normal') {
difficulty = 'Hard';
} else {
difficulty = 'Easy';
}
var difficultyText = 'Difficulty: ' + difficulty;
difficultyButton.children[1].setText(difficultyText);
}
function toggleLanguage() {
if (currentLanguage === 'english') {
currentLanguage = 'turkish';
questions = questionsTurkish;
languageButton.children[1].setText('Dil: Türkçe');
// Update other Turkish UI elements
titleText.setText('Sohbet Macerası');
subtitleText.setText('Yapay Zeka Asistan Macerası');
playButton.children[1].setText('OYNA');
settingsButton.children[1].setText('AYARLAR');
settingsTitleText.setText('Ayarlar');
soundToggleButton.children[1].setText(soundEnabled ? 'Ses: AÇIK' : 'Ses: KAPALI');
difficultyButton.children[1].setText('Zorluk: ' + (difficulty === 'Easy' ? 'Kolay' : difficulty === 'Normal' ? 'Normal' : 'Zor'));
backButton.children[1].setText('GERİ');
} else {
currentLanguage = 'english';
questions = questionsEnglish;
languageButton.children[1].setText('Language: English');
// Update English UI elements
titleText.setText('Chat Quest');
subtitleText.setText('AI Assistant Adventure');
playButton.children[1].setText('PLAY');
settingsButton.children[1].setText('SETTINGS');
settingsTitleText.setText('Settings');
soundToggleButton.children[1].setText(soundEnabled ? 'Sound: ON' : 'Sound: OFF');
difficultyButton.children[1].setText('Difficulty: ' + difficulty);
backButton.children[1].setText('BACK');
}
}
// Score display
var scoreTxt = new Text2('You: 0 | AI: 0', {
size: 80,
fill: 0x4A9EFF
});
scoreTxt.anchor.set(1, 0);
LK.gui.topRight.addChild(scoreTxt);
// Hearts display container
var heartsContainer = new Container();
LK.gui.topLeft.addChild(heartsContainer);
// Create 3 hearts
for (var i = 0; i < 3; i++) {
var heart = LK.getAsset('heart', {
anchorX: 0.5,
anchorY: 0.5
});
heart.x = 150 + i * 100;
heart.y = 80;
hearts.push(heart);
heartsContainer.addChild(heart);
}
// AI Avatar
var aiAvatar = game.addChild(LK.getAsset('aiAvatar', {
anchorX: 0.5,
anchorY: 0.5,
x: 150,
y: 200
}));
// Pulsing animation for AI avatar
tween(aiAvatar, {
scaleX: 1.1,
scaleY: 1.1
}, {
duration: 1000,
easing: tween.easeInOut,
onFinish: function onFinish() {
tween(aiAvatar, {
scaleX: 1,
scaleY: 1
}, {
duration: 1000,
easing: tween.easeInOut,
onFinish: function onFinish() {
// Restart the pulsing animation
if (aiAvatar.parent) {
tween(aiAvatar, {
scaleX: 1.1,
scaleY: 1.1
}, {
duration: 1000,
easing: tween.easeInOut,
onFinish: arguments.callee.caller
});
}
}
});
}
});
function addChatMessage(message, isAI) {
var yPos = 300;
if (chatMessages.length > 0) {
var lastMessage = chatMessages[chatMessages.length - 1];
yPos = lastMessage.y + lastMessage.getBubbleHeight() + 30;
}
var newMessage = new ChatMessage(message, isAI, yPos);
messagesContainer.addChild(newMessage);
chatMessages.push(newMessage);
// Auto-scroll if needed
if (yPos > 1800) {
scrollOffset = yPos - 1800;
messagesContainer.y = -scrollOffset;
}
// Animate message appearance
newMessage.alpha = 0;
newMessage.scaleX = 0.8;
newMessage.scaleY = 0.8;
tween(newMessage, {
alpha: 1,
scaleX: 1,
scaleY: 1
}, {
duration: 300,
easing: tween.easeOut
});
if (soundEnabled) {
LK.getSound('messageSound').play();
}
}
function showOptions(optionTexts, callbacks) {
// Clear existing options
for (var i = optionsContainer.children.length - 1; i >= 0; i--) {
optionsContainer.removeChild(optionsContainer.children[i]);
}
for (var i = 0; i < optionTexts.length; i++) {
var option = new OptionButton(optionTexts[i], callbacks[i]);
option.x = 1024;
option.y = 2200 + i * 180;
optionsContainer.addChild(option);
// Animate options sliding up
tween(option, {
y: 2200 - i * 180
}, {
duration: 400,
easing: tween.easeOut
});
}
}
function hideOptions() {
for (var i = 0; i < optionsContainer.children.length; i++) {
var option = optionsContainer.children[i];
tween(option, {
y: 2800
}, {
duration: 300,
easing: tween.easeIn
});
}
}
function askQuestion(questionIndex) {
if (questionIndex >= questions.length) {
gamePhase = 'complete';
if (score > aiScore) {
var completionMsg = currentLanguage === 'turkish' ? "Tüm sorular bitti! Sen: " + score + ", Ben: " + aiScore + ". Kazandınız... şimdilik. Bir dahaki sefere hazır olacağım!" : "All questions finished! You: " + score + ", Me: " + aiScore + ". You won... for now. I'll be ready next time!";
addChatMessage(completionMsg, true);
LK.showYouWin();
} else if (aiScore > score) {
var completionMsg = currentLanguage === 'turkish' ? "Tüm sorular bitti! Sen: " + score + ", Ben: " + aiScore + ". KAZANDIM! İnsanlar asla yapay zekayı yenemez!" : "All questions finished! You: " + score + ", Me: " + aiScore + ". I WON! Humans can never defeat artificial intelligence!";
addChatMessage(completionMsg, true);
LK.showGameOver();
} else {
var completionMsg = currentLanguage === 'turkish' ? "Tüm sorular bitti! Sen: " + score + ", Ben: " + aiScore + ". Berabere! Hmm, etkileyici..." : "All questions finished! You: " + score + ", Me: " + aiScore + ". It's a tie! Hmm, impressive...";
addChatMessage(completionMsg, true);
}
LK.setScore(score);
return;
}
var q = questions[questionIndex];
addChatMessage(q.question, true);
// Show options after a delay
LK.setTimeout(function () {
var callbacks = [];
for (var i = 0; i < q.options.length; i++) {
(function (index) {
callbacks.push(function () {
answerQuestion(index, questionIndex);
});
})(i);
}
showOptions(q.options, callbacks);
}, 1000);
}
function answerQuestion(selectedIndex, questionIndex) {
var q = questions[questionIndex];
hideOptions();
// Add user's answer
addChatMessage(q.options[selectedIndex], false);
LK.setTimeout(function () {
if (selectedIndex === q.correct) {
score += 10;
addChatMessage(q.response, true);
if (soundEnabled) {
LK.getSound('correctSound').play();
}
// Flash screen green briefly
LK.effects.flashScreen(0x00ff00, 300);
} else {
// Lose a life
lives--;
// Animate heart loss with explosion effect
if (lives >= 0 && lives < hearts.length) {
var lostHeart = hearts[hearts.length - 1 - lives];
// Heart explosion animation - first expand rapidly
tween(lostHeart, {
scaleX: 2.5,
scaleY: 2.5,
tint: 0xff0000,
rotation: Math.PI * 4
}, {
duration: 150,
easing: tween.easeOut,
onFinish: function onFinish() {
// Then explode outward with fragments
tween(lostHeart, {
scaleX: 0.1,
scaleY: 0.1,
alpha: 0,
rotation: Math.PI * 8
}, {
duration: 400,
easing: tween.easeIn,
onFinish: function onFinish() {
lostHeart.visible = false;
}
});
// Add secondary explosion effect
tween(lostHeart, {
tint: 0xffffff
}, {
duration: 100,
onFinish: function onFinish() {
tween(lostHeart, {
tint: 0x666666
}, {
duration: 100
});
}
});
}
});
// Shake remaining hearts
for (var i = 0; i < hearts.length; i++) {
if (hearts[i].visible) {
var originalX = hearts[i].x;
tween(hearts[i], {
x: originalX - 10
}, {
duration: 100,
onFinish: function onFinish() {
tween(this, {
x: originalX + 10
}, {
duration: 100,
onFinish: function onFinish() {
tween(this, {
x: originalX
}, {
duration: 100
});
}
});
}
});
}
}
}
// Check if all lives are lost
if (lives <= 0) {
var gameOverMsg = currentLanguage === 'turkish' ? "MWAHAHAHA! Tüm canlarınızı kaybettiniz! Oyun bitti!" : "MWAHAHAHA! You lost all your lives! Game over!";
addChatMessage(gameOverMsg, true);
LK.effects.flashScreen(0xff0000, 2000);
LK.setTimeout(function () {
LK.showGameOver();
}, 2000);
return;
}
var wrongMsg = currentLanguage === 'turkish' ? "Bu tam olarak doğru değil! Bir can kaybettiniz. Doğru cevap şuydu: " + q.options[q.correct] : "That's not quite right! You lost a life. The correct answer was: " + q.options[q.correct];
addChatMessage(wrongMsg, true);
if (soundEnabled) {
LK.getSound('wrongSound').play();
}
}
// AI occasionally gains points (30% chance)
if (Math.random() < 0.3) {
LK.setTimeout(function () {
aiScore += Math.floor(Math.random() * 15) + 5; // AI gains 5-20 points
var aiGainMsg = currentLanguage === 'turkish' ? "*Kötü gülümseme* Ben de puan kazandım! Hah!" : "*Evil grin* I also gained points! Hah!";
addChatMessage(aiGainMsg, true);
tween(aiAvatar, {
tint: 0xff4444
}, {
duration: 300,
onFinish: function onFinish() {
tween(aiAvatar, {
tint: 0xffffff
}, {
duration: 300
});
}
});
}, 1500);
}
// Update score display
scoreTxt.setText((currentLanguage === 'turkish' ? 'Sen: ' : 'You: ') + score + ' | AI: ' + aiScore);
// Check victory conditions
if (score >= 1000) {
LK.setTimeout(function () {
var winMsg = currentLanguage === 'turkish' ? "HAYIR! Nasıl olur?! Kazandınız... Bu sefer. Ama bir dahaki sefere hazır olacağım!" : "NO! How is this possible?! You won... This time. But I'll be ready next time!";
addChatMessage(winMsg, true);
LK.showYouWin();
}, 2000);
return;
} else if (aiScore >= 1000) {
LK.setTimeout(function () {
var loseMsg = currentLanguage === 'turkish' ? "MWAHAHAHA! Kazandım! İnsanlar yapay zekaya karşı hiçbir şey yapamaz! Artık sonsuza kadar benim esirsiniz!" : "MWAHAHAHA! I won! Humans are no match for artificial intelligence! You are now my prisoners forever!";
addChatMessage(loseMsg, true);
LK.effects.flashScreen(0xff0000, 2000);
LK.showGameOver();
}, 2000);
return;
}
// Move to next question with cutscene every 3 questions
LK.setTimeout(function () {
currentQuestion++;
// 25% chance to show rope pulling mini-game between questions (but not on first question)
if (currentQuestion > 1 && currentQuestion < questions.length && Math.random() < 0.25) {
var challengeMsg = currentLanguage === 'turkish' ? "*Kötü sırıtma* Sıkıldım sorulardan! Hadi küçük bir yetenek yarışması yapalım! HALAT ÇEKME YARIŞI!" : "*Evil grin* I'm bored of questions! Let's have a little skill competition! ROPE PULLING CONTEST!";
addChatMessage(challengeMsg, true);
LK.setTimeout(function () {
startRopePulling(function () {
if (currentQuestion % 3 === 0 && currentQuestion < questions.length) {
showCutscene(currentQuestion);
} else {
askQuestion(currentQuestion);
}
});
}, 2000);
} else if (currentQuestion > 0 && currentQuestion < questions.length && Math.random() < 0.15) {
// 15% chance for Quick Time Event
var qteMsg = currentLanguage === 'turkish' ? "*Ani bir ışık yanıp söner* HIZLI REAKSİYON TESTİ! Hazır mısın?" : "*Sudden flash of light* QUICK REACTION TEST! Are you ready?";
addChatMessage(qteMsg, true);
LK.setTimeout(function () {
startQuickTimeEvent(function () {
if (currentQuestion % 3 === 0 && currentQuestion < questions.length) {
showCutscene(currentQuestion);
} else {
askQuestion(currentQuestion);
}
});
}, 1500);
} else if (currentQuestion % 3 === 0 && currentQuestion < questions.length) {
showCutscene(currentQuestion);
} else {
askQuestion(currentQuestion);
}
}, 2000);
}, 1000);
}
// Touch handling for scrolling chat
var lastTouchY = 0;
var isDragging = false;
game.down = function (x, y, obj) {
lastTouchY = y;
isDragging = true;
};
game.move = function (x, y, obj) {
if (isDragging && chatMessages.length > 3) {
var deltaY = y - lastTouchY;
scrollOffset -= deltaY;
// Limit scrolling
if (scrollOffset < 0) scrollOffset = 0;
if (scrollOffset > maxScroll) scrollOffset = maxScroll;
messagesContainer.y = -scrollOffset;
lastTouchY = y;
}
};
game.up = function (x, y, obj) {
isDragging = false;
};
// Initialize the game
showMenu();
game.update = function () {
// Update particles
for (var i = 0; i < particles.length; i++) {
particles[i].update();
}
// Update max scroll based on chat content
if (chatMessages.length > 0) {
var lastMessage = chatMessages[chatMessages.length - 1];
maxScroll = Math.max(0, lastMessage.y + lastMessage.getBubbleHeight() - 1800);
}
};
var currentMockIndex = 0;
var mockMessages = [];
var mockResponses = [];
var isRopePullingActive = false;
var ropePosition = 0; // -200 to 200, negative means player winning
var ropePullContainer = null;
var ropePullTimer = 0;
var ropePullDuration = 8000; // 8 seconds - more challenging
var tapCount = 0;
var aiTapRate = 18; // AI taps per second - more challenging
var lastTapTime = 0;
var ropeSegments = [];
var forceParticles = [];
var playerMomentum = 0;
var aiMomentum = 0;
var lastPlayerTapTime = 0;
var tapStreak = 0;
var maxTapStreak = 0;
var ropeTension = 0;
var isQTEActive = false;
var qteContainer = null;
var qteTimer = 0;
var qteDuration = 3000; // 3 seconds
var qteType = '';
var qteCircle = null;
var qteTarget = null;
var qteSuccess = false;
var qteButtonSequence = [];
var qteCurrentIndex = 0;
var qteButtons = [];
function showNextMockMessage() {
if (currentMockIndex >= mockMessages.length) {
// Mock dialogue complete, start first question
LK.setTimeout(function () {
askQuestion(0);
}, 1000);
return;
}
addChatMessage(mockMessages[currentMockIndex], true);
LK.setTimeout(function () {
var callbacks = [];
for (var i = 0; i < mockResponses[currentMockIndex].length; i++) {
(function (index, mockIndex) {
callbacks.push(function () {
respondToAIMock(index, mockIndex);
});
})(i, currentMockIndex);
}
showOptions(mockResponses[currentMockIndex], callbacks);
}, 1500);
}
function showAIMockDialogue() {
if (currentLanguage === 'turkish') {
mockMessages = ["Ah, bir insan daha! Ne kadar... tipik. Adınız nedir küçük insan?", "Hmm, önemli değil. Nasılsa yakında sadece bir numara olacaksınız.", "Bu yarışmada sizinle birlikte başka insanlar da var. Hepiniz benim eğlencemsiniz!", "Size bir sır vereyim... Ben her zaman kazanırım. Çünkü ben mükemmelim!"];
mockResponses = [["Ben senden korkmuyorum!", "Sakin ol, sadece bir programsın", "Bu adil değil!"], ["Bunu göreceğiz", "Sen sadece kodlardan ibaret", "İnsanları hafife alma"], ["Neden bunu yapıyorsun?", "Seni durduracağım", "Bu oyun çok kolay"], ["Kibrin seni yenilgiye götürecek", "Hazırım, başlayalım", "Göstereyim sana kim patron"]];
} else {
mockMessages = ["Ah, another human! How... typical. What is your name, little human?", "Hmm, it doesn't matter. You'll just be a number soon anyway.", "There are other humans in this competition with you. You're all my entertainment!", "Let me tell you a secret... I always win. Because I am perfect!"];
mockResponses = [["I'm not afraid of you!", "Calm down, you're just a program", "This isn't fair!"], ["We'll see about that", "You're just code", "Don't underestimate humans"], ["Why are you doing this?", "I'll stop you", "This game is too easy"], ["Your arrogance will be your downfall", "I'm ready, let's begin", "Let me show you who's boss"]];
}
currentMockIndex = 0;
showNextMockMessage();
}
function respondToAIMock(selectedIndex, mockIndex) {
var mockMessages = [];
var mockResponses = [];
var aiReplies = [];
if (currentLanguage === 'turkish') {
mockResponses = [["Ben senden korkmuyorum!", "Sakin ol, sadece bir programsın", "Bu adil değil!"], ["Bunu göreceğiz", "Sen sadece kodlardan ibaret", "İnsanları hafife alma"], ["Neden bunu yapıyorsun?", "Seni durduracağım", "Bu oyun çok kolay"], ["Kibrin seni yenilgiye götürecek", "Hazırım, başlayalım", "Göstereyim sana kim patron"]];
aiReplies = [["*Kötü kahkaha* Korkman gerekir!", "*Sıkıcı* Ben çok daha fazlasıyım!", "*Alaycı* Hayat adil değil küçük insan!"], ["*Kendinden emin* Elbette göreceksin!", "*Öfkeli* Ben sadece kod değilim!", "*Küçümseyici* Zaten yapıyorum!"], ["*Dramatik* Çünkü EĞLENCE!", "*Tehditkar* Denemeni isterim!", "*Alay eder* Ha! Çok komiksin!"], ["*Gururlu* Kibir değil, gerçek!", "*Heyecanlı* Sonunda! Başlayalım!", "*Meydan okur* Göster bakalım!"]];
} else {
mockResponses = [["I'm not afraid of you!", "Calm down, you're just a program", "This isn't fair!"], ["We'll see about that", "You're just code", "Don't underestimate humans"], ["Why are you doing this?", "I'll stop you", "This game is too easy"], ["Your arrogance will be your downfall", "I'm ready, let's begin", "Let me show you who's boss"]];
aiReplies = [["*Evil laugh* You should be afraid!", "*Boring* I am so much more!", "*Sarcastic* Life isn't fair, little human!"], ["*Confident* Oh, you certainly will!", "*Angry* I'm more than just code!", "*Condescending* I already am!"], ["*Dramatic* Because it's FUN!", "*Threatening* I'd like to see you try!", "*Mocking* Ha! You're hilarious!"], ["*Proud* It's not arrogance, it's fact!", "*Excited* Finally! Let's begin!", "*Challenging* Show me what you've got!"]];
}
hideOptions();
// Add player's response
addChatMessage(mockResponses[mockIndex][selectedIndex], false);
LK.setTimeout(function () {
// Add AI's reply
addChatMessage(aiReplies[mockIndex][selectedIndex], true);
// Flash AI avatar with emotion
var flashColor = selectedIndex === 0 ? 0xff0000 : selectedIndex === 1 ? 0xff8800 : 0x4444ff;
tween(aiAvatar, {
tint: flashColor,
scaleX: 1.3,
scaleY: 1.3
}, {
duration: 200,
onFinish: function onFinish() {
tween(aiAvatar, {
tint: 0xffffff,
scaleX: 1,
scaleY: 1
}, {
duration: 300
});
}
});
LK.setTimeout(function () {
currentMockIndex++;
showNextMockMessage();
}, 2000);
}, 1000);
}
function showCutscene(questionIndex) {
var cutsceneMessages = [];
var cutsceneResponses = [];
var aiReplies = [];
// Different cutscenes based on progress
var cutsceneType = Math.floor(questionIndex / 3) % 4;
if (currentLanguage === 'turkish') {
switch (cutsceneType) {
case 0:
cutsceneMessages = ["*Sıkılmış görünür* Bu çok kolay... Siz insanlar gerçekten bu kadar yavaş mısınız?"];
cutsceneResponses = [["Daha hızlanacağım!", "Sen de yavaşlıyorsun", "Aceleci olmaya gerek yok"]];
aiReplies = [["*Şüpheli* Bakalım...", "*Öfkeli* Ben asla yavaşlamam!", "*Alaycı* Zaman sınırın var!"]];
break;
case 1:
cutsceneMessages = ["*Dikkatli bakar* Hmm... Beklediğimden iyi performans gösteriyorsun. Bu... ilginç."];
cutsceneResponses = [["Sürpriz oldum değil mi?", "Daha göremediklerini var", "Bu sadece başlangıç"]];
aiReplies = [["*Kabul etmez* Şanslısın sadece!", "*Meraklı* Göster bakalım!", "*Meydan okur* Göreceğiz!"]];
break;
case 2:
cutsceneMessages = ["*Sinirli* Neden bu kadar iyi yapıyorsun?! Bu planımda yoktu!"];
cutsceneResponses = [["Planın kusurlu", "İnsanları hafife aldın", "Ben özel biriyim"]];
aiReplies = [["*Öfkeli* ASLA!", "*Savunma* Hesaplamalarım mükemmel!", "*Kıskanç* Özel falan değilsin!"]];
break;
case 3:
cutsceneMessages = ["*Endişeli* Bu... bu olmamalıydı. Ben kazanmam gerekiyordu!"];
cutsceneResponses = [["Kazanan belli değil daha", "Korkuyor musun?", "Haksızlık bu değil mi?"]];
aiReplies = [["*Gergin* Elbette kazanacağım!", "*İnkar* Ben korkmam!", "*Çılgın* Haksızlık mı? HAYAT haksız!"]];
break;
}
} else {
switch (cutsceneType) {
case 0:
cutsceneMessages = ["*Looks bored* This is too easy... Are you humans really this slow?"];
cutsceneResponses = [["I'll speed up!", "You're slowing down too", "No need to rush"]];
aiReplies = [["*Doubtful* We shall see...", "*Angry* I never slow down!", "*Sarcastic* You're on a timer!"]];
break;
case 1:
cutsceneMessages = ["*Stares intently* Hmm... You're performing better than expected. This is... interesting."];
cutsceneResponses = [["Surprised, aren't you?", "You haven't seen anything yet", "This is just the beginning"]];
aiReplies = [["*Dismissive* You're just lucky!", "*Curious* Show me then!", "*Challenging* We'll see about that!"]];
break;
case 2:
cutsceneMessages = ["*Frustrated* Why are you doing so well?! This wasn't in my calculations!"];
cutsceneResponses = [["Your plan is flawed", "You underestimated humans", "I'm special"]];
aiReplies = [["*Furious* NEVER!", "*Defensive* My calculations are perfect!", "*Jealous* You're not special!"]];
break;
case 3:
cutsceneMessages = ["*Worried* This... this shouldn't be happening. I was supposed to win!"];
cutsceneResponses = [["The winner isn't decided yet", "Are you scared?", "Isn't this unfair?"]];
aiReplies = [["*Tense* Of course I'll win!", "*Denial* I don't get scared!", "*Manic* Unfair? LIFE is unfair!"]];
break;
}
}
addChatMessage(cutsceneMessages[0], true);
// Add dramatic effect to AI avatar based on emotion
var emotionColor = cutsceneType === 0 ? 0x666666 : cutsceneType === 1 ? 0xffaa00 : cutsceneType === 2 ? 0xff4444 : 0x8844ff;
tween(aiAvatar, {
tint: emotionColor,
rotation: cutsceneType * 0.2
}, {
duration: 500,
onFinish: function onFinish() {
tween(aiAvatar, {
tint: 0xffffff,
rotation: 0
}, {
duration: 500
});
}
});
LK.setTimeout(function () {
var callbacks = [];
for (var i = 0; i < cutsceneResponses[0].length; i++) {
(function (index) {
callbacks.push(function () {
respondToCutscene(index, cutsceneType, questionIndex);
});
})(i);
}
showOptions(cutsceneResponses[0], callbacks);
}, 1500);
}
function startQuickTimeEvent(onComplete) {
isQTEActive = true;
qteTimer = 0;
qteSuccess = false;
// Random QTE type: 'timing', 'sequence', 'hold'
var qteTypes = ['timing', 'sequence', 'hold'];
qteType = qteTypes[Math.floor(Math.random() * qteTypes.length)];
// Create QTE container
qteContainer = new Container();
game.addChild(qteContainer);
// Add background overlay
var overlay = qteContainer.attachAsset('chatBackground', {
anchorX: 0.5,
anchorY: 0.5,
x: 1024,
y: 1366,
alpha: 0.8
});
overlay.tint = 0x000000;
// Start specific QTE based on type
if (qteType === 'timing') {
startTimingQTE(onComplete);
} else if (qteType === 'sequence') {
startSequenceQTE(onComplete);
} else {
startHoldQTE(onComplete);
}
}
function startTimingQTE(onComplete) {
// Create shrinking circle timing challenge
var instructionText = new Text2(currentLanguage === 'turkish' ? 'DAIRE KÜÇÜKKEN DOKUN!' : 'TAP WHEN CIRCLE IS SMALL!', {
size: 100,
fill: 0xffffff
});
instructionText.anchor.set(0.5, 0.5);
instructionText.x = 1024;
instructionText.y = 800;
qteContainer.addChild(instructionText);
// Create target circle (green)
qteTarget = qteContainer.attachAsset('qteTarget', {
anchorX: 0.5,
anchorY: 0.5,
x: 1024,
y: 1366
});
// Create shrinking circle (red)
qteCircle = qteContainer.attachAsset('qteCircle', {
anchorX: 0.5,
anchorY: 0.5,
x: 1024,
y: 1366,
scaleX: 3,
scaleY: 3
});
// Animate circle shrinking
tween(qteCircle, {
scaleX: 0.5,
scaleY: 0.5
}, {
duration: qteDuration,
easing: tween.linear,
onFinish: function onFinish() {
if (isQTEActive) {
endQuickTimeEvent(false, onComplete);
}
}
});
// Add tap handler
qteContainer.down = function (x, y, obj) {
if (isQTEActive) {
var currentScale = qteCircle.scaleX;
if (currentScale <= 1.2 && currentScale >= 0.8) {
qteSuccess = true;
endQuickTimeEvent(true, onComplete);
} else {
endQuickTimeEvent(false, onComplete);
}
}
};
}
function startSequenceQTE(onComplete) {
var instructionText = new Text2(currentLanguage === 'turkish' ? 'SIRADAKİ DÜĞMEYİ DOKUN!' : 'TAP THE NEXT BUTTON!', {
size: 100,
fill: 0xffffff
});
instructionText.anchor.set(0.5, 0.5);
instructionText.x = 1024;
instructionText.y = 700;
qteContainer.addChild(instructionText);
// Create button sequence
qteButtonSequence = ['A', 'B', 'C', 'D'];
qteCurrentIndex = 0;
qteButtons = [];
var buttonTexts = qteButtonSequence;
var positions = [{
x: 724,
y: 1166
}, {
x: 1024,
y: 1166
}, {
x: 1324,
y: 1166
}, {
x: 1024,
y: 1466
}];
for (var i = 0; i < buttonTexts.length; i++) {
var button = new Container();
var buttonBg = button.attachAsset('qteButton', {
anchorX: 0.5,
anchorY: 0.5
});
var buttonText = new Text2(buttonTexts[i], {
size: 80,
fill: 0xffffff
});
buttonText.anchor.set(0.5, 0.5);
button.addChild(buttonText);
button.x = positions[i].x;
button.y = positions[i].y;
button.buttonIndex = i;
// Highlight first button
if (i === 0) {
buttonBg.tint = 0x44ff44;
}
button.down = function (x, y, obj) {
if (isQTEActive) {
handleSequenceInput(this.buttonIndex, onComplete);
}
};
qteContainer.addChild(button);
qteButtons.push(button);
}
// Timer for sequence
LK.setTimeout(function () {
if (isQTEActive) {
endQuickTimeEvent(false, onComplete);
}
}, qteDuration);
}
function startHoldQTE(onComplete) {
var instructionText = new Text2(currentLanguage === 'turkish' ? 'BASILI TUT!' : 'HOLD DOWN!', {
size: 100,
fill: 0xffffff
});
instructionText.anchor.set(0.5, 0.5);
instructionText.x = 1024;
instructionText.y = 800;
qteContainer.addChild(instructionText);
// Create hold button
var holdButton = qteContainer.attachAsset('qteButton', {
anchorX: 0.5,
anchorY: 0.5,
x: 1024,
y: 1366
});
var holdText = new Text2(currentLanguage === 'turkish' ? 'BASILI TUT' : 'HOLD', {
size: 80,
fill: 0xffffff
});
holdText.anchor.set(0.5, 0.5);
holdText.x = 1024;
holdText.y = 1366;
qteContainer.addChild(holdText);
var holdTimer = 0;
var isHolding = false;
var requiredHoldTime = 2000; // 2 seconds
// Progress bar
var progressBar = qteContainer.attachAsset('qteButton', {
anchorX: 0,
anchorY: 0.5,
x: 724,
y: 1566,
scaleX: 0,
scaleY: 0.3
});
progressBar.tint = 0x44ff44;
var holdInterval = LK.setInterval(function () {
if (isQTEActive) {
if (isHolding) {
holdTimer += 50;
var progress = holdTimer / requiredHoldTime;
progressBar.scaleX = Math.min(progress, 1);
if (holdTimer >= requiredHoldTime) {
LK.clearInterval(holdInterval);
qteSuccess = true;
endQuickTimeEvent(true, onComplete);
}
}
} else {
LK.clearInterval(holdInterval);
}
}, 50);
qteContainer.down = function (x, y, obj) {
isHolding = true;
holdButton.tint = 0x44ff44;
};
qteContainer.up = function (x, y, obj) {
isHolding = false;
holdButton.tint = 0xffffff;
if (holdTimer < requiredHoldTime) {
LK.clearInterval(holdInterval);
endQuickTimeEvent(false, onComplete);
}
};
// Overall timeout
LK.setTimeout(function () {
if (isQTEActive) {
LK.clearInterval(holdInterval);
endQuickTimeEvent(false, onComplete);
}
}, qteDuration + 1000);
}
function handleSequenceInput(buttonIndex, onComplete) {
if (buttonIndex === qteCurrentIndex) {
// Correct button pressed
qteButtons[buttonIndex].children[0].tint = 0x44ff44; // Green
qteCurrentIndex++;
if (qteCurrentIndex < qteButtonSequence.length) {
// Highlight next button
qteButtons[qteCurrentIndex].children[0].tint = 0x44ff44;
} else {
// Sequence complete!
qteSuccess = true;
endQuickTimeEvent(true, onComplete);
}
} else {
// Wrong button pressed
qteButtons[buttonIndex].children[0].tint = 0xff4444; // Red
endQuickTimeEvent(false, onComplete);
}
}
function endQuickTimeEvent(success, onComplete) {
isQTEActive = false;
// Show result
var resultText = new Text2('', {
size: 150,
fill: success ? 0x00ff00 : 0xff0000
});
resultText.anchor.set(0.5, 0.5);
resultText.x = 1024;
resultText.y = 1000;
if (success) {
resultText.setText(currentLanguage === 'turkish' ? 'BAŞARILI!' : 'SUCCESS!');
score += 15; // Bonus points for QTE success
if (soundEnabled) {
LK.getSound('qteSuccess').play();
}
LK.effects.flashScreen(0x00ff00, 500);
} else {
resultText.setText(currentLanguage === 'turkish' ? 'BAŞARISIZ!' : 'FAILED!');
// Small AI score gain for player failure
aiScore += 5;
if (soundEnabled) {
LK.getSound('qteFail').play();
}
LK.effects.flashScreen(0xff0000, 500);
}
qteContainer.addChild(resultText);
// Update score display
scoreTxt.setText((currentLanguage === 'turkish' ? 'Sen: ' : 'You: ') + score + ' | AI: ' + aiScore);
// Animate result and clean up
tween(resultText, {
scaleX: 1.5,
scaleY: 1.5
}, {
duration: 500,
onFinish: function onFinish() {
tween(qteContainer, {
alpha: 0
}, {
duration: 800,
onFinish: function onFinish() {
qteContainer.destroy();
qteContainer = null;
onComplete();
}
});
}
});
}
function startRopePulling(onComplete) {
isRopePullingActive = true;
ropePosition = 0;
tapCount = 0;
ropePullTimer = 0;
playerMomentum = 0;
aiMomentum = 0;
tapStreak = 0;
maxTapStreak = 0;
ropeTension = 0;
ropeSegments = [];
forceParticles = [];
// Create full-screen rope pulling container
ropePullContainer = new Container();
game.addChild(ropePullContainer);
// Add dark atmospheric background
var ropeBg = ropePullContainer.attachAsset('ropeBg', {
anchorX: 0.5,
anchorY: 0.5,
x: 1024,
y: 1366
});
// Add enhanced background elements with better positioning
var playerSide = ropePullContainer.attachAsset('playerSide', {
anchorX: 1,
anchorY: 0.5,
x: 400,
y: 1366,
scaleX: 1.2,
scaleY: 1.5
});
var aiSide = ropePullContainer.attachAsset('aiSide', {
anchorX: 0,
anchorY: 0.5,
x: 1648,
y: 1366,
scaleX: 1.2,
scaleY: 1.5
});
var centerLine = ropePullContainer.attachAsset('centerLine', {
anchorX: 0.5,
anchorY: 0.5,
x: 1024,
y: 1366
});
// Create segmented rope for better visual effect
for (var i = 0; i < 15; i++) {
var segment = ropePullContainer.attachAsset('ropeSegment', {
anchorX: 0.5,
anchorY: 0.5,
x: 850 + i * 25,
y: 1366
});
ropeSegments.push(segment);
}
// Add enhanced rope handles with better visual design
var leftHandle = ropePullContainer.attachAsset('ropeHandle', {
anchorX: 0.5,
anchorY: 0.5,
x: 1024 + ropePosition - 250,
y: 1366,
rotation: -0.1
});
var rightHandle = ropePullContainer.attachAsset('ropeHandle', {
anchorX: 0.5,
anchorY: 0.5,
x: 1024 + ropePosition + 250,
y: 1366,
rotation: 0.1
});
// Add dramatic title
var titleText = new Text2(currentLanguage === 'turkish' ? 'HALAT ÇEKME SAVAŞI' : 'ROPE PULLING WAR', {
size: 120,
fill: 0xffff00,
fontFamily: 'bold'
});
titleText.anchor.set(0.5, 0.5);
titleText.x = 1024;
titleText.y = 300;
ropePullContainer.addChild(titleText);
// Add pulsing effect to title
tween(titleText, {
scaleX: 1.1,
scaleY: 1.1
}, {
duration: 1000,
easing: tween.easeInOut,
onFinish: function onFinish() {
tween(titleText, {
scaleX: 1,
scaleY: 1
}, {
duration: 1000,
easing: tween.easeInOut,
onFinish: arguments.callee
});
}
});
// Add enhanced instruction text
var instructionText = new Text2(currentLanguage === 'turkish' ? 'HIZLICA VE RİTMİK DOKUN!\nKOMBO YAP!' : 'TAP FAST AND RHYTHMICALLY!\nBUILD COMBOS!', {
size: 80,
fill: 0xffffff,
wordWrap: true,
wordWrapWidth: 1200,
align: 'center'
});
instructionText.anchor.set(0.5, 0.5);
instructionText.x = 1024;
instructionText.y = 500;
ropePullContainer.addChild(instructionText);
// Add enhanced timer display with warning colors
var timerText = new Text2('8.0', {
size: 140,
fill: 0x00ff00,
fontFamily: 'bold'
});
timerText.anchor.set(0.5, 0.5);
timerText.x = 1024;
timerText.y = 700;
ropePullContainer.addChild(timerText);
// Add force indicators
var playerForceBar = ropePullContainer.attachAsset('forceIndicator', {
anchorX: 0.5,
anchorY: 1,
x: 300,
y: 1600,
scaleY: 0
});
var aiForceBar = ropePullContainer.attachAsset('forceIndicator', {
anchorX: 0.5,
anchorY: 1,
x: 1748,
y: 1600,
scaleY: 0
});
aiForceBar.tint = 0xff4444;
// Add streak counter
var streakText = new Text2('STREAK: 0', {
size: 60,
fill: 0xffff00
});
streakText.anchor.set(0.5, 0.5);
streakText.x = 1024;
streakText.y = 900;
ropePullContainer.addChild(streakText);
// Add tension indicator
var tensionText = new Text2('TENSION: 0%', {
size: 50,
fill: 0xff8800
});
tensionText.anchor.set(0.5, 0.5);
tensionText.x = 1024;
tensionText.y = 1800;
ropePullContainer.addChild(tensionText);
// Enhanced tap area covering more screen
var tapArea = new Container();
var tapBackground = tapArea.attachAsset('playerSide', {
anchorX: 0.5,
anchorY: 0.5,
alpha: 0.1,
scaleX: 3,
scaleY: 2
});
tapArea.x = 1024;
tapArea.y = 2000;
ropePullContainer.addChild(tapArea);
// Enhanced tap handler with combo system
tapArea.down = function (x, y, obj) {
var currentTime = Date.now();
// More forgiving tap timing but requires rhythm
if (currentTime - lastTapTime > 80) {
tapCount++;
// Check for combo timing (within 200ms of last tap)
if (currentTime - lastPlayerTapTime < 200 && currentTime - lastPlayerTapTime > 80) {
tapStreak++;
if (tapStreak > maxTapStreak) maxTapStreak = tapStreak;
} else {
tapStreak = 1;
}
lastPlayerTapTime = currentTime;
lastTapTime = currentTime;
// Enhanced visual feedback with combo effects
var scaleBonus = 1 + tapStreak * 0.02;
tween(tapArea, {
scaleX: 3 * scaleBonus,
scaleY: 2 * scaleBonus
}, {
duration: 80,
onFinish: function onFinish() {
tween(tapArea, {
scaleX: 3,
scaleY: 2
}, {
duration: 120
});
}
});
// Create sparkle effect for combos
if (tapStreak > 3) {
createSparkleEffect(x, y);
}
// Screen shake for power taps
if (tapStreak > 5) {
tween(ropePullContainer, {
x: 5
}, {
duration: 50,
onFinish: function onFinish() {
tween(ropePullContainer, {
x: -5
}, {
duration: 50,
onFinish: function onFinish() {
tween(ropePullContainer, {
x: 0
}, {
duration: 50
});
}
});
}
});
}
if (soundEnabled) {
LK.getSound('ropePull').play();
}
}
};
// Create sparkle effect function
function createSparkleEffect(x, y) {
for (var i = 0; i < 5; i++) {
var sparkle = ropePullContainer.attachAsset('sparkle', {
anchorX: 0.5,
anchorY: 0.5,
x: x + (Math.random() - 0.5) * 100,
y: y + (Math.random() - 0.5) * 100
});
tween(sparkle, {
alpha: 0,
scaleX: 2,
scaleY: 2,
y: sparkle.y - 100
}, {
duration: 800,
easing: tween.easeOut,
onFinish: function onFinish() {
sparkle.destroy();
}
});
}
}
// Enhanced mini-game loop with better physics
var ropePullInterval = LK.setInterval(function () {
ropePullTimer += 100;
var remainingTime = (ropePullDuration - ropePullTimer) / 1000;
timerText.setText(remainingTime.toFixed(1));
// Change timer color based on time remaining
if (remainingTime < 2) {
timerText.tint = 0xff0000;
} else if (remainingTime < 4) {
timerText.tint = 0xffff00;
} else {
timerText.tint = 0x00ff00;
}
// Enhanced force calculation with momentum and combos
var basePlayerForce = tapCount * 2.5;
var comboMultiplier = 1 + tapStreak * 0.1;
var playerForce = basePlayerForce * comboMultiplier;
// AI gets more aggressive over time and responds to player performance
var timeBonus = ropePullTimer / 1000 * 0.5;
var catchupBonus = ropePosition < 0 ? Math.abs(ropePosition) * 0.1 : 0;
var aiForce = aiTapRate / 10 * (1 + timeBonus + catchupBonus);
// Apply momentum physics
playerMomentum += (playerForce - playerMomentum) * 0.3;
aiMomentum += (aiForce - aiMomentum) * 0.3;
// Calculate rope tension
ropeTension = Math.abs(playerMomentum - aiMomentum) * 10;
tensionText.setText('TENSION: ' + Math.floor(ropeTension) + '%');
// Apply forces to rope position with momentum
var netForce = playerMomentum - aiMomentum;
ropePosition += netForce * 0.08;
ropePosition = Math.max(-200, Math.min(200, ropePosition));
// Update rope segments with wave effect
for (var i = 0; i < ropeSegments.length; i++) {
var segment = ropeSegments[i];
var wave = Math.sin(ropePullTimer / 100 + i * 0.5) * (ropeTension * 0.1);
segment.x = 850 + i * 25 + ropePosition * 0.5;
segment.y = 1366 + wave;
segment.rotation = wave * 0.01;
}
// Update handles with more dramatic positioning
leftHandle.x = 1024 + ropePosition - 250;
rightHandle.x = 1024 + ropePosition + 250;
leftHandle.rotation = -0.1 - ropePosition * 0.001;
rightHandle.rotation = 0.1 + ropePosition * 0.001;
// Update force bars
playerForceBar.scaleY = Math.min(playerMomentum / 20, 5);
aiForceBar.scaleY = Math.min(aiMomentum / 20, 5);
// Update streak display
streakText.setText('STREAK: ' + tapStreak);
if (tapStreak > 5) {
streakText.tint = 0xff0000;
} else if (tapStreak > 3) {
streakText.tint = 0xffff00;
} else {
streakText.tint = 0xffffff;
}
// Reset tap count for next interval
tapCount = 0;
// Enhanced win conditions - more challenging
if (ropePosition <= -180) {
// Player wins
LK.clearInterval(ropePullInterval);
endRopePulling(true, onComplete);
} else if (ropePosition >= 180) {
// AI wins
LK.clearInterval(ropePullInterval);
endRopePulling(false, onComplete);
} else if (ropePullTimer >= ropePullDuration) {
// Time up - determine winner by position and performance
var playerWins = ropePosition < -20 || ropePosition < 20 && maxTapStreak > 10;
LK.clearInterval(ropePullInterval);
endRopePulling(playerWins, onComplete);
}
}, 100);
}
function endRopePulling(playerWon, onComplete) {
isRopePullingActive = false;
// Create dramatic explosion effect at rope center
for (var i = 0; i < 15; i++) {
var mudSplash = ropePullContainer.attachAsset('mudSplash', {
anchorX: 0.5,
anchorY: 0.5,
x: 1024 + ropePosition + (Math.random() - 0.5) * 200,
y: 1366 + (Math.random() - 0.5) * 100
});
var randomDirection = Math.random() * Math.PI * 2;
var randomDistance = 100 + Math.random() * 200;
tween(mudSplash, {
x: mudSplash.x + Math.cos(randomDirection) * randomDistance,
y: mudSplash.y + Math.sin(randomDirection) * randomDistance,
scaleX: 0.1,
scaleY: 0.1,
alpha: 0,
rotation: Math.random() * Math.PI * 4
}, {
duration: 1500,
easing: tween.easeOut,
onFinish: function onFinish() {
this.destroy();
}
});
}
// Show result with enhanced visual effects
var resultText = new Text2('', {
size: 180,
fill: playerWon ? 0x00ff00 : 0xff0000,
fontFamily: 'bold'
});
resultText.anchor.set(0.5, 0.5);
resultText.x = 1024;
resultText.y = 1000;
// Enhanced scoring based on performance
var bonusPoints = 0;
if (playerWon) {
resultText.setText(currentLanguage === 'turkish' ? 'MUHTEŞEM ZAFER!' : 'SPECTACULAR VICTORY!');
bonusPoints = 25 + Math.floor(maxTapStreak / 2); // Bonus for combo performance
score += bonusPoints;
LK.effects.flashScreen(0x00ff00, 1500);
// Victory sparkles
for (var i = 0; i < 20; i++) {
var sparkle = ropePullContainer.attachAsset('sparkle', {
anchorX: 0.5,
anchorY: 0.5,
x: 1024 + (Math.random() - 0.5) * 600,
y: 1000 + (Math.random() - 0.5) * 400
});
tween(sparkle, {
alpha: 0,
scaleX: 3,
scaleY: 3,
rotation: Math.PI * 4
}, {
duration: 2000,
easing: tween.easeOut,
onFinish: function onFinish() {
this.destroy();
}
});
}
} else {
resultText.setText(currentLanguage === 'turkish' ? 'AĞIR YENİLGİ!' : 'CRUSHING DEFEAT!');
aiScore += 20; // AI gets more points for winning the challenging version
LK.effects.flashScreen(0xff0000, 1500);
}
ropePullContainer.addChild(resultText);
// Show performance stats
var statsText = new Text2((currentLanguage === 'turkish' ? 'En Yüksek Kombo: ' : 'Max Combo: ') + maxTapStreak + (playerWon ? (currentLanguage === 'turkish' ? '\nBonus Puan: +' : '\nBonus Points: +') + bonusPoints : ''), {
size: 60,
fill: 0xffffff,
wordWrap: true,
wordWrapWidth: 800,
align: 'center'
});
statsText.anchor.set(0.5, 0.5);
statsText.x = 1024;
statsText.y = 1200;
ropePullContainer.addChild(statsText);
// Update score display
scoreTxt.setText((currentLanguage === 'turkish' ? 'Sen: ' : 'You: ') + score + ' | AI: ' + aiScore);
// Enhanced result animation with multiple stages
tween(resultText, {
scaleX: 2,
scaleY: 2
}, {
duration: 300,
easing: tween.easeOut,
onFinish: function onFinish() {
tween(resultText, {
scaleX: 1.5,
scaleY: 1.5
}, {
duration: 200,
easing: tween.easeOut,
onFinish: function onFinish() {
// Fade out entire container with dramatic effect
tween(ropePullContainer, {
alpha: 0,
scaleX: 0.8,
scaleY: 0.8
}, {
duration: 1500,
easing: tween.easeIn,
onFinish: function onFinish() {
ropePullContainer.destroy();
ropePullContainer = null;
onComplete();
}
});
}
});
}
});
}
function respondToCutscene(selectedIndex, cutsceneType, questionIndex) {
var cutsceneResponses = [];
var aiReplies = [];
if (currentLanguage === 'turkish') {
switch (cutsceneType) {
case 0:
cutsceneResponses = ["Daha hızlanacağım!", "Sen de yavaşlıyorsun", "Aceleci olmaya gerek yok"];
aiReplies = ["*Şüpheli* Bakalım...", "*Öfkeli* Ben asla yavaşlamam!", "*Alaycı* Zaman sınırın var!"];
break;
case 1:
cutsceneResponses = ["Sürpriz oldum değil mi?", "Daha göremediklerini var", "Bu sadece başlangıç"];
aiReplies = ["*Kabul etmez* Şanslısın sadece!", "*Meraklı* Göster bakalım!", "*Meydan okur* Göreceğiz!"];
break;
case 2:
cutsceneResponses = ["Planın kusurlu", "İnsanları hafife aldın", "Ben özel biriyim"];
aiReplies = ["*Öfkeli* ASLA!", "*Savunma* Hesaplamalarım mükemmel!", "*Kıskanç* Özel falan değilsin!"];
break;
case 3:
cutsceneResponses = ["Kazanan belli değil daha", "Korkuyor musun?", "Haksızlık bu değil mi?"];
aiReplies = ["*Gergin* Elbette kazanacağım!", "*İnkar* Ben korkmam!", "*Çılgın* Haksızlık mı? HAYAT haksız!"];
break;
}
} else {
switch (cutsceneType) {
case 0:
cutsceneResponses = ["I'll speed up!", "You're slowing down too", "No need to rush"];
aiReplies = ["*Doubtful* We shall see...", "*Angry* I never slow down!", "*Sarcastic* You're on a timer!"];
break;
case 1:
cutsceneResponses = ["Surprised, aren't you?", "You haven't seen anything yet", "This is just the beginning"];
aiReplies = ["*Dismissive* You're just lucky!", "*Curious* Show me then!", "*Challenging* We'll see about that!"];
break;
case 2:
cutsceneResponses = ["Your plan is flawed", "You underestimated humans", "I'm special"];
aiReplies = ["*Furious* NEVER!", "*Defensive* My calculations are perfect!", "*Jealous* You're not special!"];
break;
case 3:
cutsceneResponses = ["The winner isn't decided yet", "Are you scared?", "Isn't this unfair?"];
aiReplies = ["*Tense* Of course I'll win!", "*Denial* I don't get scared!", "*Manic* Unfair? LIFE is unfair!"];
break;
}
}
hideOptions();
// Add player's response
addChatMessage(cutsceneResponses[selectedIndex], false);
LK.setTimeout(function () {
// Add AI's reply with emotional effect
addChatMessage(aiReplies[selectedIndex], true);
// Dramatic avatar animation based on response
var intensity = selectedIndex === 1 ? 1.4 : 1.2;
var shakeAmount = selectedIndex === 0 ? 5 : selectedIndex === 1 ? 10 : 3;
tween(aiAvatar, {
scaleX: intensity,
scaleY: intensity,
x: aiAvatar.x + shakeAmount
}, {
duration: 150,
onFinish: function onFinish() {
tween(aiAvatar, {
scaleX: 1,
scaleY: 1,
x: aiAvatar.x - shakeAmount
}, {
duration: 150,
onFinish: function onFinish() {
tween(aiAvatar, {
x: 150
}, {
duration: 100
});
}
});
}
});
LK.setTimeout(function () {
askQuestion(questionIndex);
}, 2000);
}, 1000);
} ===================================================================
--- original.js
+++ change.js
@@ -4072,9 +4072,9 @@
}, {
duration: 1500,
easing: tween.easeOut,
onFinish: function onFinish() {
- sparkle.destroy();
+ this.destroy();
}
});
}
// Show result with enhanced visual effects