NOMAD ENERGETIC COMPANY. Pure C + Raylib flying experience. Native, Web, VR
  • C 97.3%
  • Shell 2.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Krzysztof Krystian Jankowski 7ab2956284 Release v1.11.0 (build 117): concept-art biome pass, foliage, dune seam fix
- BUILD_NUM 117, installer AppVersion 1.11.0, README installer name
- Sponge Maze rebuilt from concept art: faceted orange sponges with round
  holes, cobalt water, lavender sand, floor dressing
- Foliage update (conifers, meadow props) and Root Rafts biome per concepts
- Biome fine-tuning from concepts: Iceland night, Moonbreak Fjords, Ice
  Keel, Coppercap Marsh night, Antarctic dawn, Rainspill Terraces, The
  Molt, Kelp Cathedral (all biome-gated)
- Dunes: fixed 1px chunk-border seams (valley AO sampled the neighbour
  ring; sun-shadow march continues into neighbour tiles, borders re-marched
  on upload)
- Landing dropship model and dev preview (--dropship), not in gameplay yet
- Regenerated HTML5/fly and HTML5/fly-vr (b117)

Packages (zig build release), SHA-256:
  3b5fbf70dbf0055700590eddeec9edb9c4cd59aa0c622412cea0c8042d8072d5  rayfly-b117-win64-setup.exe
  f9bcfb57e4f30443dc88d731291ef171d6e3024f4254fe88726763b530c9f8bb  rayfly-b117-win64.zip
  be74d4e9fa8047e29c3809b9aca65a2b45bd428765634a25d48e2a24def8d319  rayfly-b117-html5.zip
  8bbe6fb9baebcd168d95dbfce5b6048ea3ad49884d3c0ff4f960799dae9b4644  rayfly-b117-html5-vr.zip
  f7222af39f329d2110bae6751b27f15a9860d6ecd7c5de7cca97bc67ee655535  rayfly-b117-HTML5-all.zip

Checks: portable zip launches from a temp dir and renders (sandy look shot,
no seams), both index.js pass node --check, both index.wasm validate,
sw.js cache rayfly-b117-*.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 01:36:51 +01:00
.pi Terrain live editing: shot blasts carve craters, scorch the tint, bend/char trees; per-chunk edit files + big-map index (campaign only, chunk seams stay welded, stream-out and save write them); weapon 4: atomic bomb (KEY_B, 40u wave, 14u bowl, 30s cd); save.c shares the atomic FileStore; landing shots + docs screens refresh 2026-11-24 22:41:39 +01:00
assets Cinematic tour (launcher WORLD tab) + map view music 2026-11-27 19:53:34 +01:00
docs Release v1.11.0 (build 117): concept-art biome pass, foliage, dune seam fix 2026-11-28 01:36:51 +01:00
HTML5 Release v1.11.0 (build 117): concept-art biome pass, foliage, dune seam fix 2026-11-28 01:36:51 +01:00
src Release v1.11.0 (build 117): concept-art biome pass, foliage, dune seam fix 2026-11-28 01:36:51 +01:00
tests Release v1.6.0 (build 112): console UI, water reflections, intro mothership 2026-11-25 20:30:56 +01:00
third_party Vendor raylib 6.2 as third_party/raylib submodule; self-contained build 2026-11-24 19:42:51 +01:00
tools Build: Zig-only build system with native/windows/linux/html5/release steps 2026-11-27 20:45:01 +01:00
webbuild Soundtrack: launcher.mp3 on the launcher, cinematic.mp3 on title/cinematic/demo 2026-11-27 19:50:13 +01:00
.gitignore Build: Zig-only build system with native/windows/linux/html5/release steps 2026-11-27 20:45:01 +01:00
.gitmodules Vendor raylib 6.2 as third_party/raylib submodule; self-contained build 2026-11-24 19:42:51 +01:00
build.zig Build: Zig-only build system with native/windows/linux/html5/release steps 2026-11-27 20:45:01 +01:00
compile_flags.txt Build: Zig-only build system with native/windows/linux/html5/release steps 2026-11-27 20:45:01 +01:00
icon.ico Landing: biome flight-loop GIFs, Light section, refreshed captures (+ shared WIP from parallel sessions) 2026-11-26 00:09:15 +01:00
icon.png Landing: biome flight-loop GIFs, Light section, refreshed captures (+ shared WIP from parallel sessions) 2026-11-26 00:09:15 +01:00
installer.iss Release v1.11.0 (build 117): concept-art biome pass, foliage, dune seam fix 2026-11-28 01:36:51 +01:00
plan.md fix: two-sided chunk border normals -- BuildTile generates a (GRID+2)^2 wide noise domain (offset -1, scale*GW/GRID keeps the perlin domain identical since raylib normalizes by image width), computes a 1px neighbor ring into job+chunk mhW; TileCombineH extracted from the combine loop so the ring reuses the exact height formula (city rings take the ramp path); BuildTerrainMeshAt reads TileW lookups so seam vertices see across the border. Probe: adjacent tier-0 chunks report maxNormalDiff=0 (bitwise). Seed-38 maxH 59.8 / corridor 24.2 unchanged; ASan clean; bench 48.8fps avg 2026-11-22 03:03:42 +01:00
README.md Release v1.11.0 (build 117): concept-art biome pass, foliage, dune seam fix 2026-11-28 01:36:51 +01:00
RELEASE.md Build: Zig-only build system with native/windows/linux/html5/release steps 2026-11-27 20:45:01 +01:00

