Raft Life - Ocean Survival Adventure

Seele01-Flash
By
Raft Life is an immersive ocean survival simulation where you build and expand your floating home while crafting essential resources and defending against dangerous sharks in the endless sea.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "**Raft Life - Ocean Survival Sim**". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style:** Low-poly, vibrant cartoon 3D style similar to "Hyper-casual" games. Colors should be bright and saturated (ocean blue #0099ff, raft wood brown #8B4513, lush green #32CD32). * **Models:** * **Player Character:** A simple, cylindrical or capsule-based "stickman" style character (like the screenshot) with primitive shapes for limbs. * **The Raft:** Modular square tiles made of logs. The texture should look like tied wood. * **Resources:** Floating wooden planks, plastic debris, and palm leaves. * **Sharks:** Low-poly models with a visible dorsal fin above water. * **Environment:** Infinite ocean shader with gentle wave displacement (vertex shader). A bright skybox with fluffy white clouds. * **Effects:** * Splash particles when the shark attacks or when fishing. * "Pop" effect scaling animation when a new raft tile is built or a resource is collected. * **Optimization:** Use InstancedMesh for raft tiles and floating resources to maintain 60 FPS on mobile. Keep polygon count per model under 500 triangles. ### 2. Audio Requirements * **BGM:** A tropical, marimba-based, upbeat loop. Relaxing but adventurous (calypso style). * **Sound Effects (SFX):** * **Wood Chop/Build:** A satisfying "thud-click" sound. * **Water Splash:** Light splash for movement, heavy splash for shark jumps. * **Collection:** A high-pitched "ding" or "pop" when gathering floating items. * **Shark Alert:** A dramatic, accelerating low-frequency string or bass sound when a shark approaches. * **UI:** Soft "bubble" sounds for clicking buttons. ### 3. Gameplay Loop * **Core Mechanic:** The player starts on a small 2x2 raft. They must hook floating resources (wood) from the ocean edge. * **Expansion:** Resources are spent to add more tiles to the raft (expanding the walkable area). * **Economy:** * 1. Collect Wood -> Build Raft Floor. * 2. Collect Fish -> Sell for Coins (UI counter). * 3. Use Coins -> Buy upgrades (e.g., Apple Tree decoration, faster fishing rod). * **Threat (The Shark):** Periodically, a shark circles the raft. It will bite a random edge tile. The player must run to that tile and tap/hit the shark to drive it away before the tile is destroyed. * **Progression:** As the raft gets bigger, passive resource generators (like a Net) can be built. ### 4. Mobile Controls & Interaction * **Movement:** * **Virtual Joystick:** Implement a dynamic floating joystick on the bottom-center or bottom-left of the screen. Dragging moves the character. * **Orientation:** Portrait mode (Vertical) is preferred for one-handed casual play, but the camera should be an Isometric Top-Down view (approx 45 degrees). * **Interaction:** * **Auto-Action:** When standing near the edge of the raft, the character automatically starts "fishing" or "hooking" resources if the joystick is released. * **Shark Defense:** Tapping directly on the shark model when it is attacking performs a "Whack". * **UI Layout:** * Top Left: Wood & Coin resource counters (large, legible text). * Bottom Right: "Build" button (toggle build mode). * Ensure all buttons are at least 44x44 pixels with ample padding. * **Feedback:** * **Haptic:** Trigger a short vibration (using `navigator.vibrate`) when resources are collected or the shark is hit. * **Visual:** Floating text (+1 Wood) rises from the player's head upon collection. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Raft Life is a captivating 3D survival simulation that transforms you from a shipwreck survivor into a master ocean dweller. Starting with nothing but a small wooden raft in the vast ocean, you must use your wits, creativity, and survival instincts to build a thriving floating paradise. This free-to-play browser game combines elements of crafting, building, farming, and adventure in a beautifully rendered oceanic world.

The game offers an engaging top-down perspective that gives you complete control over your maritime destiny. Whether you're a casual gamer looking for relaxing gameplay or an adventure seeker craving survival challenges, Raft Life delivers an experience that's both accessible and deeply rewarding.

Core Features

Comprehensive Survival Mechanics

Raft Life excels in delivering authentic survival gameplay without overwhelming complexity. You'll need to manage hunger, gather floating debris, and constantly expand your living space to accommodate new structures and resources.

Dynamic Building System

The game's building mechanics allow unlimited creativity. Start with basic wooden planks and gradually construct multi-level structures, storage areas, farming plots, and defensive installations. Every piece you add serves both functional and aesthetic purposes.

Resource Management & Crafting

Master an intuitive crafting system that transforms simple ocean debris into essential survival tools. Fish for your next meal, collect floating wood and plastic, and discover rare materials that unlock advanced building options.

Interactive Wildlife Encounters

The ocean teems with life, both friendly and dangerous. While aggressive sharks pose constant threats to your raft's integrity, helpful seagulls drop valuable resources and other marine creatures offer unique interaction opportunities.

Farming at Sea

Develop your green thumb by cultivating fruits and vegetables on your floating garden. This innovative farming system adds a peaceful, meditative element to the survival experience while providing sustainable food sources.

Gameplay Mechanics

Starting Your Ocean Adventure

Your journey begins dramatically - awakening from a shipwreck with only a small wooden platform beneath you. The transition from city life to ocean survival creates an engaging narrative backdrop that motivates your building and crafting efforts.

Expansion and Construction

Growth is the key to long-term survival. Chop floating logs to create additional raft sections, then strategically place structures like storage boxes, cooking stations, and defensive barriers. Each expansion opens new gameplay possibilities.

Combat and Defense

Shark encounters add thrilling action sequences to the otherwise peaceful building gameplay. Learn timing and positioning to successfully defend your raft while minimizing damage to your carefully constructed home.

Operation Guide

Basic Controls

  • Movement : Use WASD keys, arrow keys, or drag with left-click to navigate around your raft
  • Interaction : Left-click on objects, buttons, and interface elements to interact
  • Camera : The top-down view automatically adjusts to keep your character centered
  • Building : Select items from your inventory and click on valid placement areas
  • Crafting : Access crafting menus through interaction with appropriate stations

Essential Survival Tips

  1. Prioritize expansion early - A larger raft provides more building opportunities
  2. Maintain food sources - Balance fishing with farming for sustainable nutrition
  3. Prepare for shark attacks - Keep defensive tools ready and repair materials available
  4. Collect everything - Even seemingly useless debris often has crafting applications
  5. Plan your layout - Organize buildings efficiently to maximize space utilization

Why Play Raft Life

Raft Life stands out in the survival simulation genre by offering a perfect balance of challenge and relaxation. Unlike hardcore survival games that can feel punishing, this title maintains an optimistic, creative atmosphere that encourages experimentation and long-term planning.

The game's completely free accessibility through web browsers makes it instantly available to anyone seeking quality entertainment. No downloads, installations, or payment requirements - simply open your browser and start your ocean adventure immediately.

The cross-platform compatibility ensures you can continue your raft-building progress whether you're on a desktop computer, laptop, tablet, or smartphone. The responsive design adapts seamlessly to different screen sizes while maintaining the full gameplay experience.

For players who enjoy creative building games like Minecraft or survival simulators like Subnautica, Raft Life offers a unique middle ground that emphasizes construction and resource management over complex survival mechanics or combat systems.

Frequently Asked Questions (FAQ)