Strongly Typed Multiplayer Game Programming
summary
Builds a working caveman multiplayer port of gorillaz.base using TypeScript, WebSockets and Socket IO and shows the actual code that makes socket messages type safe. Wraps the loose library types with generic wrappers so socket events carry concrete interfaces, uses type guards for entity variants, and shares a contract directory between client and server. Demo shows two players sending angle and velocity for throws, the system compiles and enforces types, and the wrapped API reduces scattering of changes.
AI-written summary · about
chapters (6)
- 0:00Start
- 7:36OUR VANILLA JS SOCKET SERVER
- 13:39ON THE CLIENT
- 21:47GAME TYPE HIERARCHY
- 22:50TYPE EXTENSION
- 23:22TYPE GUARDS
related talks
44mGames Development with Typescript and Canvas
25m"ECS and Engine-less GameDev in TypeScript"
26mWhen Cross-Platform Is An Understatement: Making Weird Physical Games With TypeScript
21mSuper TypeScript II Turbo – FP Remix
57mType safe GraphQL with TypeScript
34mGenerating Types without climbing a tree
28mBuilding and Deploying A Multi-Agent AI D&D with Typescript
34mNot Your Uncle’s Clean Code (TypeScript Edition)
