Project Host: GitLab Pages / GitLab Repository Project Status: [Draft/Completed/In Progress] Date: [Current Date] Author(s): [Your Name/Team Name]
Use GitLab Pages artifact job to deploy the public/ folder: sports games gitlab io work
pages:
stage: deploy
script:
- mkdir .public || true
- cp -r public/ .public
artifacts:
paths:
- .public
only:
- main
(Place your actual site in public/; adjust branch and build steps if using a build tool like npm/webpack.) Project Host: GitLab Pages / GitLab Repository Project
Standard keydown events are slow. For sports games gitlab io work to feel native, use: Use GitLab Pages artifact job to deploy the
window.addEventListener('keydown', (e) =>
e.preventDefault(); // Prevents page scrolling in basketball games
if (e.code === 'Space') shootBall();
);