file after build
This commit is contained in:
parent
2f830b2deb
commit
ffc6e25bf5
|
|
@ -0,0 +1,14 @@
|
|||
## Build instructions
|
||||
|
||||
1. Make sure you have `wasm32-unknown-unknown` target installed in rustup (if not, do: `rustup target add wasm32-unknown-unknown`)
|
||||
2. Make sure you have `wasm-pack` installed (if not, do: `cargo install wasm-pack`)
|
||||
3. To build the executor, do: `wasm-pack build --target web --release`
|
||||
|
||||
## How to run the game on localhost
|
||||
|
||||
1. Make sure you have `basic-http-server` installed (if not, do: `cargo install basic-http-server`).
|
||||
2. Clone assets to the `executor-wasm` directory. Alternatively, clone everything except `Cargo.toml` and `src` directory
|
||||
to the root of your project (`../`).
|
||||
3. Execute `basic-http-server` in `executor-wasm` directory (or in root folder if you you've used alternative path).
|
||||
|
||||
If everything has succeeded, open a web browser at http://localhost:4000/, click "Start" button and your game shoud load.
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
*/
|
||||
export function main(): void;
|
||||
|
||||
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
||||
|
||||
export interface InitOutput {
|
||||
readonly memory: WebAssembly.Memory;
|
||||
readonly main: () => void;
|
||||
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
||||
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
||||
readonly __wbindgen_export_2: WebAssembly.Table;
|
||||
readonly wasm_bindgen__convert__closures__invoke1_mut__h18a7e71fc163ed9e: (a: number, b: number, c: number) => void;
|
||||
readonly wasm_bindgen__convert__closures__invoke0_mut__hf9fe363b79504bee: (a: number, b: number) => void;
|
||||
readonly wasm_bindgen__convert__closures__invoke2_mut__hc207093c38fba056: (a: number, b: number, c: number, d: number) => void;
|
||||
readonly wasm_bindgen__convert__closures__invoke0_mut__h45bbcdf3667cfda5: (a: number, b: number) => void;
|
||||
readonly wasm_bindgen__convert__closures__invoke1_mut__h1e477fb347e6a029: (a: number, b: number, c: number) => void;
|
||||
readonly wasm_bindgen__convert__closures__invoke0_mut__h04a097cb2cfe073c: (a: number, b: number) => void;
|
||||
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb6e6f9ff2d449132: (a: number, b: number, c: number) => void;
|
||||
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
||||
readonly __wbindgen_exn_store: (a: number) => void;
|
||||
}
|
||||
|
||||
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
||||
/**
|
||||
* Instantiates the given `module`, which can either be bytes or
|
||||
* a precompiled `WebAssembly.Module`.
|
||||
*
|
||||
* @param {SyncInitInput} module
|
||||
*
|
||||
* @returns {InitOutput}
|
||||
*/
|
||||
export function initSync(module: SyncInitInput): InitOutput;
|
||||
|
||||
/**
|
||||
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
||||
* for everything else, calls `WebAssembly.instantiate` directly.
|
||||
*
|
||||
* @param {InitInput | Promise<InitInput>} module_or_path
|
||||
*
|
||||
* @returns {Promise<InitOutput>}
|
||||
*/
|
||||
export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
|
@ -0,0 +1,16 @@
|
|||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export const memory: WebAssembly.Memory;
|
||||
export function main(): void;
|
||||
export function __wbindgen_malloc(a: number, b: number): number;
|
||||
export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
|
||||
export const __wbindgen_export_2: WebAssembly.Table;
|
||||
export function wasm_bindgen__convert__closures__invoke1_mut__h18a7e71fc163ed9e(a: number, b: number, c: number): void;
|
||||
export function wasm_bindgen__convert__closures__invoke0_mut__hf9fe363b79504bee(a: number, b: number): void;
|
||||
export function wasm_bindgen__convert__closures__invoke2_mut__hc207093c38fba056(a: number, b: number, c: number, d: number): void;
|
||||
export function wasm_bindgen__convert__closures__invoke0_mut__h45bbcdf3667cfda5(a: number, b: number): void;
|
||||
export function wasm_bindgen__convert__closures__invoke1_mut__h1e477fb347e6a029(a: number, b: number, c: number): void;
|
||||
export function wasm_bindgen__convert__closures__invoke0_mut__h04a097cb2cfe073c(a: number, b: number): void;
|
||||
export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb6e6f9ff2d449132(a: number, b: number, c: number): void;
|
||||
export function __wbindgen_free(a: number, b: number, c: number): void;
|
||||
export function __wbindgen_exn_store(a: number): void;
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"name": "executor-wasm",
|
||||
"version": "0.1.0",
|
||||
"files": [
|
||||
"executor_wasm_bg.wasm",
|
||||
"executor_wasm.js",
|
||||
"executor_wasm.d.ts"
|
||||
],
|
||||
"module": "executor_wasm.js",
|
||||
"types": "executor_wasm.d.ts",
|
||||
"sideEffects": [
|
||||
"./snippets/*"
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue