Init Main project
This commit is contained in:
commit
9e581ae67f
220 changed files with 253987 additions and 0 deletions
80
How/Plan.md
Normal file
80
How/Plan.md
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
# Space Gaem: You Will Feel the Pain
|
||||
|
||||
Space mission game where you run a company/space agency sponsored by governments to run space missions and explorations, and grow your company by successfully completing missions in the most efficient way using your budget.
|
||||
Needs to be as realistic as possible while being playable.
|
||||
|
||||
## How this will work??
|
||||
|
||||
- Server
|
||||
- Node.js TypeScript Express server
|
||||
- Multiplayer: server is already authoritative - one shared persistent world state, multiple player agencies connecting at once
|
||||
- Player sessions/accounts (simple: name + token, or just pick an agency name)
|
||||
- WebSocket (or SSE) channel for live events: other players' launches, market ticks, competitor actions, shared solar system time
|
||||
- Takes Client input and data to simulate missions and updates game state
|
||||
- Sends game state to Client
|
||||
- Renders simulated animations and sends to the client
|
||||
- Simulated solar system (Required) and time passing/economy?
|
||||
- Other players (AI) do missions and stuff
|
||||
- Market dynamics and economy
|
||||
- Multiplayer hooks: shared mission contract board (contracts contested between players+AI), shared launch windows, world events (solar weather, anomalies) affect everyone
|
||||
> Physics is layered by fidelity:
|
||||
> - Design validation: rocket equation (dv = Isp*g0*ln(m0/mf)), dv budget vs mission requirement, structural/thermal sanity checks. Instant, player-facing.
|
||||
> - Ascent simulation: custom point-mass 6-DOF-lite (thrust, drag Cd estimate, gravity loss, gravity turn pitch program, staging events). Produces believable ascent, Max-Q, heating; decides if the rocket survives. Runs server-side at high rate.
|
||||
> - Orbital phase: GMAT (already compiled) for player rocket missions. .gmat script templates per canonical mission type (LEO, lunar flyby, Mars transfer...), parameterized by launch date, C3/dv, payload. Run headless on design validation, cache trajectory, stream as telemetry. GMAT is point-mass only - no staging/aero/structures.
|
||||
> - Background sim: Ephemeris service (SPICE kernels / VSOP87) for accurate solar system + real probes/telescopes positions at any game time. Real spacecraft kernels = real probes for free. Kepler propagation for fictional background probes.
|
||||
> - Aero scope: trajectory shape only (drag, Max-Q, stability margin CP-vs-CG). No CFD-grade lift/flutter/wind - approximation is invisible to players.
|
||||
|
||||
- Client
|
||||
- Node.js TypeScript Express.JS+Three.js frontend server that serves the game interface and bridges the game state from the server to the client
|
||||
- Renders shit
|
||||
- Takes user input
|
||||
- Sends user input to server
|
||||
- Rocket design is modular/constrained - design surface is the SAME on all difficulties, difficulty is NOT feature-gated
|
||||
- Design tiers (player-selectable, cosmetic/UX depth not gating):
|
||||
- Casual: pick stages, engine, tank size from presets
|
||||
- Standard: tune dimensions (diameter, length, propellant load), pick materials per part
|
||||
- Expert: same + mesh import (.obj/.stl) for custom part shapes, per-material layup, structural/thermal sim active. Shapes via parametric dims/meshes, NOT STEP/IGES B-rep.
|
||||
- Materials (Al 7075, carbon fiber, Inconel, ablative phenolic...) feed mass/strength/thermal params into the sim. Simplified stress checks (sigma = F/A, shell buckling, ablation) - convincing approximation, not FEA.
|
||||
- Design gameplay loop: Mission briefing (hard constraints: dv, payload, launch window) -> Budget -> Design rocket (parts + live dv/mass/cost meters vs requirements) -> Validate -> Test flight (ascent sim, Max-Q, staging, failure feedback) -> Launch (GMAT trajectory + telemetry playback) -> Debrief (scored on propellant margin, cost underrun, time)
|
||||
|
||||
- Difficulty model: NOT feature gates. Difficulty scales via:
|
||||
- Budget caps (tighter budgets = forced efficiency)
|
||||
- Harder mission parameters (tighter dv margins, smaller launch windows, more extreme targets)
|
||||
- AI competitor agencies get better (better designs, win more contracts)
|
||||
- Requirement/approval strictness (see below)
|
||||
|
||||
- Requirements & maturity system (NASA CML/TRL-inspired):
|
||||
- Each requirement = machine-checkable rule {id, appliesTo, check(design), severity: mandatory|waiverable}
|
||||
- Design screen shows live compliance checklist, checks re-run on every edit
|
||||
- Design maturity levels gate progression: rough concept -> PDR/CDR-style review gates -> flight ready. Early concepts cheap to iterate, only mature designs can fly
|
||||
- Waiver system: skip a requirement = costs budget + adds risk roll at launch
|
||||
- Encode ~30-50 high-impact rules per mission type (mass limits, propellant compatibility, fracture control, pyro constraints, reentry heating, planetary protection). We enforce the engineering, not the literal standards text.
|
||||
|
||||
## Gameplay
|
||||
|
||||
- Player creates agency (shared world: your agency exists alongside other players' agencies)
|
||||
- Player selects who to work for from a list of offers (offers may be contested - first to accept wins?)
|
||||
- Player selects mission
|
||||
- Player gets paid budget
|
||||
- Player designs rocket, models rocket components and mission parameters
|
||||
- Player makes sure the rocket is operable and livable for the crew
|
||||
- Player tests rocket (Uses up budget every test)
|
||||
- Player launches rocket (other players can watch your launch live on the shared map)
|
||||
- Player completes mission
|
||||
- Player gets increased budget for successful missions depending on how well they did
|
||||
- etc.
|
||||
|
||||
## Multiplayer specifics
|
||||
|
||||
- Shared persistent world: one server process owns solar system time, market state, all agencies (player + AI)
|
||||
- Async-friendly design: missions take real/simulated time - you launch, do other things, get notified on completion (fits rocket missions naturally, no need for real-time action)
|
||||
- Live spectate: any player can watch an active launch/mission playback on the solar system map
|
||||
- Competition: shared contract board, leaderboards (missions completed, budget earned, efficiency rating), rival agencies poaching your offers
|
||||
- Optional co-op later: joint missions, shared stations, trading payload capacity
|
||||
|
||||
## Non player game loop
|
||||
|
||||
- Simulated solar system (Required) and time passing/economy?
|
||||
- Other players (AI) do missions and stuff (AI fills the world so it feels alive even with few human players)
|
||||
- Market dynamics and economy (shared across all players - prices react to everyone)
|
||||
- etc.
|
||||
18
How/Plan2.md
Normal file
18
How/Plan2.md
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
1. Flight computing is now a part and is required, can be overloaded/damaged, and can be affected by stray radiation
|
||||
2. New random events, such as stray radiation and meteorites which have to be taken into account pre-launch
|
||||
3. R&D Unlocks now also include better diagnostics both in-flight compute and pre-flight checks and graphs, supported by GMAT, as better diagnostics are always better.
|
||||
4. Figure out how to fix the sideways movement bug when launching non-straight path rockets.
|
||||
5. ML supported AI players, separate from standard AI players. (Might be hard to implement, but maybe?)
|
||||
6. Cleanup unused models from disk and git history, takes up waay to much space.
|
||||
7. Light Mode + A mode with less UI effects because this shit is so eye hurting.
|
||||
8. Have different contractors have different contracts available at a given time, though duplicates should happen, such as not everyone has all missions, but like half.
|
||||
|
||||
Priority index:
|
||||
- 1
|
||||
- 3
|
||||
- 4
|
||||
- 7
|
||||
- 8
|
||||
- 2
|
||||
- 5 (?)
|
||||
- 6 (This will be done later on with my supervision)
|
||||
7
How/Plan3.md
Normal file
7
How/Plan3.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
1. In the main menu, when hovering over any of the difficulties, sandbox also lights up. It should only light up when hovered over directly.
|
||||
2. Fix the cheap looking graphics and wrong looking particles
|
||||
3. Saving, sharing and loading rocket designs, better editor functionality including editor history, undo+redo, better editor errors such as which part isn't unlocked, which stage is errored etc.
|
||||
4. Update the AI players (Both ML and standard) to be more competent, all flight director AI's keep going bankrupt.
|
||||
5. Cleanup code and optimise where possible.
|
||||
|
||||
69. Mobile support?!?!?!? Hell naww
|
||||
8
How/Plan4.md
Normal file
8
How/Plan4.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
1. Thrusters fire rendering offset too high.
|
||||
2. Rocket stages, due to being too far apart, look like they're connected through the tip of their cones, when they should look to be connected by a full diameter only differentiated by a slight bottleneck.
|
||||
3. The in-flight log should be above the flight stats, instead of at the bottom right.
|
||||
4. AI players should be affected by all conditions the same as normal players and must overcome them, accordingly to their own difficulty.
|
||||
5. The bottom right buttons should be pushed to the left when the sidebar opens, to prevent button overlap.
|
||||
6. AI players are competent, yes, but they should still be affected by player-like cooldowns so they don't just spam missions.
|
||||
7. AI players are currently stupidly good, and never fail even when low skill, and basically never go bankrupt.
|
||||
8. You should only be able to take the same contract after doing 3 other contracts, unless it's the only contract you can do. True for all player types.
|
||||
2
How/Plan5.md
Normal file
2
How/Plan5.md
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
1. Add tooltips to every terminologic label etc.
|
||||
2. Add disposable fuel tanks that are added *on* a stage instead of *as* a stage, same as those big extra fuel tanks in real life.
|
||||
2
How/Plan6.md
Normal file
2
How/Plan6.md
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
1. Split up codebase into smaller modular chunks.
|
||||
2. Cleanup unused assets and git history.
|
||||
Loading…
Add table
Add a link
Reference in a new issue