Been working on this for a while, finally got around to posting here
Teaser
Scifi Rogue
Top-down / 3rd person shooter set in a future where you have enrolled in S.C.I.F.I - Solar Command International Fleet Intelligence and are exploring unknown space ships and other installations.
Playable “tech demo”: https://demo.scifirogue.com/
Keys:
- Alt-C: switch camera in game
- Alt-Shift-D: show debug lines (can help you find the exit)
- Alt-I: Dynamically load and show inspector (sometimes need to press twice)
Procedural level generation https://demo.scifirogue.com/procedural
- Use Space to re-generate
- You can also control the grid size, e.g. https://demo.scifirogue.com/procedural/64
The game use a procedural algorithm to generate levels using a grid, placing rooms and then connecting using a minimal spanning tree (and some extra tweaks to allow loops).
Dev notes
- Game Entities are organized and queried using bjs-ecs
- Character models are made with heave AI assistance (Flux, Trellis) and some manual tweaks.
- Environment models are from asset packs, further tweaked in Blender
- These are all loaded into asset containers and then instantiated from there
- Octree is used for culling static meshes
- Everything is setup with physics v2 (Havok), main character is using a custom “character controller” which based on input applies physical forces and blends animations
- Top down mode works both with keyboard / mouse and virtual joysticks (iPad)
Todos
- Make enemies intelligent (navmesh, navigation agents, some kind of attack)
- In game HUD (health, ammo, etc). Will mostly do this with React (Tailwind?) and then interface through Zustand store / BJS Observers.
- Shadows
- …
- Co-op multiplayer
See also https://scifirogue.com/