How phash5/crewmate works
Project type and purpose
• This is a single‐page browser prototype of an “Among Us”‐style game, built entirely with HTML5 and JavaScript (p5.js). There is no backend or networking—everything runs in the user’s browser.
File structure
• Top‐level files only:
• index.html – hosts the canvas, loads p5.js and sketch.js
• sketch.js – contains the entire game loop, state machine, rendering, input handling, and basic AI
• No separate frontend/backend folders, no server or data stores.
README for additional insights
• Game features (movement, tasks, kill/report mechanics, meetings, voting, win conditions) all implemented client‐side
• No external services—future networking is suggested but not yet implemented
• Uses p5.js as the drawing and interaction library
Detail is key
• Even though the code base is small, break it into all of the logical modules above
• Don’t skip the tiny AI voter or the win‐condition checker—include them as leaf nodes