Nomad Energy Corp.

An infinite procedural flight sim

The Nomad Energy Corp. title screen: the wordmark above a cloud-streaked planet seen from orbit

Nomad Energy Corp. is a single-file C game built on raylib 6.2 /

Layout: game code in src/main.c (single translation unit), embedded assets in src/assets/, docs and references in docs/, build in build.zig with helpers in tools/ (staged builds and packaged releases in zig-out/). OpenGL 3.3 core. You fly a spaceship over an endless, streamed procedural planet: alpine massifs with snow caps, deep-forest and sandy biomes, rivers, lakes and alien colonies — all generated and remeshed on the fly while you fly.

studio:   Cyfrowy Nomada
repo:     https://git.cyfrowynomada.com/CyfrowyNomada/rayfly
binary:   one packed executable, static raylib, no data files

Features

  • Infinite terrain streaming — background worker thread generates chunk tiles (world-aligned noise stack: detail, ridged peaks, valleys, rivers, moisture, biome selector); the main thread uploads a few per frame
  • Per-chunk LOD — error-driven mesh tiers with border skirts; mountains keep full detail, flat land drops to coarse grids, collisions sample the full grid
  • Dense forests, alien colonies — baked per-chunk tree meshes (zero extra draw calls), ocean/river water with shore foam, animated cloud decks, sky dome
  • Hand-rolled render pipeline — custom fog/sun shader, water shader, sky shader, per-tile baked sun shadows, film-look LUT post grade, SDF-font military HUD (pitch ladder, heading tape, FPS arc gauge, VRAM/stream monitors)
  • Flight model — mouse aim + keyboard, speed-linked FOV, terrain skimming, smooth chase camera
  • Scenes: studio logo, space menu, intro cinematic, gameplay (in progress)
  • Energy / afterburner, shields, weapons, reputation — see the roadmap
  • Live 24h time of day — the launcher TIME slider picks the starting hour (DAWN 06:00 · DAY 12:00 · GOLDEN 17:00 · SUNSET 19:30 · NIGHT 22:30, blended in between); in flight the clock keeps running through dusk, night and pre-dawn back to dawn. Sun, light rig, sky, fog, ground shadows and the film grade follow it live; the launcher DAY button sets the length of a full day (12 / 24 / 48 min, or FROZEN). The current time shows next to the biome name on the HUD. NIGHT swaps the sky glow for a starfield and a cold moon. Volumetric-look clouds ray-marched through baked 3D noise.
  • VR — WebXR build for the Quest browser and native PC VR (OpenXR / Quest Link)
    • PC VR is a launcher toggle (PLAY → VR mode): with it on, Resume / New / Test flight / Benchmark all start in the headset
    • VR style → EXPERIENCE is a comfort mode for motion sickness: you stand still at a biome spot and watch the ship fly loops like a line-of-sight drone (--exp <biome> previews it on the flat screen)

