Add Camera Fire game and make it the site homepage#3
Merged
mrfeixiang merged 4 commits intomainfrom Apr 8, 2026
Merged
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 fromindex.html), still fully functional.vercel.json— minimal static-site config withPermissions-Policy: camera=(self)sogetUserMediaworks on Vercel.calendar →link.After merge
https://mrfeixiang.github.io/2026/→ Camera Firehttps://mrfeixiang.github.io/2026/calendar.html→ Multilingual Calendar 2026