-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit. Adding game release version 0.1.0 for hosting.
- Loading branch information
0 parents
commit a49f938
Showing
9 changed files
with
2,345 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<style> | ||
body { | ||
margin: 0; | ||
background: linear-gradient(-45deg, #a6a6a6, #5ac05a, #262626, #a6a6a6); | ||
background-size: 400% 400%; | ||
animation: gradient 15s ease infinite; | ||
height: 100vh; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
canvas { | ||
background-color: white; | ||
} | ||
|
||
@keyframes gradient { | ||
0% { | ||
background-position: 0% 50%; | ||
} | ||
50% { | ||
background-position: 100% 50%; | ||
} | ||
100% { | ||
background-position: 0% 50%; | ||
} | ||
} | ||
</style> | ||
</head> | ||
<script type="module"> | ||
import init from './out/wasm_battle_arena.js' | ||
init() | ||
</script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; | ||
|
||
export interface InitOutput { | ||
readonly memory: WebAssembly.Memory; | ||
readonly main: (a: number, b: number) => number; | ||
readonly wgpu_compute_pass_insert_debug_marker: (a: number, b: number, c: number) => void; | ||
readonly wgpu_compute_pass_push_debug_group: (a: number, b: number, c: number) => void; | ||
readonly wgpu_render_pass_insert_debug_marker: (a: number, b: number, c: number) => void; | ||
readonly wgpu_render_pass_push_debug_group: (a: number, b: number, c: number) => void; | ||
readonly wgpu_render_pass_execute_bundles: (a: number, b: number, c: number) => void; | ||
readonly wgpu_compute_pass_set_pipeline: (a: number, b: number) => void; | ||
readonly wgpu_compute_pass_set_bind_group: (a: number, b: number, c: number, d: number, e: number) => void; | ||
readonly wgpu_compute_pass_set_push_constant: (a: number, b: number, c: number, d: number) => void; | ||
readonly wgpu_compute_pass_pop_debug_group: (a: number) => void; | ||
readonly wgpu_compute_pass_write_timestamp: (a: number, b: number, c: number) => void; | ||
readonly wgpu_compute_pass_begin_pipeline_statistics_query: (a: number, b: number, c: number) => void; | ||
readonly wgpu_compute_pass_end_pipeline_statistics_query: (a: number) => void; | ||
readonly wgpu_compute_pass_dispatch_workgroups: (a: number, b: number, c: number, d: number) => void; | ||
readonly wgpu_compute_pass_dispatch_workgroups_indirect: (a: number, b: number, c: number) => void; | ||
readonly wgpu_render_bundle_set_pipeline: (a: number, b: number) => void; | ||
readonly wgpu_render_bundle_set_bind_group: (a: number, b: number, c: number, d: number, e: number) => void; | ||
readonly wgpu_render_bundle_set_vertex_buffer: (a: number, b: number, c: number, d: number, e: number) => void; | ||
readonly wgpu_render_bundle_set_push_constants: (a: number, b: number, c: number, d: number, e: number) => void; | ||
readonly wgpu_render_bundle_draw: (a: number, b: number, c: number, d: number, e: number) => void; | ||
readonly wgpu_render_bundle_draw_indexed: (a: number, b: number, c: number, d: number, e: number, f: number) => void; | ||
readonly wgpu_render_bundle_draw_indirect: (a: number, b: number, c: number) => void; | ||
readonly wgpu_render_bundle_draw_indexed_indirect: (a: number, b: number, c: number) => void; | ||
readonly wgpu_render_pass_set_pipeline: (a: number, b: number) => void; | ||
readonly wgpu_render_pass_set_bind_group: (a: number, b: number, c: number, d: number, e: number) => void; | ||
readonly wgpu_render_pass_set_vertex_buffer: (a: number, b: number, c: number, d: number, e: number) => void; | ||
readonly wgpu_render_pass_set_push_constants: (a: number, b: number, c: number, d: number, e: number) => void; | ||
readonly wgpu_render_pass_draw: (a: number, b: number, c: number, d: number, e: number) => void; | ||
readonly wgpu_render_pass_draw_indexed: (a: number, b: number, c: number, d: number, e: number, f: number) => void; | ||
readonly wgpu_render_pass_draw_indirect: (a: number, b: number, c: number) => void; | ||
readonly wgpu_render_pass_draw_indexed_indirect: (a: number, b: number, c: number) => void; | ||
readonly wgpu_render_pass_multi_draw_indirect: (a: number, b: number, c: number, d: number) => void; | ||
readonly wgpu_render_pass_multi_draw_indexed_indirect: (a: number, b: number, c: number, d: number) => void; | ||
readonly wgpu_render_pass_multi_draw_indirect_count: (a: number, b: number, c: number, d: number, e: number, f: number) => void; | ||
readonly wgpu_render_pass_multi_draw_indexed_indirect_count: (a: number, b: number, c: number, d: number, e: number, f: number) => void; | ||
readonly wgpu_render_pass_set_blend_constant: (a: number, b: number) => void; | ||
readonly wgpu_render_pass_set_scissor_rect: (a: number, b: number, c: number, d: number, e: number) => void; | ||
readonly wgpu_render_pass_set_viewport: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void; | ||
readonly wgpu_render_pass_set_stencil_reference: (a: number, b: number) => void; | ||
readonly wgpu_render_pass_pop_debug_group: (a: number) => void; | ||
readonly wgpu_render_pass_write_timestamp: (a: number, b: number, c: number) => void; | ||
readonly wgpu_render_pass_begin_pipeline_statistics_query: (a: number, b: number, c: number) => void; | ||
readonly wgpu_render_pass_end_pipeline_statistics_query: (a: number) => void; | ||
readonly wgpu_render_bundle_set_index_buffer: (a: number, b: number, c: number, d: number, e: number) => void; | ||
readonly wgpu_render_bundle_pop_debug_group: (a: number) => void; | ||
readonly wgpu_render_bundle_insert_debug_marker: (a: number, b: number) => void; | ||
readonly wgpu_render_bundle_push_debug_group: (a: number, b: number) => void; | ||
readonly wgpu_render_pass_set_index_buffer: (a: number, b: number, c: number, d: number, e: number) => 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__invoke0_mut__hfe44012eb9717685: (a: number, b: number) => void; | ||
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h045ce970ea65c3e0: (a: number, b: number, c: number) => void; | ||
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0eb225a3b49e08bb: (a: number, b: number) => void; | ||
readonly wasm_bindgen__convert__closures__invoke1_mut__h23db547ff7a5e82b: (a: number, b: number, c: number) => void; | ||
readonly wasm_bindgen__convert__closures__invoke0_mut__hee0b8f1ed4879a72: (a: number, b: number) => void; | ||
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4ddbefef98eb797d: (a: number, b: number, c: number) => void; | ||
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5739f3beabd56c39: (a: number, b: number, c: number) => void; | ||
readonly wasm_bindgen__convert__closures__invoke1_mut__h3d5054d97dd1e16f: (a: number, b: number, c: number) => void; | ||
readonly __wbindgen_free: (a: number, b: number, c: number) => void; | ||
readonly __wbindgen_exn_store: (a: number) => void; | ||
readonly __wbindgen_start: () => 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>; |
Oops, something went wrong.