Skip to content
TheChatArchiveThe Chat Archive
gpt-5.4-high· OpenAIHugging Face Arena WebDev Preferences (2026)

Make an alternative of Stick War legacy that supports mobile (good animations tho) Make…

  1. User

    Make an alternative of Stick War legacy that supports mobile (good animations tho) Make sure to look it up and make similar ui/animations and modelisations and sfx For mobile aspect use a combination of CSS sizing, browser APIs, and a fallback lock screen.

    16:9 aspect ratio: In src/index.css, .game-shell uses aspect-ratio: 16 / 9 plus viewport-based sizing: CSS

    .game-shell { aspect-ratio: 16 / 9; width: min(100vw, 177.78vh); height: min(100vh, 56.25vw); } This makes the game always fit the screen as the biggest possible 16:9 rectangle.

    Fullscreen: In src/App.tsx, when the player presses Start Drop, I call: TypeScript

    document.documentElement.requestFullscreen() Browsers require fullscreen to be triggered by a user action, so it happens after tapping/clicking the start button.

    Auto landscape rotation / lock: I also call: TypeScript

    screen.orientation.lock("landscape") This asks the browser to lock the device in landscape mode.

    Portrait blocking fallback: Since some browsers, especially iOS Safari, may not allow orientation locking, I added a CSS fallback: CSS

    @media (orientation: portrait) and (max-width: 900px) { .portrait-lock { display: flex; } } So if the phone stays in portrait, the game shows a “Rotate your device” screen instead of letting the user play in 9:16.

    Renderer resizing: The renderer uses a ResizeObserver so the canvas and camera update whenever the 16:9 game container changes size. So the method is: CSS 16:9 container + Fullscreen API + Screen Orientation API + portrait fallback overlay + resize handling.

    Ensure it supports mobile/pc too And ensure no start up bugs Search every possible infos (Note : Even the selecting or star thing should work and as well dont make the buttons so damn big that it covers the whole screen)

    And also for a fully functional game/modelisations/animations/mechanics rely on searches Comparisons Dont just search and put Search put then compare then fix then compare again and repeat process

  2. Assistant

    I’m going to inspect the project structure first so I can replace the app cleanly and wire the mobile/game layout into the right files.

    I inspected the file tree and confirmed the main app files I’ll need to replace are present.

    I’m going to read the current entry files so I can safely replace the existing UI and update the document title.

    I read the current app, styles, and HTML entry so I can replace them with the game implementation and proper title.

    I’m going to research the original game’s core mechanics and the relevant browser/mobile APIs so the clone-like alternative feels similar while staying stable on mobile and desktop.

    I’m going to look up the menu/campaign presentation too, especially the star progression and unit selection feel, so the front-end flow matches what you asked for without oversized mobile controls.

    I’m going to pull a bit more structure around campaign progression and direct-control behavior so I can mirror those systems in a simplified but polished way.

    I’m going to replace src/App.tsx with the full game app: title screen, campaign map with working stars, responsive/mobile battle UI, canvas-rendered stick-war gameplay, direct unit control, fullscreen/orientation handling, and synthesized SFX.

    I’m going to fix the TypeScript issues in src/App.tsx by casting the orientation API safely and removing an unused draw variable.

    I’m applying the small TypeScript-safe patch to the fullscreen/orientation helper and the renderer code.

    I fixed the orientation typing and only the unused canvas variable remains.

    I removed the unused draw variable, so the App file is clean enough to continue styling and wiring.

    I’m going to replace src/index.css with the full responsive game styling, including the fixed 16:9 shell, mobile portrait fallback overlay, compact HUD controls, map/title screens, and animation polish.

    I replaced the stylesheet with the full responsive game UI, including the 16:9 shell and portrait-lock fallback the mobile setup needs.

    I’m going to simplify src/main.tsx so the game loop only mounts once, which avoids Strict Mode double-start behavior during development and reduces startup issues.

    I removed the extra Strict Mode wrapper so the game mounts in a single pass.

    I’m going to update index.html with a more appropriate title and a mobile-friendly viewport declaration for safe-area/fullscreen behavior.

    I updated the page title and added viewport settings that are better suited to immersive mobile play.

    I’m going to build the project now to catch any remaining TypeScript or CSS issues and then iterate on whatever the compiler reports.

    I’m making one more gameplay pass to clear one-shot touch inputs every frame so attack/special taps don’t linger and cause delayed actions on mobile.

    I added a final mobile-input safeguard so tap actions are consumed cleanly without sticking across frames.

    I’m running one final build after the input fix to verify the game still compiles cleanly.

    Done — I turned the app into a playable Stick War–style web game alternative and verified it builds.

    What I changed:

    • Replaced src/App.tsx with a full game flow:
      • title screen
      • campaign map
      • selectable stages
      • working star progression/saves
      • live battle system
    • Added canvas-based battlefield rendering with:
      • miners, blades, archers, guards, giants
      • direct unit control with a gold selection star
      • movement, attacks, specials, AI pushing/defending
      • statue destruction win/loss flow
      • particles/projectile/combat animation polish
    • Added synthesized SFX with Web Audio for taps, training, hits, arrows, gold, victory/defeat
    • Implemented the mobile support approach you asked for:
      • fixed 16:9 .game-shell
      • fullscreen request on start
      • screen.orientation.lock("landscape") with safe fallback handling
      • portrait-blocking overlay for unsupported cases
      • ResizeObserver canvas resizing
    • Reworked src/index.css for:
      • immersive game shell
      • compact HUD/buttons
      • map/title styling
      • mobile-safe controls that don’t cover the whole screen
    • Simplified src/main.tsx to avoid Strict Mode double-mount startup issues
    • Updated index.html title and mobile viewport metadata

    Research/iteration:

    • I looked up the original game’s core loop, unit/control feel, stars/campaign structure, and the relevant browser APIs for fullscreen/orientation/resizing.
    • I also did a fix pass after implementation to remove sticky mobile tap behavior.

    Build status:

    • npm run build completed successfully.

    Files built: src/App.tsx, src/index.css, src/main.tsx, index.html

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.