Comments (7)
I'd like to work on that.
Do you think we could just calculate the magnitude of the velocity vector
and adjust the volume based on that value?
from pool.
Apologies @medusalix , forgot to comment here before I started working on it. I took exactly the approach you described, see #51
from pool.
@medusalix i love this idea! Can you submit a PR?
from pool.
@pwelby No problem, I'll just work on another issue then
from pool.
There's definitely more we could do here. For example the speed -> volume mapping assumes the maximum velocity is always going to be 100 (which probably isn't the case given #47). Maybe we could make the mapping non-linear so that volume increases faster when balls are moving slowly. Something like:
from pool.
@pwelby i love the math! wanna take a crack at integrating this? We also need some ball collision sounds.
from pool.
Sure, I'll put it in my next PR.
from pool.
Related Issues (20)
- Add a link to the sleddog/pool github page HOT 1
- Track who is shooting (solids vs stripes) HOT 2
- Add sound effects (pool ball colliding, pool ball going into pocket) HOT 8
- Change max ball velocity to a more reasonable level HOT 1
- Add cue stick animation based on velocity HOT 2
- Add properties panel and initial settings HOT 3
- Create animation of the potted balls sliding down the rail HOT 2
- Make a snooker option
- Move horizontal power bar to the left side and make vertical
- Add ability to aim the cue by dragging the mouse HOT 6
- Add a simple mute button to suppress sounds HOT 2
- Bring back the space key to fire the cue ball HOT 4
- I dont know HOT 1
- Implement initial 8 ball rules and two player mode HOT 1
- Change bumper collisions to account for rubber HOT 4
- Initial fast cue ball HOT 1
- Don't allow a shot until all balls are stationary HOT 1
- Make all balls stop faster - i.e. increase friction
- Experiment with 3D rendering for the cue and object balls HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pool.