Juice Mix Factory | HTML5 Game

Bluehost Shared Hosting

Juice Mix Factory | Browser Shop Management Game

Version 1.0 | Canvas 2D | Single-Player Orchard Shop | 365 Days and 22 Named Recipes | Mouse, Touch, and Keyboard Controls | Local Game Assets

Juice Mix Factory is a single-player 2D browser shop management game. Prepare fresh juice, coffee, tea, sandwiches, burgers, pizza, croissants, and muffins for waiting customers. Manage supplies and station queues, earn coins, and buy upgrades as you complete a full year of 365 sequential days.

Key Features

  • Orchard Shop Gameplay – Manage an animated customer queue and prepare orders across the Juice Bar, Coffee & Tea, Fresh Kitchen, and Pizza Oven, each with two preparation slots.
  • Classic and Relaxed Service – Choose Classic Service or Relaxed Service, which provides 1.4 times the shift duration and 1.6 times customer patience.
  • 22 Named Recipes – Prepare single-fruit juices, named blends, hot drinks, meals, and pastries. Mix 1–6 distinct fruits for custom juice and browse ingredients in the recipe book.
  • Inventory and Upgrades – Purchase timed ingredient and packaging deliveries with game coins. Buy three tiers each of cooking-speed, finishing-speed, starting-stock, and customer-patience upgrades.
  • Shift Goals and Rewards – Meet each day’s served-customer target to earn stars, bonus coins, and access to the next day.
  • Progress Records – Keep unlocked days, wallet, best day stars, upgrade tiers, lifetime served count, best combo, and preferences in the browser’s local save.
  • Mouse, Touch, and Keyboard Input – Choose products and orders, drag ready items to matching customers, or use the fixed keyboard shortcuts. Auto serve handles matching ready stock at the front of the queue.
  • Sound, Music, and Motion Settings – Toggle sound effects, background music, and applicable motion effects. Fresh profiles start with music disabled.
  • Local Game Package – HTML, CSS, JavaScript, fonts, artwork, and audio are included with the game. No game CDN or build step is required.

Game Modes

  • Classic Service – Run a single-player shift using the day’s base duration, customer patience, and service target.
  • Relaxed Service – Run the same single-player shift with longer duration and customer patience. Service targets and failure rules still apply.

Shift Format

  • 365 Sequential Days – Complete a day to unlock the next one; replay unlocked days to improve saved stars. Existing saves remain compatible, with up to 1095 stars across the year.
  • 15 Days Per Page – Browse 25 pages with Previous/Next arrows and exactly three numbered buttons on desktop and mobile, using the existing lobby design. The final page contains days 361–365. The chooser opens at the selected day’s page and keeps locked days visible.
  • Shift Targets and Timing – The original days 1–15 retain their 5–19 customer targets and 260–386 second durations. Days 16–365 vary weekly within 20–35 customers and 390–501 seconds, with bounded patience and seasonal titles.
  • All 22 named recipes are available to the order system on every day. The visible juice row has six single-fruit drinks; the shop menu and pastries provide additional products.

Customers

Up to four customers occupy the queue. Their patience decreases after arrival at a queue slot. The first four orders are Orange Sunshine, Grape Escape, Strawberry Smile, and Kiwi Cooler; Day 1 uses a predefined sequence afterward, while later days choose from the recipe list without immediately repeating the previous recipe. Arrival timing and patience are defined in the source and modified by service mode, upgrades, and rush periods.

Shop Rules & Mechanics

  • Reach the day’s served-customer target before closing time to complete the shift and unlock the next day.
  • A shift fails after three lost customers, when too few potential orders remain to reach the target, or when time expires before the target is reached. Lost customers reset the combo and deduct up to eight coins.
  • A successful shift awards three stars with no lost customers and no recorded mistakes, otherwise two stars with at most one lost customer, otherwise one. The current logic does not increment the mistakes counter for a wrong delivery attempt. Each win adds 20 bonus coins per star, and saved stars retain the best result for each day.
  • Queue preparation, then request delivery of ready stock or drag it to a matching arrived customer. Ordinary delivery requests and auto serve wait for the matching front customer; explicitly targeted delivery can serve another matching arrived customer.
  • Ingredients are reserved when preparation is queued. Restock supplies with game coins; deliveries take 4.5 seconds. Upgrades improve cooking, finishing, starting supplies, or customer patience. These purchases do not use real money.
  • Correct services earn coins from the recipe’s base price, remaining patience, and combo. Results show shift performance and rewards. Active shifts, production jobs, inventory, and pending deliveries are not restored after reload.

