3 ms·
I built a multiplayer 2D top-down game for my Bsc thesis. Once I compressed the rotations and movements as vectors and linear algebra the code turned out to be
by coolThingsFirst 6mo ago
I built a multiplayer 2D top-down game for my Bsc thesis. Once I compressed the rotations and movements as vectors and linear algebra the code turned out to be around 2K lines for the client and 1K for the server.
And it included assets, PvP, crafting system, collisions mobs etc. For collisions it's just dist center of assets <= sum of their radii. Requires geometry and some thought but not impossible Far from perfect game of course but got very far using simple concepts.