@korial29/tiny-fps 0.115.4 → 0.116.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 +2 -2
- package/dist/index.js +18 -18
- package/dist/local.js +1 -1
- package/dist/server.js +8 -0
- package/dist/types/client/hud.d.ts +30 -6
- package/dist/types/client/index.d.ts +2 -1
- package/dist/types/client/input.d.ts +2 -0
- package/dist/types/client/render.d.ts +15 -0
- package/dist/types/shared/protocol.d.ts +4 -1
- package/dist/types/shared/world.d.ts +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -103,7 +103,7 @@ PORT=8787 npx tiny-fps-server
|
|
|
103
103
|
|
|
104
104
|
### The host picks the map
|
|
105
105
|
|
|
106
|
-
The player in the room the longest is its **host**; when they leave, the next oldest player takes over. Press Esc in a game: the maps sit
|
|
106
|
+
The player in the room the longest is its **host**; when they leave, the next oldest player takes over. Press Esc in a game: the maps sit in the Game panel of the title screen. The host's are buttons, and the one they pick is played from the next match on, never in the middle of one (or from the next join when the room empties). Everyone else sees the maps read-only, with the host's name and pick, and the end screen says the map of the next match. The server checks that the pick comes from the host: anyone else's is ignored.
|
|
107
107
|
|
|
108
108
|
The client follows the room: when the roster names another map, it builds that map on the same connection, so players keep their id, their team and the host role. The `map` option is only the map built until the roster comes.
|
|
109
109
|
|
|
@@ -239,7 +239,7 @@ The game is the movement and a capture the flag on top of it, with a tackle, a g
|
|
|
239
239
|
- [x] Four weapons taken at each team's armoury, a plasma gun, an electric katana, a rail gun and a laser rifle: plasma balls, charged shots, three cuts and their specials, a bolt of lightning, a saber lock, a shock, limb cuts, health and ammo packs, all predicted on the client and resolved by the host with lag compensation; magazines and reloads drawn by hand, each weapon switched on its own way
|
|
240
240
|
- [x] A city around the roofs: a street far below with traffic and markings to the horizon, a height fog, parks of branched trees and a skyline
|
|
241
241
|
- [x] Sound: a jsfxr-style synthesiser for steps, jumps, dashes, landings, grabs, climbs, slides and the wind of speed, placed in stereo; a looped music; M mutes
|
|
242
|
-
- [x] A title screen with the controls, a muted mark, a player count and name tags
|
|
242
|
+
- [x] A title screen with a menu (the character to play, the mode and the map; the controls), a muted mark, a player count and name tags
|
|
243
243
|
- [x] A pixel face over the health, in the spirit of DOOM's (its own look, drawn in code): 42 frames, 5 levels of wounds, glances, a turn toward the side a hit comes from, an ouch, a grin at a new weapon, a rage with the trigger held, a glow carrying the flag, and dead
|
|
244
244
|
- [x] Teams and capture the flag: bases with a glowing ring, flags that wave and ride on a carrier's back, a score and a clock, markers toward the flags, banners, an end screen and synth sounds
|
|
245
245
|
- [x] An announcer: a calm, generated voice for the match, the flags, takedown runs, the aim and the result
|