Controls & Navigation

  • Select Juice: 1–6 for Strawberry, Orange, Pineapple, Grape, Kiwi, and Watermelon
  • Customer Positions: A / S / D / G to prepare or request serving for positions 1–4
  • Serve Front Order: Space requests delivery of matching ready stock
  • Inventory / Restock: I toggles inventory; R purchases an all-supplies delivery for 55 coins
  • Custom Fruit Mix: M opens or closes mixing
  • Auto Serve / Hint: V toggles auto serve; H shows the front-order hint
  • Discard Stock: Backspace attempts to discard the selected active item, or the first ready item if none is selected; only queued or ready items can be discarded
  • Pause / Fullscreen: Escape closes applicable tools or pauses/resumes; F requests browser fullscreen

Mouse and touch input can select products, orders, and menu actions or drag ready items to matching customers. The settings dropdown offers Sound, Music, and Motion toggles; keyboard rebinding and graphics-quality settings are not included. Layouts adapt to the viewport, but mobile usability and fullscreen availability depend on the device, browser, and embedding host.

Tech Stack & Architecture

  • Game Platform – Static HTML, CSS, and plain JavaScript. No package-manager installation or build pipeline is required.
  • Rendering – Canvas 2D with a 1672 × 941 logical scene. The startup check requires a Canvas 2D context, Path2D, and Canvas roundRect.
  • Game Systems – Browser scripts handle recipes, final data overrides, customer simulation, inventory, production, serving, audio, lobby screens, and scene rendering.
  • Browser APIs – The game uses Canvas, Fetch, FontFace, Pointer Events, HTML audio, Web Audio where available, a native recipe dialog, Fullscreen, and Local Storage. Fullscreen is optional; storage is needed for persistence, but gameplay can continue with in-memory state if saving fails.
  • Typography and Media – Game fonts, artwork, and audio are in main_file/scripts/assets/
  • Browser Storage – Progress and preferences use Local Storage key juice-mix-factory-v1 for the current origin and browser profile. Inspect it in DevTools > Application > Local Storage. Deleting it clears saved progress and settings; there are no accounts, cloud saves, or multiplayer.
  • Source Organization – Runtime modules are grouped in main_file/scripts/js/, ad settings in main_file/scripts/config/, and the sponsor placeholder in main_file/scripts/sponsor/. Lobby, styles, and assets use their existing folders; direct play needs no development directory.

Third-Party Dependencies & Libraries

  • Runtime Libraries – The game uses plain browser JavaScript without a bundled third-party rendering framework. Three.js, Chart.js, jsPDF, and html2canvas are not used.
  • Factory and Bungee Fonts – Bundled locally as WOFF2 under SIL Open Font License 1.1. Commercial use and bundling with software, including white-label distributions, are permitted subject to the license conditions. Keep main_file/scripts/assets/fonts/OFL.license and main_file/scripts/assets/fonts/Bungee-OFL.license with redistributed fonts. Follow reserved-name rules for modifications; font files cannot be sold by themselves.
  • Artwork and Audio – Bundled locally. Separate license terms for every artwork and audio file are not supplied; this overview does not establish unrestricted redistribution or resale rights for those assets.
  • Documentation Fonts – The guide loads Bricolage Grotesque, DM Sans, and DM Mono from the Google Fonts CDN. Internet access is required for those guide fonts, with system-font fallbacks if unavailable. This external service is outside the author’s control. The guide documents removing these requests for an air-gapped installation.
  • Optional Sponsor Screen – A local pre-game sponsor iframe is enabled with a two-second skip countdown. Configure J.config.ads in main_file/scripts/config/ads.js and edit only the marked block in main_file/scripts/sponsor/sponsor-placeholder.html. The sandbox permits local assets and blocks scripts. The package includes no ad network SDK, account, or third-party ad code.

