CywerStudioCywerStudio
View products
v1.0 Multiplayer Mirror Ready Unity 6+ CC0 Sprites

TerraFlux2D

Procedural 2D World Framework. TerraFlux2D is a modular, multiplayer-ready framework for creating infinite procedural 2D worlds in Unity. Deterministic generation, chunk streaming, a lobby with numeric room codes, 4 seasons, and persistent decorations — all included and ready to extend.

7 Biomes Chunk Streaming Lobby + Room Codes 4 Seasons Auto-Save 35 Scripts

01 Key Features

Procedural Generation

Infinite worlds via 3-layer Perlin Noise (height, temperature, moisture). Same seed always produces the identical world.

Chunk System

World split into square chunks. Generated server-side and streamed to clients. Only nearby chunks are kept in memory.

7 Biomes

Plains, Forest, Desert, Swamp, Winter, Beach, Ocean — each with unique tiles, trees, rocks and decoration spawn rules.

Decoration System

Deterministic trees, rocks and flowers per chunk. Destroyed objects persist permanently and never respawn after deletion.

Season System

Spring, Summer, Autumn, Winter — synced over network with smooth tile transitions. Season state saved per world.

Save System

Auto-save every 5 min. Saves metadata, destroyed decorations and season as human-readable JSON files.

Multiplayer Lobby

6-digit numeric room codes. Host creates, friends join by code — no IP address required. Ready-state system included.

Mirror Architecture

Server-authoritative world gen and chunk streaming. Seed synced to all clients on join. Supports host and dedicated server.

02 Architecture

World/

WorldGenerator.cs · ChunkLoader.cs · ChunkNetworkManager.cs · ChunkDecorator.cs · ChunkRenderer.cs · BiomeData.cs

SaveSystem/

WorldManager.cs · SaveManager.cs · DecorationSaveManager.cs · SampleSceneBootstrap.cs · AutoSaveWorld.cs

MainMenu/

MainMenuController.cs · WorldItemUI.cs · RoomCodeRegistry.cs

MainMenu/Lobby/

LobbyManager.cs · LobbyPlayer.cs · LobbyUI.cs · LobbyPlayerRow.cs

Player/

PlayerMovement.cs · CameraFollow.cs · YDepth.cs

Resources/

TreeHealth.cs · RockHealth.cs · PlantHealth.cs

03 Getting Started

  1. Import the asset into your Unity 6+ project
  2. Install Mirror Networking via Package Manager
  3. Open the MainMenu scene and press Play
  4. Create a world and click Criar Sala to host
  5. Share the 6-digit room code with friends
  6. Host clicks Iniciar in the lobby to start

04 Requirements

DependencyVersion
Unity6.0 or newer
MirrorLatest (not included)
Input System1.7+ (Unity package)
Render PipelineBuilt-in (2D)

05 Customization

New Biome

Create BiomeData ScriptableObject, assign tiles & prefabs, add to WorldGenerator.

Decoration Density

Adjust spawn chances in BiomeData. Set max per chunk in ChunkDecorator.

Season Duration

Change seasonDuration in SeasonManager (in seconds).

Room Code Length

Modify GenerateRoomCode() in MainMenuController.cs.

Chunk Size

Set chunkSize in WorldGenerator. Larger = fewer chunks, more tiles each.

Limitations v1.0

Planned Updates

06 License

Unity Asset Store EULA.

Sprites by Anokolisa — CC0 1.0 Universal. Public domain. Free for commercial use.

Note

TerraFlux2D is a foundation framework, not a complete game. It is designed to be extended and integrated into your own projects.

TerraFlux2D · CywerStudio · v1.0