Skip to content

Add Camera Fire game and make it the site homepage#3

Merged
mrfeixiang merged 4 commits intomainfrom
claude/camera-fire-website-fIWLd
Apr 8, 2026
Merged

Add Camera Fire game and make it the site homepage#3
mrfeixiang merged 4 commits intomainfrom
claude/camera-fire-website-fIWLd

Conversation

@mrfeixiang
Copy link
Copy Markdown
Owner

Adds a webcam-based finger-gun shooter ("Camera Fire") and publishes it at the site root.

What's in this PR

  • index.html / camera-fire.css / camera-fire.js — standalone Camera Fire game using MediaPipe Hands. Form a finger gun at the camera, bend your thumb to fire at moving targets. Retro CRT frame, score HUD, sensitivity slider.
  • calendar.html — the previous Multilingual Calendar 2026 (renamed from index.html), still fully functional.
  • vercel.json — minimal static-site config with Permissions-Policy: camera=(self) so getUserMedia works on Vercel.
  • Cross-links: calendar header has a "Play Camera Fire" CTA; game top bar has a calendar → link.

After merge

  • https://mrfeixiang.github.io/2026/ → Camera Fire
  • https://mrfeixiang.github.io/2026/calendar.html → Multilingual Calendar 2026

claude added 4 commits April 8, 2026 01:17
Standalone page (camera-fire.html) that uses MediaPipe Hands to track
the user's hand in a live webcam feed. Form a finger gun and bend your
thumb to fire projectiles at moving targets. Includes a retro CRT-style
frame, score/HUD, sensitivity slider, and aim crosshair driven by the
index finger direction.
Adds a header CTA on the calendar's index.html linking to camera-fire.html
so visitors can launch the mini-game from the main page. Also adds a
minimal vercel.json (clean URLs + camera Permissions-Policy header) so the
project deploys to Vercel as a static site without any extra build step.
Adds Vercel rewrites so the root URL "/" serves camera-fire.html (the
finger-gun game becomes the published homepage), while the calendar
remains reachable at "/calendar".
Renames camera-fire.html to index.html so the finger-gun game is what
loads at the site root on both GitHub Pages and Vercel (Pages doesn't
honor vercel.json rewrites, so the previous approach left visitors on
the calendar). The calendar moves to calendar.html and is reachable
from a "calendar →" link in the game's top bar; the calendar's existing
header CTA also points back at the game.
@mrfeixiang mrfeixiang merged commit b5b44ed into main Apr 8, 2026
5 checks passed
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
2026 Ready Ready Preview, Comment Apr 8, 2026 2:27am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants