Skip to content

Turn Blé into a library #65

Description

@getkey

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();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions