inakianduaga / reactive-sandbox Goto Github PK
View Code? Open in Web Editor NEWBaby experiments w/ reactive-x
License: MIT License
Baby experiments w/ reactive-x
License: MIT License
We create a base observable that will be our game engine, generating a value for each "frame" of the application
time = Rx.Observable.interval(timeQuantum)
rayVelocity
: This most likely will stay constant since we don't change velocity through time, although we could for example add gravity or something. It'll have an original value when the ray is created.rayPosition
: This is the integral of the rayVelocity, we'll basically use a linear interpolation to calculate the position based on the velocity.We probably want to keep all the existing rays into a single observable collection.
In order to get to play with basic Observables, the cannon in the middle when we press a spacebar will start charging the intensity.
PowerObservableStart
PowerObservableRelease
PowerObservableRelease
we need to create a sequence (Observable), that will have the trajectory computed (until forever?).The state is a "Ray" collection, with each of the rays having a coordinate (x,y) and possibly a velocity (x,y).
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.