Build a polished, playable browser game: משחק סופר מריו רק עם גורילה. Make the core loop…
- User
Build a polished, playable browser game: משחק סופר מריו רק עם גורילה. Make the core loop fun within the first ten seconds, with tight controls for both keyboard and touch, and juicy feedback — screen shake, particle effects, and satisfying animations. Include a start screen, a score system, pause and game-over states with instant restart, and a local high-score table. Style it with a cohesive visual theme and make sure it runs smoothly at 60fps on desktop and mobile.
Assistant
I will inspect the project structure and existing files to see what packages and templates are installed.
I will read the
package.jsonfile to check the installed dependencies.I will install
lucide-reactandcanvas-confettifor retro game UI icons and celebration particle effects.I will read
index.html.I will read
src/index.css.I will update
index.htmlwith an appropriate title, Google fonts for retro pixel gaming and Hebrew text support, and mobile touch viewport settings.I will create
src/types/game.tswith all TypeScript interfaces and types for game objects, physics, power-ups, character skins, levels, and high scores.I will create
src/audio/soundEngine.tsusing the Web Audio API to generate authentic retro arcade sound effects and chiptune background music.I will remove the unused
bgmOscsvariable fromsrc/audio/soundEngine.ts.I will create
src/game/levels.tscontaining the level layouts, obstacle layouts, block placements, and enemy spawns for all 4 worlds plus the endless generator.I will create
src/game/physics.tsimplementing the physics engine, collision detection, enemy AI, combo chaining, projectile bounces, screen shake, and particle effects.I will create
src/game/renderer.tsto render the game world, animated gorilla sprites, enemies, blocks, parallax backgrounds, and particle visual feedback onto the HTML5 Canvas.I will create
src/components/TouchControls.tsxfor responsive mobile and touch screen platforming controls.I will create
src/components/LeaderboardModal.tsxfor displaying local high-score records, rankings, and player achievements.I will remove the unused
Starimport fromsrc/components/LeaderboardModal.tsx.I will create
src/components/SettingsModal.tsxto handle sound settings, Gorilla skin selection, and keyboard/touch instructions.I will clean up the unused imports in
src/components/SettingsModal.tsx.I will build the main
src/App.tsxcomponent combining the game loop, canvas rendering, audio synthesizer triggers, start screen, HUD, pause, game-over, victory screens, and local high-score persistence.I will read
src/main.tsx.I will update
src/App.tsxwith clean default export and type comparisons.I will now run
build_projectto test and confirm the build succeeds.I have built and polished the browser game "משחק סופר מריו רק עם גורילה" (Super Mario Gorilla Bros)!
🦍 מה נבנה במשחק (What We Built):
-
מכניקת משחק פלטפורמר עסיסית וכיפית בתוך 10 שניות (Super Mario Kong Platforming Loop):
- גורילת על (Super Gorilla) עם פיזיקה מלוטשת: ריצה חלקה, קפיצות מתכווננות, קפיצות קיר, ורמיסת חזה וסלאם אווירי (Ground Pound) שמנער את המסך ומשמיד אויבים וסלעים.
- קוביות סימן שאלה
?ולבנים שבירות: קפיצה מלמטה או סלאם מלמעלה מקפיצים בננות זהב, מטבעות, פטריית גורילת על ענקית (Mighty Kong Power-up), קוקוס בוער לפיצוץ אויבים וכוכב זוהר בלתי מנוצח (Super Star). - צינורות גזע מעבר (Warp Logs/Pipes), פטריות קפיצה וקפצואלות (Springboards), ודגל סיום שלב מסורתי.
-
אויבים מגוונים ובוס ענק (Enemies & Boss):
- באבונים שובבים (Baboons) שניתן לקפוץ עליהם או למחוץ אותם.
- תוכי ג'ונגל מעופפים (Flying Toucans) וקיפודי קוצים.
- מלך הבבונים הענק (King Baboon Boss) בשלב 1-4 עם מד חיים, זריקת חביות אש ואפקטי ניצחון מרהיבים.
-
משוב עסיסי וחוויית רטרו ארקייד (Juicy Feedback & 60 FPS):
- רעידות מסך (Screen Shake) בהנחתות חזה ופיצוצים.
- מערכת חלקיקים עשירה (Particle FX): ענני אבק, ניצוצות זהב, שברי לבנים וקונפטי ניצחון.
- טקסט ניקוד צף (
+100 🍌,COMBO x3!,MIGHTY GORILLA!). - מנוע סאונד מבוסס Web Audio API: אפקטי רטרו אותנטיים (קפיצות, מטבעות, פגיעות) ומנגינת צ'יפטיון מקפיצה ללא תלות בקבצים חיצוניים.
-
בקרת שליטה מדויקת למחשב ולמסכי מגע (Controls):
- מקלדת: מקשי חצים /
WASDלתנועה וקפיצה, חץ למטה /Sלסלאם באוויר,X/Z/Shiftלזריקת קוקוס / התקפה. - מסך מגע (Mobile & Tablet): ג'ויסטיק וירטואלי מעוצב וכפתורי פעולה רספונסיביים עם משוב ויזואלי מהיר.
- מקלדת: מקשי חצים /
-
תפריטים, טבלת שיאים מקומית והתחלה מחדש מיידית:
- מסך פתיחה עם בחירת עולמות ומצב ריצה אינסופית (Endless Jungle Rush).
- התאמת תלבושות גורילה: קונגיטו הקלאסי, מלך הג'ונגל המוזהב, סייבר גורילה וגורילת הצללים.
- Restart מיידי בלחיצת רווח או טאפ תוך פחות משנייה.
- טבלת שיאים מקומית (Local High Scores) הנשמרת ב-
localStorage.
Files built:
index.html,src/types/game.ts,src/audio/soundEngine.ts,src/game/levels.ts,src/game/physics.ts,src/game/renderer.ts,src/components/TouchControls.tsx,src/components/LeaderboardModal.tsx,src/components/SettingsModal.tsx,src/App.tsx-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.