Giter Site home page Giter Site logo

garbomuffin / nbsplayer Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 5.0 1.9 MB

It's like Note Block Studio, but as a website.

Home Page: https://garbomuffin.github.io/nbsplayer/

License: MIT License

JavaScript 47.92% HTML 0.62% Vue 51.45%
noteblock minecraft studio nbs

nbsplayer's People

Contributors

garbomuffin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nbsplayer's Issues

Needs Selections

I don't like having to delete all my notes and replacing them.

Support playing in background

In (almost?) all browsers unfocused tabs are throttled. In this case requestAnimationFrame is throttled (for good reasons) which prevents the song from advancing.

I don't know what other methods there are to play things in browsers, and especially none that wouldn't require reworking lots of stuff.

Workaround is of course to pop the out into its own window.

Basic editing

  • Left click to place
  • Right click to delete

nbsjs had this, and it's time to port it to nbsplayer.

Optimizing canvas rendering

Canvas rendering could be faster.

  • Cache groups of notes in a single texture. A separate drawImage() for every note is very slow, so grouping notes together once and rendering them all together can be significant for speed.

  • Use WebGL when available. A few small drawImage() and fillRect() shaders are all that would be needed. These would probably be much faster than drawImage() on a 2d canvas. 2d canvas can be used if a WebGL canvas is not available.

  • The whole layer/note loop is probably slower than it could be.

Testing

Could use some unit tests or whatever. The UI might be hard to test but NBS.js and editor.js should be possible to test.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.