Skip to content
TheChatArchiveThe Chat Archive
DeepSeekdeepseek-v4-pro-webdev· DeepSeekHugging 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. DeepSeek Assistant

    I'll start by researching Stick War Legacy thoroughly, then build a complete mobile-friendly clone. Let me research the game mechanics, animations, and UI first.

    Now let me look at the existing project structure and then start building. Let me also get more details on the game's visual style.

    Now I have a good understanding. Let me build this comprehensive Stick War Legacy clone. I'll use the Web Audio API for sound effects (generating them programmatically), Canvas for the game rendering with stick figure animations, and React for the UI shell. Let me start building.

    Good. Now let me do a few more targeted searches and then start building this comprehensive game. I need to understand the game's map layout, the unit selection UI, and the core game loop better.

    Now I have a comprehensive understanding. Let me build this game. I'll create the complete game with:

    1. A main menu with start screen
    2. The game canvas with stick figure animations
    3. Units: Miner, Swordwrath, Archidon, Spearton, Magikill, Giant
    4. Gold mining economy
    5. Enemy AI
    6. Unit selection and control
    7. Statue at each end
    8. Sound effects via Web Audio API
    9. Mobile touch support
    10. The 16:9 aspect ratio lock

    Let me start building all the files:

    Now let me build the CSS with the mobile aspect ratio lock:

    Now let me create the main game engine with all the stick figure mechanics. This is a large file:

    Now let me create the core game engine:

    Let me fix the lint errors:

    Now let me create the renderer:

    Now let me create the main App component with the UI and game loop:

    The require in startGame won't work with ESM. Let me fix the restart logic - I need to import createUnit properly:

    Now let's build and see if it compiles:

    The project builds. Now let me go deeper and make the game much more polished. Let me enhance the engine with better AI, more mechanics, and fix the restart flow. Let me also improve the renderer with better animations. Let me look at what needs the most improvement:

    Let me now focus on making the game more robust by improving the restart mechanism and fixing any bugs. The main issue is that startGame does Object.assign which doesn't properly reset the deeply nested objects. Let me fix this:

    The restart flow looks okay since we're manually reassigning arrays. But there's a problem - Object.assign will copy the goldNodes array by reference from newState, but state.goldNodes still points to old. Let me rewrite the startGame more carefully:

    Now let me also fix the createUnit import - we need to make sure the ID counter resets when restarting:

    I need to export a function to reset the ID counter:

    Now let's build again to make sure everything compiles:

    Build succeeds. Now I need to significantly improve the game. Let me enhance the engine with much better AI, fix the gold mining delivery system, add unit collision/pushing, and make the gameplay more engaging. Let me also add the Castle Archer (statue defense) and make the Magikill summon minions.

    Let me now do a comprehensive rewrite of the engine to fix bugs and add polish:

    I see a problem with handleAttacking - it doesn't use dt for the state parameter name. Let me check what I renamed and fix the internal function properly. The bigger issue is that the handleIdle's dt parameter is _dt but is unused. Let me also fix handling of miners delivering gold after mining - currently when a miner finishes mining and starts moving with gold, they go to "idle" first which then redirects them. This needs to be cleaner. Let me do a targeted fix:

    Now fix handleMoving - when a moving miner with gold reaches the statue, it should deliver and then go idle:

    Now fix handleMining - when the node is depleted while mining, properly transition:

    Let me also fix the miner's mining - decrease minersOn when they leave a node:

    Now let me improve the enemy AI to be more aggressive and varied:

    Let me improve the AI to be smarter and also handle enemy unit behavior for attack/defend:

    Now let me also improve the renderer with better health bars on all units and make the statues look more distinctive. Also let me add a mechanism where enemy units near the player statue will attack it:

    I need to add statue-attacking logic for when units are near the enemy statue with no other targets. Let me also add this to handleAttacking:

    Files built: index.html, src/index.css, src/game/sound.ts, src/game/engine.ts, src/game/renderer.ts, src/App.tsx

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