diff --git a/.gitignore b/.gitignore index e43f705..edc395f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .DS_Store +.vscode/ .sconsign.dblite wasmer/ addons.zip diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3366a23 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Ashton Meuser + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/addons/godot-wasm/LICENSE b/addons/godot-wasm/LICENSE index 599d964..3366a23 100644 --- a/addons/godot-wasm/LICENSE +++ b/addons/godot-wasm/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Ashton Meuser +Copyright (c) 2023 Ashton Meuser Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/examples/wasm-create/assembly/index.ts b/examples/wasm-create/assembly/index.ts index 7ddce62..20015c4 100644 --- a/examples/wasm-create/assembly/index.ts +++ b/examples/wasm-create/assembly/index.ts @@ -29,10 +29,10 @@ export function sieve(_limit: i64): i32 { const limit: i32 = _limit; // Low primes - if (limit <= 0) return 0 - if (limit <= 1) return 1 - if (limit <= 2) return 2 - if (limit <= 4) return 3 + if (limit <= 0) return 0; + if (limit <= 1) return 1; + if (limit <= 2) return 2; + if (limit <= 4) return 3; // Initialize the sieve array with false values let sieve = new Array(limit + 1).fill(false); @@ -66,8 +66,8 @@ export function sieve(_limit: i64): i32 { } // Return highest prime - for (let a = limit; a >= 0; a -= 1) - if (sieve[a]) return a; + for (let i = limit; i >= 0; i -= 1) + if (sieve[i]) return i; return 0; } diff --git a/media/Icon.png b/media/Icon.png new file mode 100644 index 0000000..0205f63 Binary files /dev/null and b/media/Icon.png differ diff --git a/media/Screenshot.png b/media/Screenshot.png new file mode 100644 index 0000000..fa6ec18 Binary files /dev/null and b/media/Screenshot.png differ