Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn Blé into a library #65

Open
getkey opened this issue Sep 12, 2021 · 0 comments
Open

Turn Blé into a library #65

getkey opened this issue Sep 12, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@getkey
Copy link
Owner

getkey commented Sep 12, 2021

Right now, the editor is a standalone application. When it's loaded in the game, it's via an iframe, which is slow. If Blé was a library that could be directly used by the game, it could be cached more efficiently, and it would only be downloaded once per gaming session. Besides, common dependencies would be shared by the game and the editor.

API proposal

import { Ble } from 'ble';

const ble = new Ble(document.getElementById('ble-app'));

ble.loadLevel(someLevel);
const currentLevel = ble.getCurrentLevel();

// later
ble.destroy();
@getkey getkey added enhancement New feature or request help wanted Extra attention is needed labels Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant