250 lines
8.7 KiB
HTML
250 lines
8.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
|
|
<title>🐝 Burton Method - LSAT Learning Games</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 20px;
|
|
}
|
|
h1 {
|
|
color: white;
|
|
margin-bottom: 10px;
|
|
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
|
|
font-size: clamp(1.5rem, 5vw, 2rem);
|
|
}
|
|
.subtitle {
|
|
color: rgba(255,255,255,0.9);
|
|
margin-bottom: 20px;
|
|
font-size: clamp(0.9rem, 3vw, 1rem);
|
|
}
|
|
.game-container {
|
|
background: rgba(255,255,255,0.05);
|
|
border-radius: 20px;
|
|
padding: 15px;
|
|
box-shadow: 0 20px 60px rgba(0,0,0,0.5);
|
|
max-width: 850px;
|
|
width: 100%;
|
|
border: 1px solid rgba(255,255,255,0.1);
|
|
}
|
|
.game-select {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
gap: 12px;
|
|
margin-bottom: 15px;
|
|
}
|
|
.game-btn {
|
|
padding: 15px;
|
|
border: none;
|
|
border-radius: 12px;
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
text-align: left;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.game-btn::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(rgba(255,255,255,0.1), transparent);
|
|
pointer-events: none;
|
|
}
|
|
.game-btn:hover {
|
|
transform: translateY(-3px) scale(1.02);
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.4);
|
|
}
|
|
.game-btn:active {
|
|
transform: translateY(0) scale(0.98);
|
|
}
|
|
.game-btn.flaw {
|
|
background: linear-gradient(135deg, #ff6b6b, #c0392b);
|
|
color: white;
|
|
box-shadow: 0 4px 15px rgba(255,107,107,0.4);
|
|
}
|
|
.game-btn.premise {
|
|
background: linear-gradient(135deg, #4ecdc4, #1abc9c);
|
|
color: white;
|
|
box-shadow: 0 4px 15px rgba(78,205,196,0.4);
|
|
}
|
|
.game-btn.assumption {
|
|
background: linear-gradient(135deg, #f9d423, #f39c12);
|
|
color: #1a1a2e;
|
|
box-shadow: 0 4px 15px rgba(249,212,35,0.4);
|
|
}
|
|
.game-btn.speed {
|
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
|
color: white;
|
|
box-shadow: 0 4px 15px rgba(102,126,234,0.4);
|
|
}
|
|
.game-btn .emoji {
|
|
font-size: 28px;
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
}
|
|
.game-btn .title {
|
|
font-size: 16px;
|
|
margin-bottom: 4px;
|
|
}
|
|
.game-btn .desc {
|
|
font-size: 11px;
|
|
font-weight: normal;
|
|
opacity: 0.9;
|
|
}
|
|
.game-btn .new-badge {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
background: #fff;
|
|
color: #c0392b;
|
|
font-size: 9px;
|
|
padding: 2px 6px;
|
|
border-radius: 10px;
|
|
font-weight: bold;
|
|
animation: pulse 1.5s infinite;
|
|
}
|
|
@keyframes pulse {
|
|
0%, 100% { transform: scale(1); }
|
|
50% { transform: scale(1.1); }
|
|
}
|
|
#game-area {
|
|
min-height: 500px;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
background: #1a1a2e;
|
|
}
|
|
#game-area canvas {
|
|
border-radius: 12px;
|
|
}
|
|
.tip {
|
|
color: rgba(255,255,255,0.6);
|
|
font-size: 12px;
|
|
text-align: center;
|
|
margin-top: 15px;
|
|
}
|
|
@media (max-width: 600px) {
|
|
body { padding: 10px; }
|
|
.game-container { padding: 10px; }
|
|
.game-select { gap: 8px; }
|
|
.game-btn { padding: 12px; }
|
|
.game-btn .emoji { font-size: 24px; }
|
|
#game-area { min-height: 400px; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>🐝 Burton Method Learning Games</h1>
|
|
<p class="subtitle">Master LSAT Logic Through Play</p>
|
|
|
|
<div class="game-container">
|
|
<div class="game-select">
|
|
<button class="game-btn flaw" onclick="startGame('flaw')">
|
|
<span class="new-badge">⚔️ COMBAT</span>
|
|
<span class="emoji">🎯</span>
|
|
<span class="title">Flaw Fighter</span>
|
|
<span class="desc">Slash enemies with the right flaw type!</span>
|
|
</button>
|
|
<button class="game-btn premise" onclick="startGame('premise')">
|
|
<span class="emoji">📦</span>
|
|
<span class="title">Premise Sorter</span>
|
|
<span class="desc">Sort premises vs conclusions</span>
|
|
</button>
|
|
<button class="game-btn assumption" onclick="startGame('assumption')">
|
|
<span class="emoji">🔍</span>
|
|
<span class="title">Assumption Hunter</span>
|
|
<span class="desc">Find the hidden logical link</span>
|
|
</button>
|
|
<button class="game-btn speed" onclick="startGame('speed')">
|
|
<span class="emoji">⚡</span>
|
|
<span class="title">Speed LR</span>
|
|
<span class="desc">Race against the clock</span>
|
|
</button>
|
|
</div>
|
|
<div id="game-area"></div>
|
|
<p class="tip">💡 Tip: Use keyboard shortcuts (1-5) in Flaw Fighter for faster attacks!</p>
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/phaser@3.70.0/dist/phaser.min.js"></script>
|
|
<script src="src/games.js"></script>
|
|
<script src="src/flaw-fighter-combat.js"></script>
|
|
<script>
|
|
let currentGame = null;
|
|
|
|
function startGame(type) {
|
|
// Clear existing game
|
|
if (currentGame) {
|
|
currentGame.destroy(true);
|
|
currentGame = null;
|
|
}
|
|
|
|
document.getElementById('game-area').innerHTML = '';
|
|
|
|
const config = {
|
|
type: Phaser.AUTO,
|
|
width: 800,
|
|
height: 500,
|
|
parent: 'game-area',
|
|
backgroundColor: '#1a1a2e',
|
|
scale: {
|
|
mode: Phaser.Scale.FIT,
|
|
autoCenter: Phaser.Scale.CENTER_BOTH
|
|
},
|
|
scene: []
|
|
};
|
|
|
|
switch(type) {
|
|
case 'flaw':
|
|
// Use new combat version!
|
|
config.scene = [FlawFighterCombat];
|
|
break;
|
|
case 'premise':
|
|
config.scene = [PremiseSorterScene];
|
|
break;
|
|
case 'assumption':
|
|
config.scene = [AssumptionHunterScene];
|
|
break;
|
|
case 'speed':
|
|
config.scene = [SpeedLRScene];
|
|
break;
|
|
}
|
|
|
|
currentGame = new Phaser.Game(config);
|
|
}
|
|
|
|
// Welcome screen
|
|
document.getElementById('game-area').innerHTML = `
|
|
<div style="display: flex; align-items: center; justify-content: center; height: 500px; background: linear-gradient(135deg, #1a1a2e, #16213e); border-radius: 12px;">
|
|
<div style="text-align: center; color: white; padding: 20px;">
|
|
<div style="font-size: 80px; margin-bottom: 20px;">🐝⚔️</div>
|
|
<h2 style="margin-bottom: 10px; font-size: 28px;">Ready to Learn Logic?</h2>
|
|
<p style="color: #4ecdc4; margin-bottom: 20px; font-size: 16px;">Choose a game above to start training!</p>
|
|
<div style="color: #888; font-size: 14px; line-height: 1.8;">
|
|
<p>🎯 <strong>Flaw Fighter</strong> - NEW combat mode! Slash bad arguments</p>
|
|
<p>📦 <strong>Premise Sorter</strong> - Identify argument structure</p>
|
|
<p>🔍 <strong>Assumption Hunter</strong> - Find hidden assumptions</p>
|
|
<p>⚡ <strong>Speed LR</strong> - Test your speed</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|
|
</script>
|
|
</body>
|
|
</html>
|