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

Custom resource loading #10

Open
alexv-ds opened this issue Aug 16, 2018 · 3 comments
Open

Custom resource loading #10

alexv-ds opened this issue Aug 16, 2018 · 3 comments

Comments

@alexv-ds
Copy link

I would be happy if I had the opportunity to download the necessary wad/gfx/bsp/dem ect files and so on and send them to the hlviewer as a buffer.

@skyrim
Copy link
Owner

skyrim commented Aug 16, 2018

You mean instead of

hlv.load('somedemo.dem')

to have something like

const demBuffer = await xhr('somedemo.dem')
const bspBuffer = await xhr('mapofsomedemo.bsp')
...
hlv.load({
  demo: demBuffer,
  bsp: bspBuffer,
  ...
})

@alexv-ds
Copy link
Author

Yes, something like this

@skyrim
Copy link
Owner

skyrim commented Aug 16, 2018

I like the idea. Will be added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants