zachcurtis / easybullet Goto Github PK
View Code? Open in Web Editor NEWA simple bullet handler that accounts for network desync
Home Page: https://zachcurtis.github.io/EasyBullet/
License: MIT License
A simple bullet handler that accounts for network desync
Home Page: https://zachcurtis.github.io/EasyBullet/
License: MIT License
There is now type coverage for all objects and their properties but there are still a couple of problem type warnings being kicked by the luau analyzer.
Luau doesn't allow for string indexing of Instances
Forced to violate 'same as this' linter error to fix Luau recognizing an Instance as a table
This will cause a bug where they freeze in midair. I want to maintain the ability to use the cast filter list however the user sees fit, but somehow it needs to filter out other bullet parts.
TS has no generic varargs like Luau, so there are no TS types for the arguments passed to the connected callbacks on the events of EasyBullet.
In the interest of keeping network latency as low as possible, EasyBullet checks the ShouldFireCallback
in EasyBullet._fireBullet
, which is after the fired bullet is replicated to either the server or the clients.
To preserve that order and keep latency low, EasyBullet should assign a GUID to each bullet. This will allow the server to cancel a shot that's already been replicated to the clients by providing an index to look the bullet up in EasyBullet.Bullets
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.