Time of day

The same flight path under all five lighting presets.

Pale dawn light reflected in the lake Blue water and sunlit rock spires in full daylight
Dawn Day
Golden light across the lake and forest Orange sunset behind the rock spires
Golden hour Sunset
The lake and spires under blue moonlight
Night

Regenerate: main.exe --look <0..1> out.png (0 = dawn, 0.25 day, 0.5 golden, 0.75 sunset, 1 night). The clock is frozen in --look and benchmark runs.

Biomes

Two slow world noises (wet/dry and temperature) pick the biome; borders blend height, colour, water and atmosphere, and the HUD shows the biome name above the position readout. Temperate lands keep the deep forest, dune plains and alpine massifs; hot zones turn into marsh, keys or the sulfur basin, cold zones into fjords. A third continental noise carves exotic regions out of the warm bands: The Molt on the dry side, The Bellows on the wet side. Reference art: docs/*.png, palettes: docs/biomes.md.

An autumn-tinted forest canopy around a calm lake Golden dunes rolling down to turquoise oases
Deep Forest — broadleaf canopy, lakes and rocky rivers Dune Plains — wind dunes and turquoise oases
Olive-gold peaks around a blue lake under a pale spire Giant copper mushrooms over winding wetland channels
Dry Alpine — sandstone massifs and sea-glass lakes Coppercap Marsh — flooded flats and towering fungi
Palms crowding a sandy key by turquoise shallows Dark stepped cliffs walling a cold inlet
Turquoise Keys — sandy islands and turquoise shallows Moonbreak Fjords — cratered plateaus and dark inlets
Forked black spires over lava-seamed basalt in pink haze Rippled deep-blue water to the horizon
Sulfur Basin — cracked basalt and lava channels Open Sea — deep water between the continents
Snowfields broken by walls of blue glacial ice Snow dunes with frozen dead trees
Iceland — snowfields and glacial ice cliffs Antarctic — wind-packed snow and frozen groves
A giant ribcage between two colossal bone arches on a violet dust plain Basalt hex columns and hollow chimneys venting gas plumes in green haze
The Molt — graveyards of colossal bones: arches, ribcages, skulls, tusks The Bellows — basalt columns and venting gas chimneys

Below the waves, the open sea splits by water temperature and its own marine noise into six seabeds: cold seas hold Ice Keel and Brine Mirror, temperate seas Kelp Cathedral and Drowned Dunes, warm seas Sponge Maze and Lantern Trench. The rest stays open abyss with its isles and volcanoes. Each seabed sets its own water colour, underwater fog and seabed palette.

Giant kelp stalks rising to an amber canopy in green water Ivory sand ridges under bright turquoise water
Kelp Cathedral — giant swaying kelp under an amber canopy Drowned Dunes — sand ridges and slab rocks in clear shallows
Cobalt ice blades hanging from a white shelf overhead A violet brine lake lying on the seafloor
Ice Keel — a floating ice shelf with keels hanging into deep blue Brine Mirror — violet brine lakes ringed by white mineral terraces
Rust and ivory lattice towers and an arch in indigo water Glowing streaks along dark canyon ledges
Sponge Maze — fly-through lattice towers and arches Lantern Trench — a black canyon traced by bioluminescence

Above it all, a sky mask lifts some land into floating islands over a cloud sea far below: Root Rafts in hot zones, Magnetite Drift in the cold fjord band, and a temperate mix of Root Rafts, Rainspill Terraces and Sail Colony. Islands are solid (land on them, or fly under them through the roots). The living sails drift and bob, but have no collision.

Grassy floating islands under amber umbrella trees, roots trailing into the mist A cascade of slate shelves with turquoise pools, waterfalls spilling into the clouds
Root Rafts — amber trees above, roots hanging deep into the mist Rainspill Terraces — a cascade of slate shelves, each pool spilling into the next
Tilted black stone plates with silver edges in a rainstorm Giant sail creatures drifting through lavender haze
Magnetite Drift — tilted black plates in a permanent storm bank Sail Colony — herds of drifting living sails

Regenerate: main.exe --look 0.25 out.png 0 --biome <id> --at 0 -8300, with <id> one of forest sandy alpine marsh keys fjord volcanic ocean iceland antarctic fossil bellows kelp dunesea icekeel brine sponge lantern rafts rainspill magnetite sails (forces one biome everywhere outside the spawn meadow). The current set uses --at 2000 -3000 for fjord and iceland and --at -900 -8300 for sandy; fossil is --look 0.25 out.png 0.05 --biome fossil --at 1090 -560 --hold 30 and bellows --at 1500 -1400 --alt 30. Seabed shots hold the ship under water, e.g. --biome sponge --at 400 -660 --hold -8 (kelp --at 446 -652 --hold -12 0.25, brine --at 393 -690 --hold -1.5 -0.3). Sky shots: --look 0.25 out.png -0.25 --biome rafts --at 600 -420 --hold 72 (same for rainspill and magnetite; sails --at 620 -440 --hold 50 with pitch 0). --look stills hide the transient CITY SIGHTED card and the streaming panel. Title shot: RAYFLY_LPREVIEW=1 RAYFLY_LT=10 main.exe --look launcher docs/screens/title.png.

Flora factory

Plants come from an asset library, src/assets/flora.h: each plant is a hand-authored recipe (a short list of parts such as trunk, fronds, conifer skirts, grass blades, branches with leaf balls, crystals, caps, flower heads and rocks, plus a four-colour palette), and each biome has a table of placement rules (asset, density, height or depth band, slope band, grove clustering, size range and an optional palette override). src/engine/factory.c bakes those recipes into the chunk soup. The hand-coded props (palms, tree ferns, mushrooms and so on) are registered under the same asset ids, so rules can place either kind. A recipe can be reused across biomes with a different palette: the spruce appears in four biomes, the crystals in seven. The launcher Flora row (DISPLAY tab: AUTO / OFF / LOW / HIGH, saved as flora) sets the density. You can also use --flora <0-3> or --noflora.

Spruces, ferns, flowering shrubs and wildflowers on a green forest hill A grove of spruces in tall slim and broad old shapes on olive alpine slopes
Deep Forest: spruces, ferns, flowering shrubs, wildflowers Dry Alpine: a spruce grove, every variant
Column cacti, oasis palms, barrel cacti, shrubs and dune grass on golden sand Snow-loaded spruces, ice crystal clusters and snowy shrubs on white snow
Dune Plains: column and barrel cacti, oasis palms, shrubs, dune grass Antarctic: snow-loaded spruces, ice crystals, frosted shrubs
Chalk-white bone thickets, violet puffballs and amethyst crystals on pink dust Ember lilies with glowing bulbs, sulfur crystals and ash shrubs on cracked basalt
The Molt: bone thickets, puffballs, amethyst crystals Sulfur Basin: ember lilies, sulfur crystals, ash shrubs

Regenerate: main.exe --propshot out.png <biome> --biome <biome>, for example --propshot out.png alpine --biome alpine for that biome's line-up on its own ground. The alpine grove is --propshot out.png spruce --biome alpine. The Molt, Sulfur Basin and Antarctic shots are cropped around the plants.

Every asset has at least three variants. Each recipe lists its own: height, part length and width, trunk radius, extra or fewer items, lean, droop and a colour tint, for example the spruce's tall slim and broad old shapes. The coded props get three default variants (as built, taller and cooler, shorter and warmer). Each instance picks a variant from its position hash. On top of that it gets a small random tint (warm/cool, green and brightness, 10% by default, tintJ per recipe), so neighbours never look like copies.

Props grow out of the ground instead of standing on it: the fog shader fades the bottom band of every natural prop into the terrain colour right under each fragment, read from the chunk's ground texture. Factory plants use a band scaled to their height. Everything else (forest canopy, cone lattice, palms, mushrooms, rocks) uses a fixed 0.38u band measured to the local terrain. Colony buildings, plants under water and anything floating on water keep their own colour.

Props have physically based surface materials with procedural "textures": leaf, bark, stone, fungus, crystal, petal, bone, succulent and moss. Each has its own world-space pattern, projected on three axes to follow the surface (speckled leaf clumps and veins, vertical bark fissures, stone mottling with cracks and iron stains, pitted bone, waxy cactus ribs, fuzzy moss), plus a bump and a roughness/reflectance pair for GGX sun specular and a sky reflection. Leaves, petals, moss, succulents and crystals also let light through: they glow when you look toward the sun through them, and their back faces stay softly lit. The patterns fade out by about 64u, so far props and the far-forest cards stay flat. Factory parts take their material from the part kind (or .mat in the recipe). The hand-coded builders tag theirs (mushrooms, bark, rocks, bones, autumn crowns). Anything else is classified from its colour. The launcher Plant detail row (DISPLAY tab, saved as propq, or --propq <0-3>) sets the cost: HIGH is the full effect, LOW keeps the materials, shine and sub-surface light but drops the bump and fades the patterns out by 30u, and OFF goes back to flat colours. AUTO picks LOW at Low quality and in VR, otherwise HIGH. The dense conifer lattice (the cone forests of Dry Alpine and the conifers in Deep Forest and other biomes) uses tiered, faceted cones: a wide lower skirt and a narrower upper one turned 60 degrees, six triangles per tree. With Plant detail OFF it falls back to the classic three-plane stars at half the vertices. Coppercap Marsh grows an alien fungal forest. The copper, ivory and burgundy caps and the golden trumpets are smooth meshes whose detail scales with their size; Plant detail OFF keeps the old low-poly caps. Around them grow seven more species: towering white ghost spires, clumps of glowcaps that light the swamp green at night, lantern puffs bobbing glowing orbs, orange coral fungus, violet-to-teal pagoda shelves, shaggy inkcaps with a black ink hem, and tendril blooms trailing glowing cyan. A few of them also appear in Deep Forest, Sulfur Basin, The Molt, The Bellows and Lantern Trench.

Adding a plant: write its parts and recipe, add an FA_* id and its FAB_ASSETS entry, add a rule line to a biome table, and look at it:

main.exe --propshot out.png [biome|asset|all]

--propshot makes a still you can compare between builds. It always uses the same settings: noon with the clock frozen, HIGH quality (unless you pass --low or --med), no rain, dune ground and no other props. It hides the HUD and the ship and lines the assets up from smallest to tallest. all shows every asset in its own palette. A biome id shows that biome's rule set in the palettes it is placed with, every variant. An asset name (spruce, fern, column_cactus; spaces become underscores) shows each of its variants in a row with three seeds each. --biome changes the ground and --at <x> <z> changes the spot. --floragallery [biome] shows the same line-up inside a normal --look shot, with the HUD and ship visible. Both print the asset order to stdout.

Every flora asset lined up on bare dune ground, smallest to tallest

Colonies

Alien capitals and outposts terraform their ground into hex-plated terraces. Capitals follow one of eight archetypes. The classic four (Hive Citadel, Spire Forest, Grid Metropolis, Monolith Rings) can appear anywhere; the land picks the other four about half the time, and each carves its own ground:

Five dark wedge halls around a glowing reactor court Leaning towers and a bridge over a river gorge
Basin Ring (forest) — wedge halls around a sunken reactor court, breach to the water Rift Span (fjord, alpine, volcanic) — cliff towers over a river gorge, two bridges
Causeways from a domed hub to district islands in turquoise water Three banded pylons around a deep shaft in the snow
Delta Fork (keys, marsh, dunes) — raised causeways from a hub to district islands Hollow Spire (snow, ice) — tapered pylons around a deep shaft with a slot exit

main.exe --citylist prints the capitals near the origin (archetype, position, biome); --cityarch <0..7> forces every capital to one archetype. Shots: --look 0.3 out.png -0.42 --at <x> <z + 1.7 r> --hold 62.

Weather

Volumetric clouds drift with the wind and cast moving shadows on the terrain. The densest cores become storm cells: lower, taller and darker, with rain streaks, distant rain veils and a dimmed, greyer world under them.

Rain streaks over a lake beneath dark clouds Golden-hour clouds above a lake and rock spires
Rain — flying under a storm cell Clouds — looking up at the cloud deck

Regenerate: main.exe --look 0.25 out.png --rain / main.exe --look 0.5 out.png 0.45 --alt 70.

Controls

Release the movement and lift controls to brake into a hover. Underwater, the ship moves more slowly and gently rises when lift is released.

Input Move forward, back, or sideways Yaw Nose up / down Climb / descend Boost
Keyboard W / S, A / D Q / E or ← / → ↑ / ↓ R / F Left Shift
Mouse + keyboard W / S, A / D Move cursor left/right of center, or use Q / E Move cursor above/below center, or ↑ / ↓ R / F Left Shift
Touch Right stick Y (throttle), left stick X (strafe) Right stick X, or GYRO wheel tilt Left stick Y, or GYRO fore-aft tilt UP / DN buttons BOOST
VR (OpenXR / WebXR) Right thumbstick Left thumbstick X — Left thumbstick Y Right grip

The ship flies where the nose points: pitching up or down climbs or dives along the nose, faster the quicker you fly (and gently while hovering). In MOUSE mode, cursor height pitches the nose. Center the cursor to stop commanding a turn. Touch GYRO (tap to toggle) steers by tilt: rotate the phone like a wheel to turn, tilt it fore and aft to pitch the nose, and the horizon stays level with the real world. CTR recalibrates neutral to your current grip and SENS cycles low / mid / high sensitivity. NUKE fires weapon 4. The chase camera banks with the ship in regular flight. In VR, head tracking controls the viewing angle and roll.

H or F1 toggles terrain-aware cruise assist. Use Space or left click to fire, L or right click to catch, F11 for wireframe, F7 to refill energy and weapon cooldowns (dev cheat), F10 for fullscreen (F1 outside flight), and Esc for the menu. In VR, use the right trigger to fire and the left trigger to catch.

Map view

Tab (touch: MAP) opens a map of the world around you. Drag to pan, scroll or double-click to zoom, and right-drag or Ctrl+drag to rotate and tilt. When the view looks straight down it becomes a flat 2D map. Click (or press Space at the crosshair) to drop a pin, then TELEPORT HERE (or Enter) to move the ship there, facing the way the map points. On a phone, one finger pans and a tap drops the pin; pinch to zoom, twist to rotate and drag two fingers to tilt. Esc clears the pin, then leaves; Tab goes straight back to the ship. The game is paused while the map is open. The launcher's INSTANT PLAY row (first, selected on start) opens the same map before the first flight, keeping campaign progress.

Colony hangars

Every colony has a landing bunker on its terraformed ground, shown on the HUD as a HANGAR marker. While the colony will still deal with you (reputation 20 or more), the top hatch slides open as you approach, its lights turn green and a guide beam rises from it. Descend into the hatch to dock: the ship is lowered into the shaft and the view cuts to the hangar bay. In the bay, drag, use WASD or the arrows, or use the pad sticks to orbit the ship; use the wheel or pinch to zoom. Press LAUNCH (or Esc / Enter / Start) to lift back out of the hatch. Colonies with critically low reputation keep the hatch shut and show red lights. Below 45 a colony is wary: builds cost ship energy (more the lower it sinks) and weapon upgrades (mounts, gun feed, rockets, bomb) are locked.

Reputation. Every 15u chunk remembers how the aliens feel about you (0-100, neutral 50). Shooting colony ships (-2 per hit, -12 per kill) and abducting aliens with the grabber (-14) stain the nearby chunks; an atomic bomb stains the whole region (-70 at ground zero, fading out ~270u away). Aliens remember the worst reputation they have flown over and spread it into every chunk they visit, so bad news travels with the traffic. Aliens that remember you badly glow red and keep their distance. There is no way to win reputation back yet. Starting a new game resets it.

Dev shots: main.exe --look 0.25 out.png 0 --hangar (the bay) / --hangarpad [dock] (next to or above the nearest colony bunker). Loadout/upgrade shots: --loadout <tier> <nose><rwing><lwing> (G/R, e.g. --loadout 3 RGG), --upg <7 levels 0-3: engine bank magnet gun rocket bomb grabber> (e.g. --upg 3121032). --windowed keeps --probe / --bench runs out of exclusive fullscreen.

Build

The build uses only Zig 0.16, on Windows and Linux. Zig compiles raylib from the third_party/raylib submodule, which is pinned to the 6.2 branch. Fetch it once after cloning:

git submodule update --init
zig build native        # this machine -> ./main(.exe) in the repo root (+ openxr_loader.dll on Windows)
zig build run -- --bench   # build and run from the repo root (args after --)
zig build windows       # x86_64 Windows  -> zig-out/win64/      (cross-builds from Linux too)
zig build linux         # x86_64 Linux    -> zig-out/linux-x64/  (run on Linux: needs X11/GL headers)
zig build html5         # browser build   -> HTML5/fly
zig build html5-vr      # WebXR build     -> HTML5/fly-vr (Quest browser)
zig build web           # both web builds
zig build release       # everything, packaged into zig-out/release/ (see RELEASE.md)
zig build --help        # all steps and options

Builds default to ReleaseFast; pass -Doptimize=Debug for a debug build. The windows, linux and release steps target baseline x86-64 so the binaries run on any x64 CPU. Pass -Ddist-cpu=x86_64_v3 (or native) to change that. native always tunes for the build machine. Zig caches every object, so a rebuild after a game-code change compiles only src/main.c.

The web steps drive Emscripten's emcc from Zig. Install the emsdk into ~/emsdk (emsdk install latest && emsdk activate latest), or point to another copy with EMSDK or -Demsdk=PATH.

On Linux, install the X11/GL development packages first (Arch: sudo pacman -S --needed libx11 libxrandr libxi libxcursor libxinerama mesa; Debian/Ubuntu: sudo apt install libx11-dev libxrandr-dev libxi-dev libxcursor-dev libxinerama-dev libgl-dev).

Windows installer

Run rayfly-b117-win64-setup.exe on x64 Windows. It installs for your account only, with a Start menu shortcut and an optional desktop shortcut. Close the game before updating or uninstalling. Shortcuts store rayfly-save.txt, rayfly-pads.txt and the rayfly-edits\ crater files in %LOCALAPPDATA%\Nomad Energy Corp, which upgrades and uninstall leave intact. To bring over portable saves, copy those files there before launch. If you run main.exe directly instead of using a shortcut, set its working directory explicitly (adjust the executable path for a custom install):

Start-Process "$env:LOCALAPPDATA\Programs\Nomad Energy Corp\main.exe" -WorkingDirectory "$env:LOCALAPPDATA\Nomad Energy Corp"

zig build release builds the installer when Inno Setup's ISCC.exe is on PATH or installed under Program Files. You can also pass -Discc=PATH. The installer is packaged from the staged zig-out/win64/ folder (main.exe, openxr_loader.dll, icon.ico and the soundtrack) and lands in zig-out/release/. To package a build sitting elsewhere, run ISCC by hand and point /DBuildDir and /O at your folders:

& "$env:ProgramFiles\Inno Setup 7\ISCC.exe" '/DBuildDir=zig-out\win64' '/Ozig-out\release' .\installer.iss

Roadmap

See plan.md — scene system and menu are landing now; next up: intro cinematic, ship energy + afterburner, shields and damage, weapons (bullets / rockets / capture laser), per-chunk reputation, and the combat HUD. Hold L or right mouse to tether a cube alien, then track it for about three seconds to reel it in. The same control is available through the gamepad laser binding, the mobile CATCH button, and the XR left trigger. Caught cubes escort your ship for the rest of the flight and feed its energy: each one speeds up the cruise recharge (+0.5/s, up to 8/s) and raises how far it refills (+5, up to full).


Cyfrowy Nomada — flying the digit.