sathwikmatsa / pong Goto Github PK
View Code? Open in Web Editor NEWAn experiment to implement Atari's classic 1972 arcade game Pong with networked multiplayer support in Rust using Piston.
An experiment to implement Atari's classic 1972 arcade game Pong with networked multiplayer support in Rust using Piston.
When user presses 'S' on welcome screen to act as a server and enters the server_option screen, the window doesn't close on pressing the close button or 'X'. It waits infinitely for an incoming connection.
One way to quit is to interrupt using 'CTRL+C' when the executable is invoked from command line.
When client connects and enters the game screen, close button and 'X' work as intended.
The difference in Updates per second between client and server may lead to score divergence. Send score via syncer after the ball hits the paddle.
As mentioned in https://gameprogrammingpatterns.com/game-loop.html#one-small-step,-one-giant-step, using time elapsed as a parameter to update ball position leads to floating-point loss. Eventually, the ball gets out of sync with the client and server.
The proposition is to use fixed time steps to update the ball position as stated in https://gameprogrammingpatterns.com/game-loop.html#play-catch-up.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.