nodepolus / nodepolus_old Goto Github PK
View Code? Open in Web Editor NEWNodePolus is a JavaScript library containing multiple implementations of the Among Us network protocol.
NodePolus is a JavaScript library containing multiple implementations of the Among Us network protocol.
Venting currently works for an imposter, but when leaving a different vent than the one they got into, the imposters position is not updated on other clients.
As soon as the imposter moves, a movement packet is sent and they teleport on other clients.
When compiling NodePolus with npm start on Linux, it will error:
Cannot find module '../lib/server' or its corresponding type declarations.
This has been tested on a Linux server.
The problem originates from the polus.ts file, where the Server file is defined with a lowercase S. This problem can be fixed by replacing the lowercase S from the polus.ts file on the first line with a capital S.
When i start the server it crashes.
2020-12-14T13_19_57_058Z-debug.log
We obviously need to pick a linter to use for the project, I'm going to throw out StandardJS and Prettier as highly recommended options.
Both standard and prettier use 2 spaces for indentation which I know @roobscoob and @Sanae6 seem to be against, but it's pretty much what the JS community as a whole has agreed on. Potentially open to 4 spaces though :)
My favorite is MIT, but of course it's up to you.
We don't actually check the version the client sends, and that allows any version to connect to the server. Wouldn't it be right to either restrict NP to latest version, or allow the server to specify a version to allow/deny? I can understand this potentially being plugin territory but it makes more sense for the base server to do that.
An example of that API could be this:
server.setVersions([
new Version(2020, 10, 22),
new Version(2020, 11, 17)
])
The server would take these versions and use them for rejecting clients who aren't on those versions.
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.