Advertisement & Sponsor Integration

Important: Ad networks such as Google AdSense, AdMob, and ironSource are independent third-party services. They are not affiliated with or included in Juice Mix Factory. Each provider has its own account-registration process, eligibility requirements, approval policies, terms of service, and possible costs. Juice Mix Factory provides the sponsor placement infrastructure only. Buyers are responsible for obtaining and managing their own accounts, meeting provider requirements, and following each network’s terms.

  • Ad behavior is configured in main_file/scripts/config/ads.js: ads.enabled is the master switch, ads.preGame.enabled controls the pre-game screen, and ads.preGame.countdown sets the skip delay. The supplied defaults are true, true, and 2 seconds; setting the master switch to false disables the screen.
  • The ready-made local sponsor placeholder is main_file/scripts/sponsor/sponsor-placeholder.html. Its iframe display area is 300 × 250 pixels (Medium Rectangle), with responsive sizing on narrow layouts. The surrounding game screen includes a skip countdown.
  • Replace only the content between AD REPLACEMENT START and AD REPLACEMENT END in main_file/scripts/sponsor/sponsor-placeholder.html. Keep the marker comments, head, stylesheet links, and body class. Adjust the existing settings in main_file/scripts/config/ads.js and test the skip countdown.
  • No third-party ad code, network SDK, or account is included. The enabled setting displays the local placeholder only, using the existing CSS. The runtime applies sandbox="allow-same-origin" for local CSS, fonts, and artwork; pasting provider JavaScript into the replacement block also requires implementing and reviewing script permissions in main_file/scripts/lobby/lobby-ui.js.

FAQ – Ad Network Approval

  • Do ads work out of the box? No. The game includes the sponsor slot and local placeholder page only. No ad-network code runs unless a buyer implements and connects a provider.
  • Who approves my ad account? Each third-party ad network handles its own registration and approval. Approval is not guaranteed by the product or its author, and neither can speed up the provider’s decision.
  • Are there costs or terms? Ad networks have their own eligibility requirements, usage policies, terms of service, and possible costs. Buyers are responsible for meeting those requirements.
  • How long does approval take? Review and approval times vary by provider, so allow time for the network’s process.

System & Browser Requirements

  • A browser supporting the startup Canvas features and other browser APIs listed above is required. No certified minimum-browser-version or device matrix is supplied; test the intended environment.
  • Open main_file/index.html directly in a current browser with the complete scripts/ folder beside it. No development directory, Node.js, npm installation, or build step is needed. The supplied browser icon is main_file/scripts/assets/ui/favicon.png.
  • Static HTTP hosting is also supported. For an optional local preview with Python installed, run python -m http.server 8000 inside main_file/ and open http://127.0.0.1:8000/. Local resources support offline file play; no service worker guarantees cached revisits to a remote site.
  • Local Storage is needed to keep progress between visits. Private browsing, blocked storage, or changing the host/port can prevent persistence or use a different save. Removing the save key resets unlocked days, wallet, stars, upgrades, service totals, and preferences.
  • Pointer input and adaptive layouts are implemented for different viewport sizes. Try landscape when horizontal space is limited. Iframe behavior depends on the host’s frame policies and permissions, including fullscreen. Use in-game settings without editing code; branding, recipes, timing, and hiding service modes require source edits.

Changelog

Version 1.0 – Initial Release

  • Released Juice Mix Factory with 365 days, 15 days per page, 22 recipes, and Classic and Relaxed service modes.
  • Included four production stations, inventory, upgrades, local save progress, and mouse, touch, and keyboard controls.
  • Included bundled artwork, audio, and fonts, a configurable sponsor screen, and setup documentation.

0 average based on 0 ratings.

saaadielab

saaadielab

Visit Author's Portfolio

View Portfolio
Last Update 2026-10-14
Created 2026-10-14
Sales 0
Discussion Comments
Compatible Browsers Firefox Safari Opera Chrome Edge
Software Version HTML5
High Resolution Yes
Files Included JavaScript JS HTML CSS
Video Preview Resolution