Vibration on phones
Opened by @Dio77799 · Assignees: None
Claim Status & GitHub Signal
Unassigned with 0 comments. Open the workspace to inspect linked PRs before claiming or coding.
The task involves implementing a simple feature using an existing API (`navigator.vibrate()`), which is straightforward for someone with basic JavaScript knowledge. It requires understanding of browser compatibility and user settings, but does not involve complex logic or extensive code changes.
What It's About
Implementing vibration feedback on mobile devices when certain game events occur.
Why It Matters
Enhancing user experience by providing tactile feedback can make the game feel more engaging and responsive, especially on mobile devices.
Expected Outcome
Users will experience short vibrations on their phones during specific game actions, improving the overall gameplay experience.
Log in to compare this issue's requirements against your profile skills. Required concepts: JavaScript, Mobile Development, User Experience, Browser APIs, Event Handling.
Progressive AI Hints
Hint #1 is always free and calibrated to your experience level. Extra hints unlock with coins without spoiling the full solution.
Skill-Gap Learning
Issue Description
Short vibration on phones when you take a hit, land a perfect block or beat a boss, using navigator.vibrate().
- Only when the browser supports it and only after the first touch.
- A switch on the phone next to sound, saved with the other settings.
- Keep the patterns short (under 60 ms, except the boss).
Linked Pull Requests (0)
No linked or cross-referenced pull requests detected via GitHub timeline. Check comments below for informal claims before starting.
GitHub Comments (0)
No comments on this issue yet.
Issue Troubleshooting Threads (0)
No troubleshooting threads opened for this issue yet. If you hit a test, build, or navigation blocker, post what you've tried so fellow contributors can help.
PR Verification & Rewards
Sign in and link GitHub to verify your PR against this issue and earn XP + coins.
Contribution Workflow
Track your local progress before opening a pull request on GitHub.
Repository Context
Top Repository Paths
CONTRIBUTING.md Excerpt
Contributing
Thanks for helping. A few rules keep the game small and easy to review:
- No dependencies and no build step. Plain HTML, CSS and classic scripts loaded in order from
index.html, so the game still opens with a double click. If something truly needs a library, open an issue first. - Nothing leaves the device. No analytics, no remote fonts, no uploads. The Content Security Policy in
index.htmlblocks every connection; keep it that way. - Everything is drawn with code. No image, font or audio files: characters go in
motor/dibujo.js, sounds and music inmotor/base.js. - Content goes in
config.jsanddistritos.js, not in the engine. A new level type is the exception. - Scripts share the global scope: a top level name can't repeat across files.
- Small pull requests, one change each. Say how you tested it (keyboard, mouse or phone).
How to take an issue
- Pick one from the pinned Roadmap issue or the
good first issuelabel. - Comment that you want it. We assign it to you so two people don't do the same work.
- If you go quiet for two weeks, the issue opens up again.
- For a new idea, open a proposal with the template first.
Ideas to start with
- English version of the game (see the open translation issue).
- A new district type or a new enemy type.
- Gamepad support.
Advisory PR Assistant
Helps structure your PR description or unpack reviewer feedback. Does not perform GitHub actions.