算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
gamedev-2d-art-environment-design【设计与创意】Environmental art for 2D games: parallax planning (3-5 layers, depth distribution, scroll-speed ratios), foreground/background composition, atmospheric perspective via palette desaturation, silhouette readability, vignettes / framing, tile density vs negative space, environmental storytelling via tiles. USE WHEN: planning level art, designing parall…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: gamedev-2d-art-environment-design description: | Environmental art for 2D games: parallax planning (3-5 layers, depth distribution, scroll-speed ratios), foreground/background composition, atmospheric perspective via palette desaturation, silhouette readability, vignettes / framing, tile density vs negative space, environmental storytelling via tiles.
Environment design = how the levels look BEHIND the gameplay layer. Composition, depth, mood, storytelling.
Parallax = background layers scrolling at different speeds, simulating depth.
3 layers: far bg + mid bg + foreground gameplay layer (minimal, cheap)
5 layers: sky + mountains far + mountains mid + bg props + gameplay (standard indie)
7+ layers: near sky + far sky + mountains far + mid + close hills + grass + foreground (lush)
Most indie 2D uses 4-5 parallax layers. Hollow Knight uses 5-7.
Each layer scrolls at a fraction of camera movement:
Sky (most distant): 0.05x camera movement
Far mountains: 0.15x
Mid hills: 0.40x
Near props: 0.75x
Gameplay layer: 1.00x (no parallax)
Foreground decor: 1.25x (FASTER than camera, very close)
Foreground that scrolls FASTER than camera creates "I'm passing this" feeling — leaves rustling, fence in front of player.
Distance = atmospheric perspective. Apply progressively:
Stardew Valley sky → mountain → mid hills shows clear desaturation gradient. Skip this and your scene looks flat.
Saturation ratio Layer
20-30% Sky / far bg
40-60% Distant mountains
60-80% Mid hills
80-100% Foreground / gameplay
The gameplay layer (where the player + enemies live) must contrast with bg. If bg is busy + colorful, gameplay layer might disappear.
Rules:
Foreground props (vines, foliage, machinery) frame the action without blocking it. Use:
Empty space (sky, simple terrain) gives the eye rest. Critical for readability. Cluttered scenes overwhelm.
Rule of thumb: 30-50% of frame should be visually quiet (sky, blank terrain, simple gradient).
Darker corners pulling attention to center. Subtle: 5-15% darkening at corners. Aggressive: 30%+ for moody scenes.
In engines:
Avoid both:
Aim for rhythm: alternating dense + sparse regions. Platformer example:
[ground] [sky gap] [pillar] [sky gap] [ground+enemies] [sky gap] [boss arena]
Sky gaps between encounters give breathing room and let players register what just happened.
Tiles tell the story without text:
Place these intentionally. Don't dress an entire dungeon with worn paths — readers will miss the meaningful ones. Apply where the story demands attention.
Decide one light direction per scene (or per time of day):
Then EVERY tile should be shaded consistently with that direction. Inconsistent lighting between adjacent tiles = jarring.
Trick: paint the lighting pass as a separate layer for each tile, then flatten. Bake separate "morning" and "evening" tilesets if needed.
| Mood | Techniques |
|---|---|
| Cozy | Warm palette, cozy lighting (lamp + soft shadow), low contrast, plants/textiles, no sharp edges |
| Tense / horror | Cool dark palette, low light, sharp edges, fog, vignette, asymmetric composition |
| Epic / heroic | Tall vertical scale, strong central composition, dramatic light + bloom, rich saturated palette |
| Mystical / dream | Soft palette, glow / haze, indistinct edges, subtle particle ambience (motes, fireflies) |
| Apocalyptic | Brown + orange + dark teal, broken architecture, dust haze, sparse vegetation |
| Underwater | Cyan dominant, ambient particle (bubbles, plankton), wavering light shafts, distortion |
unity-2d-cameras (parallax via Cinemachine groups)