mirror of
https://github.com/mileswolfallen2/miles-web.git
synced 2026-09-08 11:23:17 +00:00
280 lines
12 KiB
HTML
280 lines
12 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Rhythm Game | Miles Wolf Allen</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Mono:wght@400;700&family=Inter:wght@400;500;600;800&display=swap" rel="stylesheet">
|
|
<link rel="icon" type="image/svg+xml" href="../favicon.svg">
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<div class="cursor-dot" id="cursorDot"></div>
|
|
<div class="cursor-ring" id="cursorRing"></div>
|
|
<div class="flash" id="flash"></div>
|
|
<div class="toast-stack" id="toastStack"></div>
|
|
<nav class="mobile-nav">
|
|
<a href="../index.html">Home</a>
|
|
<a href="fedl.html">FEDL</a>
|
|
<a href="rhythm-game.html" class="active">Rhythm Game</a>
|
|
<a href="https://github.com/mileswolfallen2" target="_blank">GitHub</a>
|
|
</nav>
|
|
|
|
<div class="container">
|
|
<nav>
|
|
<a href="../index.html" class="nav-logo"><span class="logo-dot"></span> milesallen</a>
|
|
<div class="nav-links">
|
|
<a href="../index.html#about">About</a>
|
|
<a href="../index.html#skills">Skills</a>
|
|
<a href="../index.html#projects">Projects</a>
|
|
<a href="../index.html#contact">Contact</a>
|
|
</div>
|
|
</nav>
|
|
|
|
<section class="project-hero">
|
|
<div class="breadcrumb">
|
|
<a href="../index.html">Home</a>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="9 18 15 12 9 6"/></svg>
|
|
<span>Rhythm Game</span>
|
|
</div>
|
|
|
|
<h1>Rhythm Game</h1>
|
|
<p class="tagline">A rhythm-based game where players hit notes as they appear on screen, with song selection, a level editor, and real-time canvas rendering.</p>
|
|
|
|
<div class="project-meta-bar">
|
|
<a href="https://github.com/mileswolfallen2/new-game" class="meta-chip primary" target="_blank">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 00-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0020 4.77 5.07 5.07 0 0019.91 1S18.73.65 16 2.48a13.38 13.38 0 00-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 005 4.77a5.44 5.44 0 00-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 009 18.13V22"/></svg>
|
|
View on GitHub
|
|
</a>
|
|
<a href="https://mileswolfallen2.github.io/new-game/" class="meta-chip" target="_blank">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z"/></svg>
|
|
Live Demo
|
|
</a>
|
|
<span class="meta-chip">HTML / JavaScript</span>
|
|
<span class="meta-chip">MPL-2.0</span>
|
|
<span class="meta-chip">64 commits</span>
|
|
<span class="meta-chip">1 star</span>
|
|
</div>
|
|
<div class="stats-bar">
|
|
<div class="stat-item">
|
|
<div class="stat-value accent" id="gh-stars">--</div>
|
|
<div class="stat-label">Stars</div>
|
|
</div>
|
|
<div class="stat-item">
|
|
<div class="stat-value green" id="gh-forks">--</div>
|
|
<div class="stat-label">Forks</div>
|
|
</div>
|
|
<div class="stat-item">
|
|
<div class="stat-value orange" id="gh-issues">--</div>
|
|
<div class="stat-label">Issues</div>
|
|
</div>
|
|
<div class="stat-item">
|
|
<div class="stat-value" id="gh-lang">--</div>
|
|
<div class="stat-label">Language</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="reveal">
|
|
<div class="section-divider"></div>
|
|
<h2 class="section-title">Features</h2>
|
|
<div class="feature-grid">
|
|
<div class="feature-card">
|
|
<h3>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><polygon points="10 8 16 12 10 16 10 8"/></svg>
|
|
Interactive Gameplay
|
|
</h3>
|
|
<p>Real-time note rendering on canvas with keyboard controls. Hit notes as they scroll down the screen.</p>
|
|
</div>
|
|
<div class="feature-card">
|
|
<h3>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 18V5l12-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="16" r="3"/></svg>
|
|
Song Selection
|
|
</h3>
|
|
<p>Browse and select songs from a library. Preview songs before playing them.</p>
|
|
</div>
|
|
<div class="feature-card">
|
|
<h3>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 20h9"/><path d="M16.5 3.5a2.121 2.121 0 013 3L7 19l-4 1 1-4L16.5 3.5z"/></svg>
|
|
Level Editor
|
|
</h3>
|
|
<p>Built-in editor for creating custom charts and song mappings.</p>
|
|
</div>
|
|
<div class="feature-card">
|
|
<h3>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 00-3-3.87"/><path d="M16 3.13a4 4 0 010 7.75"/></svg>
|
|
User Accounts
|
|
</h3>
|
|
<p>Signup and login system with user settings and profile management.</p>
|
|
</div>
|
|
<div class="feature-card">
|
|
<h3>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><line x1="9" y1="3" x2="9" y2="21"/></svg>
|
|
Admin Panel
|
|
</h3>
|
|
<p>Admin interface for managing songs, charts, and user content.</p>
|
|
</div>
|
|
<div class="feature-card">
|
|
<h3>
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg>
|
|
Song Browser
|
|
</h3>
|
|
<p>Browse available songs with metadata, difficulty info, and chart previews.</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="reveal">
|
|
<div class="section-divider"></div>
|
|
<h2 class="section-title">Tech Stack</h2>
|
|
<div class="tech-stack">
|
|
<span class="tech-badge">HTML (96%)</span>
|
|
<span class="tech-badge">JavaScript (4%)</span>
|
|
<span class="tech-badge">Canvas API</span>
|
|
<span class="tech-badge">Node.js Server</span>
|
|
<span class="tech-badge">Fly.io</span>
|
|
<span class="tech-badge">Render</span>
|
|
</div>
|
|
</section>
|
|
|
|
<footer>
|
|
Built by Miles · 2026 · Powered by too much coffee and the Konami code
|
|
</footer>
|
|
</div>
|
|
<script>
|
|
fetch('https://api.github.com/repos/mileswolfallen2/new-game')
|
|
.then(r => r.json())
|
|
.then(d => {
|
|
if (d.stargazers_count != null) document.getElementById('gh-stars').textContent = d.stargazers_count;
|
|
if (d.forks_count != null) document.getElementById('gh-forks').textContent = d.forks_count;
|
|
if (d.open_issues_count != null) document.getElementById('gh-issues').textContent = d.open_issues_count;
|
|
if (d.language) document.getElementById('gh-lang').textContent = d.language;
|
|
})
|
|
.catch(() => {});
|
|
const observer = new IntersectionObserver((entries) => {
|
|
entries.forEach(e => { if (e.isIntersecting) e.target.classList.add('visible'); });
|
|
}, { threshold: 0.1, rootMargin: '0px 0px -40px 0px' });
|
|
document.querySelectorAll('.reveal').forEach(el => observer.observe(el));
|
|
</script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/[email protected]/gsap.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/[email protected]/ScrollTrigger.min.js"></script>
|
|
<script>
|
|
gsap.registerPlugin(ScrollTrigger);
|
|
|
|
// Hero entrance
|
|
const heroTl = gsap.timeline({ defaults: { ease: 'power3.out' } });
|
|
heroTl
|
|
.from('.breadcrumb', { x: -30, opacity: 0, duration: 0.6 })
|
|
.from('.project-hero h1', { y: 50, opacity: 0, duration: 0.8 }, '-=0.3')
|
|
.from('.tagline', { y: 30, opacity: 0, duration: 0.7 }, '-=0.4')
|
|
.from('.meta-chip', { y: 20, opacity: 0, scale: 0.8, duration: 0.4, stagger: 0.06 }, '-=0.3')
|
|
.from('.stats-bar', { y: 30, opacity: 0, duration: 0.6 }, '-=0.2')
|
|
.from('.stat-item', { y: 20, opacity: 0, scale: 0.9, duration: 0.4, stagger: 0.08, ease: 'back.out(1.5)' }, '-=0.3');
|
|
|
|
// Nav entrance
|
|
gsap.from('nav', { y: -20, opacity: 0, duration: 0.6, ease: 'power2.out' });
|
|
|
|
// Section titles
|
|
document.querySelectorAll('.section-title').forEach(title => {
|
|
gsap.from(title, {
|
|
scrollTrigger: { trigger: title, start: 'top 85%' },
|
|
y: 30, opacity: 0, duration: 0.7, ease: 'power3.out'
|
|
});
|
|
});
|
|
|
|
// Section dividers
|
|
document.querySelectorAll('.section-divider').forEach(div => {
|
|
gsap.from(div, {
|
|
scrollTrigger: { trigger: div, start: 'top 90%' },
|
|
width: 0, duration: 0.6, ease: 'power2.out'
|
|
});
|
|
});
|
|
|
|
// Feature cards stagger
|
|
document.querySelectorAll('.feature-grid').forEach(grid => {
|
|
gsap.from(grid.querySelectorAll('.feature-card'), {
|
|
scrollTrigger: { trigger: grid, start: 'top 85%' },
|
|
y: 50, opacity: 0, scale: 0.9, duration: 0.6, stagger: 0.1, ease: 'power3.out'
|
|
});
|
|
});
|
|
|
|
// Tech badges
|
|
document.querySelectorAll('.tech-stack').forEach(stack => {
|
|
gsap.from(stack.querySelectorAll('.tech-badge'), {
|
|
scrollTrigger: { trigger: stack, start: 'top 88%' },
|
|
y: 20, opacity: 0, scale: 0.8, duration: 0.4, stagger: 0.05, ease: 'back.out(1.5)'
|
|
});
|
|
});
|
|
|
|
// Tables
|
|
document.querySelectorAll('.table-wrapper').forEach(wrapper => {
|
|
gsap.from(wrapper, {
|
|
scrollTrigger: { trigger: wrapper, start: 'top 85%' },
|
|
y: 40, opacity: 0, duration: 0.7, ease: 'power3.out'
|
|
});
|
|
});
|
|
|
|
// Code blocks
|
|
document.querySelectorAll('code-block').forEach(block => {
|
|
gsap.from(block, {
|
|
scrollTrigger: { trigger: block, start: 'top 88%' },
|
|
y: 30, opacity: 0, duration: 0.6, ease: 'power3.out'
|
|
});
|
|
});
|
|
|
|
// Footer
|
|
gsap.from('footer', {
|
|
scrollTrigger: { trigger: 'footer', start: 'top 95%' },
|
|
opacity: 0, duration: 0.8
|
|
});
|
|
|
|
window.addEventListener('load', () => ScrollTrigger.refresh());
|
|
</script>
|
|
<script>
|
|
var toastQueue=document.getElementById('toastStack');var shownToasts={};
|
|
function showToast(id,title,body,icon){
|
|
if(shownToasts[id])return;shownToasts[id]=true;
|
|
var t=document.createElement('div');t.className='toast';
|
|
t.innerHTML='<span class="icon">'+(icon||'!')+'</span><span><span class="title">'+title+'</span>'+body+'</span>';
|
|
toastQueue.appendChild(t);
|
|
gsap.to(t,{x:0,duration:.6,ease:'power3.out'});
|
|
setTimeout(function(){gsap.to(t,{x:'-150%',opacity:0,duration:.4,ease:'power2.in',onComplete:function(){t.remove();}});},3000);
|
|
}
|
|
(function(){
|
|
var seq=['ArrowUp','ArrowUp','ArrowDown','ArrowDown','ArrowLeft','ArrowRight','ArrowLeft','ArrowRight','b','a'];
|
|
var pos=0;
|
|
window.addEventListener('keydown',function(e){
|
|
var key=e.key.length===1?e.key.toLowerCase():e.key;
|
|
if(key===seq[pos]){pos++;if(pos===seq.length){pos=0;triggerKonami();}}
|
|
else{pos=(key===seq[0])?1:0;}
|
|
});
|
|
function triggerKonami(){
|
|
showToast('konami','SECRET FOUND','Konami Code Activated','*');
|
|
var flash=document.getElementById('flash');
|
|
gsap.fromTo(flash,{opacity:.5},{opacity:0,duration:.5});
|
|
gsap.to('body',{x:'random(-5,5)',y:'random(-5,5)',duration:.05,repeat:10,ease:'sine.inOut',onComplete:function(){gsap.set('body',{x:0,y:0});}});
|
|
}
|
|
})();
|
|
</script>
|
|
<script>
|
|
(function(){
|
|
var dot=document.getElementById('cursorDot');
|
|
var ring=document.getElementById('cursorRing');
|
|
if(!dot||!ring)return;
|
|
var mx=0,my=0,rx=0,ry=0;
|
|
document.addEventListener('mousemove',function(e){mx=e.clientX;my=e.clientY;dot.style.left=mx+'px';dot.style.top=my+'px';});
|
|
(function loop(){
|
|
rx+=(mx-rx)*0.15;ry+=(my-ry)*0.15;
|
|
ring.style.left=rx+'px';ring.style.top=ry+'px';
|
|
requestAnimationFrame(loop);
|
|
})();
|
|
document.querySelectorAll('a,button,.meta-chip,.tech-badge,.feature-card').forEach(function(el){
|
|
el.addEventListener('mouseenter',function(){dot.classList.add('hover');ring.classList.add('hover');});
|
|
el.addEventListener('mouseleave',function(){dot.classList.remove('hover');ring.classList.remove('hover');});
|
|
});
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|