Comments (8)
Hi efess. I forked your fork, and used/re-enabeled audio context API because audioelement.clone() was causing crashes on chromebooks. https://bitbucket.org/kzahel/webquake
Great work with your fork, love your work with promises. I was able to extend it as necessary. I wasn't a fan of promises until now
Also added gamepad support
And fullscreen setting in options
Basically I am trying to get it working well in a chrome app: https://github.com/kzahel/WebQuake-Chrome
from webquake.
Cool, although I wonder how much the excessive use of promises affects the performance.. I was going to try testing with bluebird promises, but never got around to it. Some of my promise implementations were pretty hacky as well.
from webquake.
99% of those promises are initialization code, and arent used at all in the game loop. so not at all, really.
No idea what bluebird promises are :-) is that an ES6 thing?
from webquake.
I'm just right now trying to Promisify the Server initialization code. Using your work as a reference :-)
from webquake.
Oh yea the game loop definitely uses promises, the program code creates a promise even when one isn't necessary.
I was working in my local copy to optimize and cut down the creation of promises when not needed, but there's some loose ends I haven't been able to figure out (or had time)
Bluebird (http://bluebirdjs.com/) is a faster promise implementation, but it comes at the price of needing to import a library.
from webquake.
Cool. Well please let me know if you make any nice changes!
from webquake.
I had another approach that I tried which was to use "await"
I ended up having still some problems with the loading and would get funny exceptions when a new map loaded. But it mostly worked, and didn't require a lot of rewrite
kzahel@8bb479f
from webquake.
Awesome stuff!
This issue can be closed, #33 is there and a PR is in order I think.
from webquake.
Related Issues (20)
- No mouse control in Chrome Canary 64bit v46.0.2486 HOT 2
- How do I use this on a Chromebook? HOT 3
- Mouse not working HOT 3
- Any way to add the full game files? HOT 5
- cant run mod files HOT 2
- What each file is for? HOT 1
- Performance issues with WebQuake build 54 (1.09) HOT 5
- Async IO #2 HOT 1
- Issue connecting from WinQuake HOT 4
- W.LoadWadFile: couldn't load gfx.wad HOT 3
- Audio buzz/click HOT 1
- Mouse jump glitchy problem with Chrome Win10 360 spin keep moving mouse to right. HOT 3
- Can someone tell me if I have this correct in the server? HOT 2
- No official online demo HOT 2
- Error compiling shader: null
- auto-connect to multiplayer server at launch HOT 2
- can i host this on github pages? HOT 1
- add quake .pak files to the chromeos version of webquake HOT 1
- Game not loading, stuck on "Starting Quake..." HOT 1
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 webquake.