Coin Machine - Merge Money Making Game

Seele01-Flash
By
Coin Machine is an addictive merge game where you build and optimize your own money-making machine. Drop coins, strategically place power-up chips, and watch your profits multiply with every bounce.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Coin Machine**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** High-contrast, hyper-casual aesthetic inspired by the provided screenshot. Use a "Toon Shader" or unlit materials with rim lighting to mimic 2D vector art in a 3D space. * **Background:** A dynamic plane with a texture of cyan and light blue diagonal stripes (animating slowly) to match the screenshot's energy. * **The Machine (Board):** A vertical "Plinko" or Pachinko-style board. It should contain a grid of empty slots (sockets) where players can place "Chips." * **Key Models:** * **Coins:** Low-poly cylinders with a "$" sign texture. They must have a golden metallic matcap. * **Chips (Bumpers):** Circular or Hexagonal bumpers that act as obstacles. They should display a number indicating their level (Level 1, Level 2, etc.) and change color based on level (e.g., White -> Green -> Blue -> Purple). * **Performance:** Use `InstancedMesh` for the coins and chips to ensure 60fps on mobile devices when hundreds of coins are on screen. Limit shadow casting to the main board only. ### 2. Audio Requirements * **BGM:** An upbeat, looping "elevator bossa nova" or synth-pop track that implies productivity and wealth accumulation. * **Sound Effects (SFX):** * **Coin Spawn:** A soft "pop" sound. * **Bounce:** A satisfying metallic "clink" or digital "ping" whenever a coin hits a Chip. The pitch should rise slightly with consecutive bounces. * **Merge:** A rising "magic whoosh" sound when two chips combine. * **Collection:** A classic cash register "Cha-ching" when a coin reaches the bottom bucket. ### 3. Gameplay Loop * **Core Mechanic:** An automated stream of coins falls from a dropper at the top of the screen. * **Physics:** Implement a physics engine (like Cannon.js) for realistic gravity, restitution (bouncing), and collision. Coins must physically bounce off the Chips. * **The Merge Strategy:** * The player buys "Chips" (Bumpers) which spawn in empty slots on the board. * **Merging:** Dragging a Level 1 Chip onto another Level 1 Chip merges them into a Level 2 Chip. Higher-level chips have higher "bounciness" or apply a higher cash multiplier to the coin that hits them. * **Economy:** * Coins start with a base value (e.g., $1). * Every time a coin hits a Chip, its value increases based on the Chip's level. * When the coin falls off the bottom of the screen, the total value is added to the player's wallet. * **Goal:** Earn enough money to buy more chips, fill the board, and merge them to max level. ### 4. Mobile Controls & Interaction * **Orientation:** **Portrait Mode** (Vertical) is mandatory to accommodate the falling physics. * **Camera:** Orthographic camera positioned directly in front of the board (slightly tilted) to give a clear view of the entire machine. * **Touch Controls (Raycasting):** * **Tap Button:** Large UI button at the bottom to "Buy Chip". * **Drag & Drop:** Implement a raycaster that detects touch on a Chip. The player can drag a chip to a new slot or drop it onto another chip of the same level to trigger a merge. * **UI Layout:** * Top: Total Cash Display (Large, bold font). * Bottom: "Buy Upgrade" button (Height > 50px for touch accessibility). * **Feedback:** Add a slight screen shake (camera offset) when a high-level merge occurs. Display floating text numbers ("+$10") where coins are collected. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About Coin Machine

Coin Machine is an engaging merge strategy game that puts you in control of your very own cash-generating empire. This innovative physics-based game combines the satisfaction of merge mechanics with strategic money management, creating an addictive gameplay loop that keeps players coming back for more.

In this unique money-making simulator, every coin drop matters. Watch as coins bounce through your carefully crafted machine, generating profits with each collision while you strategically plan your next upgrade.

Core Features

Strategic Merge Mechanics

The heart of Coin Machine lies in its sophisticated merging system. Combine identical power-up chips to create more powerful money-generating components. Each merge unlocks new possibilities and dramatically increases your earning potential.

Physics-Based Coin Dropping

Experience realistic physics as coins tumble through your machine. Every bounce, collision, and path creates opportunities for profit. The satisfying visual feedback makes each coin drop feel rewarding and meaningful.

Progressive Upgrade System

Unlock new chip types, machine components, and strategic positions as you advance. Each upgrade opens new tactical possibilities and profit multiplication strategies.

Idle Profit Generation

Your money machine continues working even when you're away. Return to find accumulated profits waiting, allowing for continuous progression and long-term strategic planning.

Cross-Platform Compatibility

Enjoy seamless gameplay across all devices. Whether on desktop or mobile, your money-making empire travels with you.

Gameplay Mechanics

Basic Operations

Start by dropping coins into your machine and watching them generate profits through bounces and interactions with your placed chips. Use accumulated earnings to purchase new power-up chips and strategic upgrades.

Strategic Chip Placement

Position power-up chips in optimal locations to maximize coin interactions. Each placement decision affects your overall profit efficiency and long-term earning potential.

Merge Strategy

Combine identical chips to create more powerful variants. Higher-level chips generate significantly more profit per interaction, making strategic merging essential for progression.

Operation Guide

Basic Controls: - Click/Tap : Select items and navigate menus - Click and Hold : Merge identical chips together - Drag : Position chips in strategic locations - Drop Coins : Generate profits through machine interactions

Getting Started: 1. Begin with basic coin drops to generate initial profits 2. Purchase your first power-up chips using earned money 3. Experiment with chip placement to find optimal positions 4. Merge identical chips to create more powerful variants 5. Reinvest profits into new upgrades and expansions

Pro Tips: - Focus on chip positioning before investing in expensive upgrades - Merge chips strategically to maximize profit per space - Observe coin bounce patterns to optimize placement - Balance immediate profits with long-term upgrade investments

Why Play Coin Machine

Completely Free Experience

Enjoy full access to all game features without any payment requirements. This free-to-play model ensures everyone can build their money-making empire without financial barriers.

Perfect for All Skill Levels

Whether you're new to merge games or a strategy veteran, Coin Machine offers accessible mechanics with deep strategic depth. Simple controls make it easy to start, while advanced strategies provide long-term engagement.

Satisfying Progress Loop

Experience the dopamine rush of watching profits multiply as your machine becomes more efficient. Each upgrade provides tangible improvements and visual feedback.

Stress-Free Gaming

No time pressure or failure states mean you can play at your own pace. Perfect for casual gaming sessions or extended strategy planning.

Cross-Device Continuity

Start playing on your computer and continue on your phone. The game adapts perfectly to different screen sizes and input methods.

Game Categories

Coin Machine expertly combines multiple gaming genres: - Merge Games : Core chip combination mechanics - Strategy Games : Long-term planning and optimization - Physics Games : Realistic coin bounce interactions - Idle Games : Passive profit generation - Logic Games : Strategic thinking and problem-solving

Frequently Asked Questions (FAQ)