Skip to content

Commit

Permalink
update gameplay
Browse files Browse the repository at this point in the history
  • Loading branch information
stutxo committed Apr 7, 2024
1 parent 5533ec7 commit bda118c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ <h1 style="text-align: center; color: #333;">blockwars.gg</h1>
<script>
//This is a base64 encoded WebAssembly binary, it is 33% bigger than the original .wasm binary, im just testing it out.
// Base64WasmStart
const base64Wasm = 'AGFzbQEAAAABDwNgAABgA319fwBgAX8BfwMEAwABAgUDAQAUBjkHfwFBgIDAAAt/AEHkg8AAC38AQeGDwAALfwBB4IPAAAt/AEHo888AC38AQej0zwALfwBB8PTPAAsHTwgGbWVtb3J5AgAJYmxvY2t3YXJzAAAERFJBVwMBBVJFU0VUAwIFSU5QVVQDAwRTRUVEAwQKX19kYXRhX2VuZAMFC19faGVhcF9iYXNlAwYK3REDyw0CCX8KfSMAQYABayIHJABB/I9wIQADQCAABEAgAEHo888AakEANgIAIABBBGohAAwBCwtBACEAAkBB4YPAAC0AAEEBRgRAQeCDwABBADoAAEHhg8AAQQA6AAAgBxACIgQoAnwgBEH4AGoiBSgCAHMiBkEHcEEDaiEBIAQhAgJAA0AgASADRgRAIAZBBHQgBkEHbkHwAGxrQbCAwABqIQADQCABQQlLDQMgAEEANgIAIABBEGohACABQQFqIQEMAAsACyAAQaABRwRAIABBgIBAa0EBNgIAIABBjIDAAGpDAAAAQEMAAEBAIABBEEYbQwAAgD8gABs4AgAgAEGIgMAAaiACKAIAIgggBSgCAHNB+gFwszgCACAAQYSAwABqIAggBCADQR9zQQJ0aigCAHNB+gFwszgCACAFQQRrIQUgAkEEaiECIABBEGohACADQQFqIQMMAQsLA0AMAAsACyAEEAIiAkH4AGohAUHAfSEAIAIiAygCfCEGQQAhBQNAIABFDQIgAEHsg8AAakEANgIAIABB6IPAAGogAygCACIEIAZzQQVwQQFqszgCACAAQeSD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AFBfHEiBUEEaiECQQAgB2tBGHEhByAFKAIAIQUDQCAEIAUgCXYgAigCACIFIAd0cjYCACACQQRqIQIgBEEEaiIEIANJDQALDAELIAZBAEwNACABIQIDQCAEIAIoAgA2AgAgAkEEaiECIARBBGoiBCADSQ0ACwsgASAGaiECIAhBA3EiAQRAIAEgA2ohAQNAIAMgAi0AADoAACACQQFqIQIgA0EBaiIDIAFJDQALCyAACw==';
// Base64WasmEnd
const canvas = document.getElementById('canvas');

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ const TELEPORT_SPEED: f32 = 15.;
const TELEPORT_NONE: core::option::Option<(f32, f32, f32)> = None;
static mut TELEPORT: [Option<(f32, f32, f32)>; MAX_TELEPORT] = [TELEPORT_NONE; MAX_TELEPORT];

const MAX_ENEMY: usize = 20;
const MAX_ENEMY: usize = 15;
const ENEMY_HEIGHT: u8 = 5;
const ENEMY_WIDTH: u8 = 5;
const ENEMY_WIDTH: u8 = 10;

const ENEMY_SPEED: f32 = 20.;

Expand Down

0 comments on commit bda118c

Please sign in to comment.