A new enemy type
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 copying existing code and making minor modifications, which is suitable for beginners. However, it requires understanding of the game's structure and behavior implementation.
What It's About
Adding a new enemy type to the game, including defining its properties and behaviors.
Why It Matters
Enhancing gameplay by introducing new enemy types can improve player engagement and variety in combat scenarios.
Expected Outcome
A new enemy type is successfully integrated into the game, functioning as intended during fights.
Log in to compare this issue's requirements against your profile skills. Required concepts: JavaScript, Game Development, Code Modification, Behavior Implementation.
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
No Boot.dev course directly matches your missing JavaScript gaps (JavaScript, Game Development, Code Modification, Behavior Implementation), so DevWeave won't pad with an unrelated language course.
Issue Description
The game has five enemy types: maton, rapido, pesado, lanzador and bosses. Each is defined in CONFIG.enemigos in config.js and dressed in ropaEnemigo() in motor/combate.js.
Ideas: a dodger who sidesteps the first punch, a grabber who holds you until you mash punch, a medic who heals other enemies.
Copy a block in config.js, give it a new key, add its behavior in motor/combate.js and use it in a fight in distritos.js. A good first issue if you keep the behavior simple.
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.