@korial29/tiny-fps 0.95.0 → 0.96.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.js +13 -13
- package/dist/local.js +1 -1
- package/dist/server.js +413 -71
- package/dist/types/client/moonbase.d.ts +14 -0
- package/dist/types/client/moonscape.d.ts +5 -0
- package/dist/types/client/render.d.ts +2 -0
- package/dist/types/shared/moon.d.ts +6 -7
- package/dist/types/shared/moonbase.d.ts +17 -0
- package/dist/types/shared/physics.d.ts +11 -0
- package/dist/types/shared/relief.d.ts +55 -0
- package/dist/types/shared/rover.d.ts +71 -0
- package/dist/types/shared/types.d.ts +38 -1
- package/dist/types/shared/world.d.ts +10 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,8 +18,8 @@ It started as a co-op shooter inspired by carlini's [Yet Another Doom Clone](htt
|
|
|
18
18
|
|
|
19
19
|

|
|
20
20
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
21
|
+
| | |
|
|
22
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
23
23
|
|  |  |
|
|
24
24
|
|
|
25
25
|
## Framework-agnostic, light to add
|
|
@@ -32,7 +32,7 @@ It started as a co-op shooter inspired by carlini's [Yet Another Doom Clone](htt
|
|
|
32
32
|
| `@korial29/tiny-fps/local` | Same-browser multiplayer, no server: the host runs in a tab | ~15.5 KB |
|
|
33
33
|
| `@korial29/tiny-fps/server` | Node WebSocket server (needs `ws`) | Node only |
|
|
34
34
|
|
|
35
|
-
CI checks the budgets (
|
|
35
|
+
CI checks the budgets (110 KB and 24 KB) on every pull request.
|
|
36
36
|
|
|
37
37
|
## Live demo
|
|
38
38
|
|
|
@@ -207,7 +207,7 @@ The game is the movement and a capture the flag on top of it, with a tackle, a g
|
|
|
207
207
|
- **Capture the flag**: touch the enemy flag, at its base or where it was dropped, to take it, and carry it to your own base while your own flag is there: that is a capture, and the flag goes home. Touch your own dropped flag to send it home at once; left alone it goes home after 10 seconds. A carrier who falls off the roofs or leaves drops it where he last stood. A tackled carrier drops it too, and it lies there for 2 seconds: nobody can send it home, and the carrier's teammates can grab it. There is a ring of light on each base, a marker toward each flag (and toward your base while you carry), a banner for each event and a sound for a take, a drop, a return and a capture.
|
|
208
208
|
- **A match** ends at 3 captures or after 8 minutes, then everyone sees the result and each player's captures and returns for 10 seconds, and a new match starts with everyone back at their spawn, on the map the host picked.
|
|
209
209
|
- **The map**: Highline, 94 by 240 m under an open sky, the same for both teams (the blue half is the mirror of the red one). Each team holds a 26 m tower with its flag and eight spawns. Three routes lead to the other tower, and they meet at the plaza in the middle. The **Spine** (west, 26 m) is the fast one, about 25 s by sprint: an 11 m gap that takes a dash or a double jump, a 17 m viaduct along a wall that takes a wall-run and a dash, a beam over the plaza. **Midtown** (centre, 19 to 21 m) is roofs, short gaps and ledges to grab, about 36 s. The **Lowline** (east, 14.5 m) is stairs, short gaps and a sign to slide under, about 39 s, and needs no special move. A miss costs time: roofs under the gaps and ladders of ledges lead back up, and only a fall into the street puts you back at your tower.
|
|
210
|
-
- **Tranquility**, the moon map: 160 by 280 m
|
|
210
|
+
- **Tranquility**, the moon map: an arena of 160 by 280 m in the middle of a crater 600 by 720 m across, under a black sky with the Earth and the stars, in a hard low sun. Gravity is half the Earth's, so a jump floats twice as high and twice as long, and everyone wears a space helmet with a glowing visor. Each team has a round dome with its flag in front, a landing pad with its shuttle, two modules joined by tubes, light masts and rovers. A rille cuts the middle: a bridge, a long jump on the west side, stepping stones on the east. Outside the arena the regolith rolls away in hills and craters to a wall nobody climbs past: the Bowl with a wrecked lander at its bottom, a long ridge to the east, an antenna array on a hill, a boulder field, and seven jump ramps marked by orange lamps. The ground is one lattice of heights for the physics and the drawing (`relief.ts`), so what you see is what you stand on.
|
|
211
211
|
- **Weapons**: each team's armoury is a plinth 1.5 m high past its flag, in sight of the spawns, with a gun rack, a katana rack, a rail gun rack and a laser rifle rack: run and jump up to take them. You spawn with none and carry each once taken. The first time a weapon comes to hand you switch it on, each its own way: the right thumb presses the plasma gun's button and the katana's, the left index the laser rifle's, the left hand turns the rail gun's capsule; it lights up with its sound. Drawn again, or after a swap, it lights up at once.
|
|
212
212
|
- The **plasma gun** holds 60 shots, 15 at a time in a battery in its grip: an empty one, or R, swaps it in 1.3 s, the gun dark until the new one is in: the spent battery falls to the floor, the left hand takes a new one out of a pouch on the hip and puts it in, a pause, a slap of the palm, a jolt and the gun back in aim. A click fires a plasma ball at 40 m/s that bursts on the first wall or enemy it touches, and the view kicks up with each one. Held, the button charges the next ball, with a rising whine and the gun shaking, shown by a gauge under the ammo counter, and letting go fires it: up to 5 shots' worth in one second, which takes 5 health and puts any enemy down.
|
|
213
213
|
- The **electric katana** needs no ammo; its whole blade lights up when it is switched on. A cut takes 2 to 4 health by the cut, reaches 2.2 to 3.2 m, and shocks a foe it does not put down: a short stumble the way the blade goes. A cut that puts a foe down takes off the limb the blade crosses, head, arm or leg, drawn only, with no blood.
|