diff --git a/Cargo.lock b/Cargo.lock index 378d056b64..530a2072ed 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -27,9 +27,9 @@ dependencies = [ [[package]] name = "async-trait" -version = "0.1.52" +version = "0.1.56" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "061a7acccaa286c011ddc30970520b98fa40e00c9d644633fb26b5fc63a265e3" +checksum = "96cf8829f67d2eab0b2dfa42c5d0ef737e0724e4a82b01b3e292456202b19716" dependencies = [ "proc-macro2", "quote", @@ -60,12 +60,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" -[[package]] -name = "base-x" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4521f3e3d031370679b3b140beb36dfe4801b09ac77e30c61941f97df3ef28b" - [[package]] name = "bitflags" version = "1.3.2" @@ -74,15 +68,15 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bumpalo" -version = "3.9.1" +version = "3.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a45a46ab1f2412e53d3a0ade76ffad2025804294569aae387231a0cd6e0899" +checksum = "37ccbd214614c6783386c1af30caf03192f17891059cecc394b4fb119e363de3" [[package]] name = "bytemuck" -version = "1.7.3" +version = "1.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "439989e6b8c38d1b6570a384ef1e49c8848128f5a97f3914baef02920842712f" +checksum = "cdead85bdec19c194affaeeb670c0e41fe23de31459efd1c174d049269cf02cc" [[package]] name = "byteorder" @@ -110,9 +104,9 @@ checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" [[package]] name = "core-foundation" -version = "0.6.4" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25b9e03f145fd4f2bf705e07b900cd41fc636598fe5dc452fd0db1441c3f496d" +checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146" dependencies = [ "core-foundation-sys", "libc", @@ -120,9 +114,9 @@ dependencies = [ [[package]] name = "core-foundation-sys" -version = "0.6.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7ca8a5221364ef15ce201e8ed2f609fc312682a8f4e0e3d4aa5879764e0fa3b" +checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" [[package]] name = "crc32fast" @@ -158,12 +152,6 @@ dependencies = [ "byteorder", ] -[[package]] -name = "discard" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0" - [[package]] name = "ff-particles" version = "0.1.2" @@ -206,8 +194,8 @@ dependencies = [ [[package]] name = "fishsticks" -version = "0.2.1" -source = "git+https://github.com/fishfight/fishsticks#ffd11a5b48abecadf8cd47033b1b26fff74b5557" +version = "0.2.3" +source = "git+https://github.com/fishfight/fishsticks#25bd7676c85064ad976c449317f30b623f5e7515" dependencies = [ "cfg-if", "gilrs", @@ -231,9 +219,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.4" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c" +checksum = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6" dependencies = [ "cfg-if", "js-sys", @@ -244,9 +232,9 @@ dependencies = [ [[package]] name = "gilrs" -version = "0.8.2" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1550c8bdebc993576e343d600a954654708a9a1182396ee1e805d6fe60c72909" +checksum = "1d6ba7c37bf8ea7ba0c3e3795dfa1a7771b1e47c4bb417c4d27c7b338d79685f" dependencies = [ "fnv", "gilrs-core", @@ -257,9 +245,9 @@ dependencies = [ [[package]] name = "gilrs-core" -version = "0.3.2" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84c7262ce1e88429c9b1d847820c9d2ba00adafc955218393d9c0861d5aaab88" +checksum = "96a8d94a7fc5afd27e894e08a4cfe5a49237f85bcc7140e90721bad3399c7d02" dependencies = [ "core-foundation", "io-kit-sys", @@ -269,9 +257,9 @@ dependencies = [ "log", "nix", "rusty-xinput", - "stdweb", "uuid", "vec_map", + "wasm-bindgen", "web-sys", "winapi", ] @@ -293,20 +281,20 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.12.0" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c21d40587b92fa6a6c6e3c1bdbf87d75511db5672f9c93175574b3a00df1758" +checksum = "db0d4cf898abf0081f964436dc980e96670a0f36863e4b83aaacdb65c9d7ccc3" dependencies = [ "ahash 0.7.6", ] [[package]] name = "hecs" -version = "0.7.6" +version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d4e8eb4d5dd2ea100ffbb4eb6814f4294a7362fcafbc5c1c4c015b41d16f424" +checksum = "95ae6c6368add4cc6592ed9b48a270b35cf3a52d429355aaeb55822935526e94" dependencies = [ - "hashbrown 0.12.0", + "hashbrown 0.12.1", "spin", ] @@ -333,9 +321,9 @@ dependencies = [ [[package]] name = "io-kit-sys" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f21dcc74995dd4cd090b147e79789f8d65959cbfb5f0b118002db869ea3bd0a0" +checksum = "7789f7f3c9686f96164f5109d69152de759e76e284f736bd57661c6df5091919" dependencies = [ "core-foundation-sys", "mach", @@ -343,15 +331,15 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35" +checksum = "112c678d4050afce233f4f2852bb2eb519230b3cf12f33585275537d7e41578d" [[package]] name = "js-sys" -version = "0.3.56" +version = "0.3.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a38fc24e30fd564ce974c02bf1d337caddff65be6cc4735a1f7eab22a7440f04" +checksum = "c3fac17f7123a73ca62df411b1bf727ccc805daa070338fda671c86dac1bdc27" dependencies = [ "wasm-bindgen", ] @@ -375,9 +363,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.118" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06e509672465a0504304aa87f9f176f2b2b716ed8fb105ebe5c02dc6dce96a94" +checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" [[package]] name = "libudev-sys" @@ -391,27 +379,27 @@ dependencies = [ [[package]] name = "log" -version = "0.4.14" +version = "0.4.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" +checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" dependencies = [ "cfg-if", ] [[package]] name = "mach" -version = "0.2.3" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86dd2487cdfea56def77b88438a2c915fb45113c5319bfe7e14306ca4cd0b0e1" +checksum = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa" dependencies = [ "libc", ] [[package]] name = "macroquad" -version = "0.3.13" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bbc44698249e98c7aedb8eef94b8806b5d68187c0c3d8c2a0912cb9efab1950" +checksum = "6b723ade71357d07177c769af9ae42beff73c854e827ee5a4ec765dd2beb95e1" dependencies = [ "bumpalo", "fontdue", @@ -425,9 +413,9 @@ dependencies = [ [[package]] name = "macroquad-platformer" -version = "0.1.2" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a912b373a1edc678242e262010d58e3e7e7977bf00227d5343dd9e641d52fa2" +checksum = "927301bceb8c2781043a18611304b7b0a9d034b402321d4e099ef01c58ac0793" dependencies = [ "macroquad", ] @@ -444,20 +432,11 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" -[[package]] -name = "memoffset" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" -dependencies = [ - "autocfg", -] - [[package]] name = "miniquad" -version = "0.3.0-alpha.42" +version = "0.3.0-alpha.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75bba73cbdaa1cb8f7889fcbb083941eae39ad4257d47e0d8e819d1de9963ba0" +checksum = "c1462459fb1813decc7115ab4aed8f41183612557b08bf604bfb46b05286d703" dependencies = [ "sapp-android", "sapp-darwin", @@ -485,22 +464,20 @@ checksum = "e1bcdd74c20ad5d95aacd60ef9ba40fdf77f767051040541df557b7a9b2a2121" [[package]] name = "nix" -version = "0.23.1" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f866317acbd3a240710c63f065ffb1e4fd466259045ccb504130b7f668f35c6" +checksum = "8f17df307904acd05aa8e32e97bb20f2a0df1728bbc2d771ae8f9a90463441e9" dependencies = [ "bitflags", - "cc", "cfg-if", "libc", - "memoffset", ] [[package]] name = "num-integer" -version = "0.1.44" +version = "0.1.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db" +checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9" dependencies = [ "autocfg", "num-traits", @@ -508,9 +485,9 @@ dependencies = [ [[package]] name = "num-iter" -version = "0.1.42" +version = "0.1.43" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2021c8337a54d21aca0d59a92577a029af9431cb59b909b03252b9c164fad59" +checksum = "7d03e6c028c5dc5cac6e2dec0efda81fc887605bb3d884578bb6d6bf7514e252" dependencies = [ "autocfg", "num-integer", @@ -530,9 +507,9 @@ dependencies = [ [[package]] name = "num-traits" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290" +checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" dependencies = [ "autocfg", ] @@ -548,15 +525,15 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.9.0" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5" +checksum = "7709cef83f0c1f58f666e746a08b21e0085f7440fa6a29cc194d68aac97a4225" [[package]] name = "pkg-config" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58893f751c9b0412871a09abd62ecd2a00298c6c83befa223ef98c52aef40cbe" +checksum = "1df8c4ec4b0627e53bdf214615ad287367e482558cf84b109250b37464dc03ae" [[package]] name = "png" @@ -572,11 +549,11 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.36" +version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029" +checksum = "dd96a1e8ed2596c337f8eae5f24924ec83f5ad5ab21ea8e455d3566c69fbcaf7" dependencies = [ - "unicode-xid", + "unicode-ident", ] [[package]] @@ -609,22 +586,13 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.15" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145" +checksum = "3bcdf212e9776fbcb2d23ab029360416bb1706b1aea2d1a5ba002727cbcab804" dependencies = [ "proc-macro2", ] -[[package]] -name = "rustc_version" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" -dependencies = [ - "semver", -] - [[package]] name = "rusty-xinput" version = "1.2.0" @@ -638,15 +606,15 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.9" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73b4b750c782965c211b42f022f59af1fbceabdd026623714f104152f1ec149f" +checksum = "f3f6f92acf49d1b98f7a81226834412ada05458b7364277387724a237f062695" [[package]] name = "sapp-android" -version = "0.1.14" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27c54dc8d8fc38874a0e5cca3a8fba35c7db8e46a3d65f47d0fc999aa48d6a9f" +checksum = "9c0d0e6f562c01c533f693ac9c045d69cbeab24d2e16caaaa0e67d06ae6e0940" dependencies = [ "libc", "ndk-sys", @@ -654,9 +622,9 @@ dependencies = [ [[package]] name = "sapp-darwin" -version = "0.1.6" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0310e2445f307468aa13f1cde94d6fba6b8fd329afbb642dedbe3faf1a145f31" +checksum = "f1282369f486bc334efa2d76fa4d54c20b37664d83da14fc60afbe941814e374" dependencies = [ "cc", ] @@ -681,9 +649,9 @@ dependencies = [ [[package]] name = "sapp-linux" -version = "0.1.13" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbdb2f8011955c62544d9e626a58333e788810d00bd7411d52b81611b92af142" +checksum = "dc71510a7781d8f31d58046a9117682c8e8546ad43f52c0e31275db214495c3d" dependencies = [ "libc", ] @@ -696,42 +664,27 @@ checksum = "00e859e8645a3bcb85aecd40bab883438e4105f21b21bccbeac2348760f508bb" [[package]] name = "sapp-windows" -version = "0.2.19" +version = "0.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3e9a4ab4682752ffcbbacf87b44c75373479331dfe408432280d305e0563c9c" +checksum = "088f921b591fdcabf5f2dc17237be5203b6a1a6988f252d36e153f1442a8138e" dependencies = [ "winapi", ] -[[package]] -name = "semver" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" -dependencies = [ - "semver-parser", -] - -[[package]] -name = "semver-parser" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" - [[package]] name = "serde" -version = "1.0.136" +version = "1.0.137" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789" +checksum = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.136" +version = "1.0.137" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08597e7152fcd306f41838ed3e37be9eaeed2b61c42e2117266a554fab4662f9" +checksum = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be" dependencies = [ "proc-macro2", "quote", @@ -740,30 +693,15 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.79" +version = "1.0.81" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e8d9fa5c3b304765ce1fd9c4c8a3de2c8db365a5b91be52f186efc675681d95" +checksum = "9b7ce2b32a1aed03c558dc61a5cd328f15aff2dbc17daad8fb8af04d2100e15c" dependencies = [ "itoa", "ryu", "serde", ] -[[package]] -name = "sha1" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1da05c97445caa12d05e848c4a4fcbbea29e748ac28f7e80e9b010392063770" -dependencies = [ - "sha1_smol", -] - -[[package]] -name = "sha1_smol" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae1a47186c03a32177042e55dbc5fd5aee900b8e0069a8d70fba96a9375cd012" - [[package]] name = "smallvec" version = "0.6.14" @@ -775,77 +713,26 @@ dependencies = [ [[package]] name = "spin" -version = "0.9.2" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "511254be0c5bcf062b019a6c89c01a664aa359ded62f78aa72c6fc137c0590e5" - -[[package]] -name = "stdweb" -version = "0.4.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d022496b16281348b52d0e30ae99e01a73d737b2f45d38fed4edf79f9325a1d5" -dependencies = [ - "discard", - "rustc_version", - "serde", - "serde_json", - "stdweb-derive", - "stdweb-internal-macros", - "stdweb-internal-runtime", - "wasm-bindgen", -] - -[[package]] -name = "stdweb-derive" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c87a60a40fccc84bef0652345bbbbbe20a605bf5d0ce81719fc476f5c03b50ef" -dependencies = [ - "proc-macro2", - "quote", - "serde", - "serde_derive", - "syn", -] - -[[package]] -name = "stdweb-internal-macros" -version = "0.2.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58fa5ff6ad0d98d1ffa8cb115892b6e69d67799f6763e162a1c9db421dc22e11" -dependencies = [ - "base-x", - "proc-macro2", - "quote", - "serde", - "serde_derive", - "serde_json", - "sha1", - "syn", -] - -[[package]] -name = "stdweb-internal-runtime" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "213701ba3370744dcd1a12960caa4843b3d68b4d1c0a5d575e0d65b2ee9d16c0" +checksum = "c530c2b0d0bf8b69304b39fe2001993e267461948b890cd037d8ad4293fa1a0d" [[package]] name = "syn" -version = "1.0.86" +version = "1.0.98" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b" +checksum = "c50aef8a904de4c23c788f104b7dddc7d6f79c647c7c8ce4cc8f73eb0ca773dd" dependencies = [ "proc-macro2", "quote", - "unicode-xid", + "unicode-ident", ] [[package]] name = "toml" -version = "0.5.8" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa" +checksum = "8d82e1a7758622a465f8cee077614c73484dac5b836c02ff6a40d5d1010324d7" dependencies = [ "serde", ] @@ -857,16 +744,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ae2f58a822f08abdaf668897e96a5656fe72f5a9ce66422423e8849384872e6" [[package]] -name = "unicode-xid" -version = "0.2.2" +name = "unicode-ident" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" +checksum = "5bd2fe26506023ed7b5e1e315add59d6f584c621d037f9368fea9cfb988f368c" [[package]] name = "uuid" -version = "0.8.2" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" +checksum = "dd6469f4314d5f1ffec476e05f17cc9a78bc7a27a6a857842170bdf8d6f98d2f" [[package]] name = "vec_map" @@ -882,15 +769,15 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "wasi" -version = "0.10.2+wasi-snapshot-preview1" +version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.79" +version = "0.2.81" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25f1af7423d8588a3d840681122e72e6a24ddbcb3f0ec385cac0d12d24256c06" +checksum = "7c53b543413a17a202f4be280a7e5c62a1c69345f5de525ee64f8cfdbc954994" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -898,9 +785,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.79" +version = "0.2.81" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b21c0df030f5a177f3cba22e9bc4322695ec43e7257d865302900290bcdedca" +checksum = "5491a68ab4500fa6b4d726bd67408630c3dbe9c4fe7bda16d5c82a1fd8c7340a" dependencies = [ "bumpalo", "lazy_static", @@ -913,9 +800,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.79" +version = "0.2.81" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f4203d69e40a52ee523b2529a773d5ffc1dc0071801c87b3d270b471b80ed01" +checksum = "c441e177922bc58f1e12c022624b6216378e5febc2f0533e41ba443d505b80aa" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -923,9 +810,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.79" +version = "0.2.81" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa8a30d46208db204854cadbb5d4baf5fcf8071ba5bf48190c3e59937962ebc" +checksum = "7d94ac45fcf608c1f45ef53e748d35660f168490c10b23704c7779ab8f5c3048" dependencies = [ "proc-macro2", "quote", @@ -936,15 +823,15 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.79" +version = "0.2.81" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d958d035c4438e28c70e4321a2911302f10135ce78a9c7834c0cab4123d06a2" +checksum = "6a89911bd99e5f3659ec4acf9c4d93b0a90fe4a2a11f15328472058edc5261be" [[package]] name = "web-sys" -version = "0.3.56" +version = "0.3.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c060b319f29dd25724f09a2ba1418f142f539b2be99fbf4d2d5a8f7330afb8eb" +checksum = "2fed94beee57daf8dd7d51f2b15dc2bcde92d7a72304cdf662a4371008b71b90" dependencies = [ "js-sys", "wasm-bindgen", diff --git a/Cargo.toml b/Cargo.toml index 9a8c0ad183..f7675b8e3f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,8 +23,8 @@ core = { path = "./core", package = "fishfight-core" } # ultimate = { path = "../FishFight-ultimate", package = "fishfight-ultimate", optional = true } ff-particles = { version = "0.1", features = ["serde"] } fishsticks = { git = "https://github.com/fishfight/fishsticks", default-features = false, features = ["gilrs"] } -macroquad = { version = "0.3.10" } -macroquad-platformer = "0.1" +macroquad = { version = "=0.3.16" } # Newer versions break is_key_pressed detection +macroquad-platformer = "0.1.3" hecs = "0.7.1" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" diff --git a/README.md b/README.md index b37d3c60b7..fa4c16ca8b 100644 --- a/README.md +++ b/README.md @@ -72,26 +72,9 @@ pacman -S fishfight 2. Clone this repository: `git clone https://github.com/fishfight/FishFight.git` 3. `cargo run` -## Default key bindings - -Keyboard right: -- movement: arrow keys `↑`, `←`, `↓`, `→` -- pick/drop: `K` -- attack: `L` -- slide: `↓` + `RightCtrl` - -Keyboard left: -- movement: `W`, `A`, `S`, `D` (& `Space` for jump) -- pick/drop: `C` -- attack: `V` & `LeftCtrl` -- slide: `A` + `F` - -Gamepad: -- movement: direction axis -- pick/drop: `X` -- attack: `B` -- jump: `A` -- slide: `Down` + `Y` +## Default Keybindings + +You can view and modify the default keybindings in [config.toml](./config.toml). ## Credits diff --git a/assets/decoration/anemones.json b/assets/decoration/anemones.json index 36db7eab28..b3975a8bb2 100644 --- a/assets/decoration/anemones.json +++ b/assets/decoration/anemones.json @@ -3,10 +3,6 @@ "sprite": { "texture": "default_decoration", "autoplay_id": "idle", - "frame_size": { - "x": 48, - "y": 51 - }, "animations": [ { "id": "idle", diff --git a/assets/decoration/seaweed.json b/assets/decoration/seaweed.json index 199a90aed8..87a77c4dc1 100644 --- a/assets/decoration/seaweed.json +++ b/assets/decoration/seaweed.json @@ -3,10 +3,6 @@ "sprite": { "texture": "default_decoration", "autoplay_id": "idle", - "frame_size": { - "x": 48, - "y": 51 - }, "animations": [ { "id": "idle", @@ -15,7 +11,6 @@ "fps": 8, "is_looping": true } - ], - "autoplay": true + ] } -} \ No newline at end of file +} diff --git a/assets/items/cannon.json b/assets/items/cannon.json index d967497521..e50228fd77 100644 --- a/assets/items/cannon.json +++ b/assets/items/cannon.json @@ -46,7 +46,6 @@ "type": "circle_collider", "radius": 80, "is_explosion": true, - "particle_effect": "hit", "sound_effect": "explode" }, { diff --git a/assets/items/grenades.json b/assets/items/grenades.json index a8c7070cdf..25c56e3b23 100644 --- a/assets/items/grenades.json +++ b/assets/items/grenades.json @@ -60,8 +60,7 @@ "fps": 12, "is_looping": true } - ], - "should_autoplay": true + ] }, "particles": [ { @@ -101,4 +100,4 @@ } ] } -} \ No newline at end of file +} diff --git a/assets/items/kick_bomb.json b/assets/items/kick_bomb.json index d585f39a9f..68dfb24941 100644 --- a/assets/items/kick_bomb.json +++ b/assets/items/kick_bomb.json @@ -42,7 +42,6 @@ "type": "circle_collider", "radius": 64, "is_explosion": true, - "particle_effect": "hit", "sound_effect": "explode" }, { diff --git a/assets/items/mines.json b/assets/items/mines.json index 5cb81eb96d..b4a3b1add7 100644 --- a/assets/items/mines.json +++ b/assets/items/mines.json @@ -30,7 +30,6 @@ "type": "circle_collider", "radius": 64, "is_explosion": true, - "particle_effect": "hit", "sound_effect": "explode" }, { diff --git a/assets/maps/lev01.json b/assets/maps/lev01.json index 5018857b1e..c99f936a3d 100644 --- a/assets/maps/lev01.json +++ b/assets/maps/lev01.json @@ -856,11 +856,11 @@ } }, { - "id": "mines", + "id": "kick_bomb", "kind": "item", "position": { - "x": 142.4722, - "y": 253.69444 + "x": 141.7857, + "y": 240.12857 } }, { @@ -1494,10 +1494,10 @@ "56": [ "jumpthrough" ], - "60": [ + "58": [ "jumpthrough" ], - "58": [ + "60": [ "jumpthrough" ] } diff --git a/assets/maps/lev02.json b/assets/maps/lev02.json index 61fd313818..c192adc3ad 100644 --- a/assets/maps/lev02.json +++ b/assets/maps/lev02.json @@ -274,8 +274,8 @@ 0, 8, 10, - 0, - 0, + 59, + 61, 0, 0, 0, @@ -301,8 +301,8 @@ 2, 8, 10, - 59, - 61, + 0, + 0, 0, 0, 0, @@ -355,8 +355,8 @@ 13, 8, 10, - 0, - 0, + 59, + 61, 0, 0, 0, @@ -409,8 +409,8 @@ 6, 8, 10, - 59, - 61, + 0, + 0, 0, 0, 0, @@ -436,8 +436,8 @@ 13, 8, 10, - 0, - 0, + 59, + 61, 0, 0, 0, @@ -536,7 +536,7 @@ 0, 0, 0, - 0, + 57, 29, 30, 40, @@ -699,8 +699,8 @@ "id": "anemones", "kind": "decoration", "position": { - "x": 37.54866, - "y": 237.76035 + "x": 35.88199, + "y": 301.0937 } }, { @@ -728,35 +728,123 @@ "has_collision": false, "objects": [ { - "id": "sword", + "id": "grenades", "kind": "item", "position": { - "x": 225.00365, - "y": 570.9357 + "x": 798.1076, + "y": 120.600006 } }, { - "id": "sword", + "id": "crab", + "kind": "environment", + "position": { + "x": 419.0, + "y": 399.33334 + } + }, + { + "id": "crab", + "kind": "environment", + "position": { + "x": 608.94116, + "y": 82.56866 + } + }, + { + "id": "crab", + "kind": "environment", + "position": { + "x": 135.36362, + "y": 147.27274 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 248.2858, + "y": 424.99997 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 765.28577, + "y": 205.14287 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 204.00006, + "y": 108.42859 + } + }, + { + "id": "sniper_rifle", + "kind": "item", + "position": { + "x": 578.4286, + "y": 54.14292 + } + }, + { + "id": "mines", "kind": "item", "position": { - "x": 655.00366, - "y": 284.93573 + "x": 41.571472, + "y": 221.28577 } }, { "id": "musket", "kind": "item", "position": { - "x": 353.08264, - "y": 19.381384 + "x": 569.85706, + "y": 306.33325 } }, { - "id": "mines", + "id": "musket", + "kind": "item", + "position": { + "x": 199.16669, + "y": 444.16672 + } + }, + { + "id": "sproinger", + "kind": "environment", + "position": { + "x": 705.6667, + "y": 491.83334 + } + }, + { + "id": "sword", + "kind": "item", + "position": { + "x": 143.18549, + "y": 612.7539 + } + }, + { + "id": "sword", + "kind": "item", + "position": { + "x": 401.6703, + "y": 385.7691 + } + }, + { + "id": "musket", "kind": "item", "position": { - "x": 726.0, - "y": 70.0 + "x": 274.90082, + "y": 32.108643 } } ], @@ -1483,16 +1571,20 @@ ], "spawn_points": [ { - "x": 82.574425, - "y": 468.84995 + "x": 98.210815, + "y": 490.57727 }, { - "x": 316.61115, - "y": 103.42124 + "x": 271.61115, + "y": 101.75456 }, { "x": 787.6791, "y": 195.83423 + }, + { + "x": 650.2078, + "y": 458.88315 } ] } \ No newline at end of file diff --git a/assets/maps/lev02.png b/assets/maps/lev02.png index aee2b13bf0..314b0e3227 100644 Binary files a/assets/maps/lev02.png and b/assets/maps/lev02.png differ diff --git a/assets/maps/lev03.json b/assets/maps/lev03.json index 1d5995047c..89e9d3eb3d 100644 --- a/assets/maps/lev03.json +++ b/assets/maps/lev03.json @@ -1393,12 +1393,92 @@ "kind": "object_layer", "has_collision": false, "objects": [ + { + "id": "grenades", + "kind": "item", + "position": { + "x": 777.2001, + "y": 827.5333 + } + }, + { + "id": "sproinger", + "kind": "environment", + "position": { + "x": 230.25632, + "y": 780.5556 + } + }, + { + "id": "sproinger", + "kind": "environment", + "position": { + "x": 859.55554, + "y": 779.0 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 353.16675, + "y": 456.16672 + } + }, + { + "id": "crab", + "kind": "environment", + "position": { + "x": 795.4643, + "y": 530.2143 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 232.0, + "y": 616.0 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 220.63892, + "y": 295.95834 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 838.77277, + "y": 300.51138 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 768.89795, + "y": 717.31824 + } + }, + { + "id": "crab", + "kind": "environment", + "position": { + "x": 521.8443, + "y": 403.16885 + } + }, { "id": "musket", "kind": "item", "position": { - "x": 591.0, - "y": 337.83334 + "x": 530.1667, + "y": 348.6667 } }, { @@ -1439,22 +1519,22 @@ ], "tilesets": [ { - "id": "tileset", - "texture_id": "default_tileset", + "id": "decorations1", + "texture_id": "default_decoration", "texture_size": { - "x": 224, - "y": 288 + "x": 240, + "y": 102 }, "tile_size": { - "x": 32.0, - "y": 32.0 + "x": 48.0, + "y": 51.0 }, "grid_size": { - "x": 7, - "y": 9 + "x": 5, + "y": 2 }, - "first_tile_id": 1, - "tile_cnt": 63, + "first_tile_id": 64, + "tile_cnt": 10, "tile_subdivisions": { "x": 3, "y": 3 @@ -1549,6 +1629,31 @@ false, false, false, + false + ] + }, + { + "id": "tileset", + "texture_id": "default_tileset", + "texture_size": { + "x": 224, + "y": 288 + }, + "tile_size": { + "x": 32.0, + "y": 32.0 + }, + "grid_size": { + "x": 7, + "y": 9 + }, + "first_tile_id": 1, + "tile_cnt": 63, + "tile_subdivisions": { + "x": 3, + "y": 3 + }, + "autotile_mask": [ false, false, false, @@ -2026,42 +2131,6 @@ false, false, false, - false - ], - "tile_attributes": { - "56": [ - "jumpthrough" - ], - "58": [ - "jumpthrough" - ], - "60": [ - "jumpthrough" - ] - } - }, - { - "id": "decorations1", - "texture_id": "default_decoration", - "texture_size": { - "x": 240, - "y": 102 - }, - "tile_size": { - "x": 48.0, - "y": 51.0 - }, - "grid_size": { - "x": 5, - "y": 2 - }, - "first_tile_id": 64, - "tile_cnt": 10, - "tile_subdivisions": { - "x": 3, - "y": 3 - }, - "autotile_mask": [ false, false, false, @@ -2152,7 +2221,18 @@ false, false, false - ] + ], + "tile_attributes": { + "56": [ + "jumpthrough" + ], + "58": [ + "jumpthrough" + ], + "60": [ + "jumpthrough" + ] + } } ], "spawn_points": [ diff --git a/assets/maps/lev03.png b/assets/maps/lev03.png index a26873e738..777fac6b24 100644 Binary files a/assets/maps/lev03.png and b/assets/maps/lev03.png differ diff --git a/assets/maps/lev04.json b/assets/maps/lev04.json index e99371e3ff..23080f60d0 100644 --- a/assets/maps/lev04.json +++ b/assets/maps/lev04.json @@ -199,9 +199,6 @@ 9, 9, 21, - 23, - 23, - 24, 0, 0, 0, @@ -227,19 +224,19 @@ 0, 0, 0, - 22, - 23, - 23, - 14, - 9, - 9, - 10, 0, 0, 0, 0, 0, 0, + 14, + 9, + 9, + 10, + 59, + 59, + 61, 0, 0, 0, @@ -265,6 +262,9 @@ 0, 0, 0, + 57, + 59, + 59, 8, 9, 9, @@ -597,6 +597,54 @@ "kind": "object_layer", "has_collision": false, "objects": [ + { + "id": "sniper_rifle", + "kind": "item", + "position": { + "x": 956.28564, + "y": 217.14284 + } + }, + { + "id": "blunderbass", + "kind": "item", + "position": { + "x": 77.7143, + "y": 231.42854 + } + }, + { + "id": "crab", + "kind": "environment", + "position": { + "x": 549.5714, + "y": 208.1429 + } + }, + { + "id": "crab", + "kind": "environment", + "position": { + "x": 468.71423, + "y": 49.571457 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 867.2858, + "y": 323.14285 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 65.7143, + "y": 102.14285 + } + }, { "id": "seaweed", "kind": "decoration", @@ -610,7 +658,7 @@ "kind": "decoration", "position": { "x": 472.5, - "y": 334.0 + "y": 334.00003 } }, { @@ -641,16 +689,16 @@ "id": "seaweed", "kind": "decoration", "position": { - "x": 710.0, - "y": 16.5 + "x": 708.1818, + "y": 12.863632 } }, { "id": "seaweed", "kind": "decoration", "position": { - "x": 83.0, - "y": 67.5 + "x": 73.45456, + "y": 110.35715 } }, { @@ -677,12 +725,60 @@ "kind": "object_layer", "has_collision": false, "objects": [ + { + "id": "crate", + "kind": "item", + "position": { + "x": 92.20001, + "y": 325.08463 + } + }, + { + "id": "crate", + "kind": "item", + "position": { + "x": 1002.99225, + "y": 324.26926 + } + }, + { + "id": "crate", + "kind": "item", + "position": { + "x": 79.70007, + "y": 118.27142 + } + }, + { + "id": "crate", + "kind": "item", + "position": { + "x": 1013.9857, + "y": 124.75714 + } + }, + { + "id": "crate", + "kind": "item", + "position": { + "x": 368.078, + "y": 28.023087 + } + }, + { + "id": "crate", + "kind": "item", + "position": { + "x": 646.6118, + "y": 24.362648 + } + }, { "id": "musket", "kind": "item", "position": { - "x": 589.0, - "y": 330.83334 + "x": 595.79486, + "y": 352.79916 } }, { @@ -697,8 +793,8 @@ "id": "sword", "kind": "item", "position": { - "x": 382.66666, - "y": 7.6666665 + "x": 518.0513, + "y": 35.35897 } }, { @@ -713,32 +809,24 @@ "id": "sword", "kind": "item", "position": { - "x": 309.0, - "y": 327.0 + "x": 256.85715, + "y": 354.85715 } }, { "id": "mines", "kind": "item", "position": { - "x": 635.5905, - "y": 41.094215 + "x": 778.05804, + "y": 29.276031 } }, { "id": "sproinger", "kind": "environment", "position": { - "x": 499.48517, - "y": 367.1083 - } - }, - { - "id": "sproinger", - "kind": "environment", - "position": { - "x": 586.8749, - "y": 366.11847 + "x": 544.4851, + "y": 364.33054 } } ], @@ -747,22 +835,22 @@ ], "tilesets": [ { - "id": "decorations1", - "texture_id": "default_decoration", + "id": "tileset", + "texture_id": "default_tileset", "texture_size": { - "x": 240, - "y": 102 + "x": 224, + "y": 288 }, "tile_size": { - "x": 48.0, - "y": 51.0 + "x": 32.0, + "y": 32.0 }, "grid_size": { - "x": 5, - "y": 2 + "x": 7, + "y": 9 }, - "first_tile_id": 64, - "tile_cnt": 10, + "first_tile_id": 1, + "tile_cnt": 63, "tile_subdivisions": { "x": 3, "y": 3 @@ -857,31 +945,6 @@ false, false, false, - false - ] - }, - { - "id": "tileset", - "texture_id": "default_tileset", - "texture_size": { - "x": 224, - "y": 288 - }, - "tile_size": { - "x": 32.0, - "y": 32.0 - }, - "grid_size": { - "x": 7, - "y": 9 - }, - "first_tile_id": 1, - "tile_cnt": 63, - "tile_subdivisions": { - "x": 3, - "y": 3 - }, - "autotile_mask": [ false, false, false, @@ -1359,6 +1422,42 @@ false, false, false, + false + ], + "tile_attributes": { + "56": [ + "jumpthrough" + ], + "60": [ + "jumpthrough" + ], + "58": [ + "jumpthrough" + ] + } + }, + { + "id": "decorations1", + "texture_id": "default_decoration", + "texture_size": { + "x": 240, + "y": 102 + }, + "tile_size": { + "x": 48.0, + "y": 51.0 + }, + "grid_size": { + "x": 5, + "y": 2 + }, + "first_tile_id": 64, + "tile_cnt": 10, + "tile_subdivisions": { + "x": 3, + "y": 3 + }, + "autotile_mask": [ false, false, false, @@ -1449,18 +1548,7 @@ false, false, false - ], - "tile_attributes": { - "58": [ - "jumpthrough" - ], - "60": [ - "jumpthrough" - ], - "56": [ - "jumpthrough" - ] - } + ] } ], "spawn_points": [ @@ -1473,12 +1561,12 @@ "y": 328.66666 }, { - "x": 141.0, - "y": 72.0 + "x": 137.42857, + "y": 101.28572 }, { - "x": 976.0, - "y": 73.0 + "x": 973.857, + "y": 100.14285 } ] } \ No newline at end of file diff --git a/assets/maps/lev04.png b/assets/maps/lev04.png index 2910ee69fa..4158e036ba 100644 Binary files a/assets/maps/lev04.png and b/assets/maps/lev04.png differ diff --git a/assets/maps/lev05.json b/assets/maps/lev05.json index cfca57607a..6bc75379f3 100644 --- a/assets/maps/lev05.json +++ b/assets/maps/lev05.json @@ -1,8 +1,8 @@ { "background_color": { - "red": 0.0, - "green": 0.0, - "blue": 0.0, + "red": 0.5, + "green": 0.7, + "blue": 0.7, "alpha": 1.0 }, "background_layers": [ @@ -302,11 +302,11 @@ 0, 0, 47, - 24, 57, 59, + 59, + 59, 61, - 22, 49, 0, 0, @@ -482,11 +482,11 @@ 0, 0, 0, - 1, - 2, - 2, - 2, - 3, + 0, + 0, + 0, + 0, + 0, 0, 0, 0, @@ -527,11 +527,11 @@ 0, 0, 0, - 11, - 5, - 28, - 6, - 11, + 1, + 2, + 2, + 2, + 3, 0, 0, 0, @@ -573,9 +573,9 @@ 0, 0, 11, - 21, - 23, - 14, + 5, + 28, + 6, 11, 0, 0, @@ -670,7 +670,7 @@ 0, 0, 0, - 11, + 8, 7, 11, 0, @@ -747,12 +747,20 @@ "kind": "object_layer", "has_collision": false, "objects": [ + { + "id": "sproinger", + "kind": "environment", + "position": { + "x": 703.63354, + "y": 301.37103 + } + }, { "id": "anemones", "kind": "decoration", "position": { - "x": 668.5, - "y": 238.0 + "x": 641.5769, + "y": 270.30768 } }, { @@ -768,7 +776,7 @@ "kind": "decoration", "position": { "x": 748.1667, - "y": 110.0 + "y": 109.999985 } }, { @@ -807,8 +815,8 @@ "id": "anemones", "kind": "decoration", "position": { - "x": 1109.0, - "y": 74.5 + "x": 1108.1666, + "y": 173.66666 } } ], @@ -819,44 +827,124 @@ "kind": "object_layer", "has_collision": false, "objects": [ + { + "id": "grenades", + "kind": "item", + "position": { + "x": 829.98456, + "y": 26.192322 + } + }, + { + "id": "kick_bomb", + "kind": "item", + "position": { + "x": 930.8, + "y": 272.2923 + } + }, + { + "id": "sniper_rifle", + "kind": "item", + "position": { + "x": 354.8334, + "y": 25.500061 + } + }, + { + "id": "cannon", + "kind": "item", + "position": { + "x": 1076.3333, + "y": 15.166718 + } + }, + { + "id": "crab", + "kind": "environment", + "position": { + "x": 897.29407, + "y": 49.588287 + } + }, + { + "id": "crab", + "kind": "environment", + "position": { + "x": 440.6078, + "y": 48.627304 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 982.3334, + "y": 6.7777405 + } + }, + { + "id": "crab", + "kind": "environment", + "position": { + "x": 720.0, + "y": 144.11111 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 474.55557, + "y": 259.22214 + } + }, + { + "id": "mines", + "kind": "item", + "position": { + "x": 452.36362, + "y": 286.1818 + } + }, { "id": "musket", "kind": "item", "position": { - "x": 753.0, - "y": 239.5 + "x": 655.02856, + "y": 127.46002 } }, { "id": "sword", "kind": "item", "position": { - "x": 1167.6666, - "y": 175.66667 + "x": 1103.5, + "y": 198.16664 } }, { "id": "sword", "kind": "item", "position": { - "x": 540.6667, - "y": 28.666666 + "x": 559.8334, + "y": 39.499985 } }, { "id": "sword", "kind": "item", "position": { - "x": 991.6667, - "y": 25.666666 + "x": 887.5, + "y": 38.16667 } }, { "id": "sword", "kind": "item", "position": { - "x": 337.0, - "y": 177.0 + "x": 275.33334, + "y": 198.66666 } } ], @@ -1569,13 +1657,13 @@ false ], "tile_attributes": { - "58": [ + "56": [ "jumpthrough" ], "60": [ "jumpthrough" ], - "56": [ + "58": [ "jumpthrough" ] } diff --git a/assets/maps/lev05.png b/assets/maps/lev05.png index 81f7bf0de8..a971cc28c7 100644 Binary files a/assets/maps/lev05.png and b/assets/maps/lev05.png differ diff --git a/assets/maps/lev06.json b/assets/maps/lev06.json index 3af4472715..f4b6f09c31 100644 --- a/assets/maps/lev06.json +++ b/assets/maps/lev06.json @@ -391,13 +391,13 @@ 0, 0, 0, + 57, + 61, 0, 0, 0, - 0, - 0, - 0, - 0, + 57, + 61, 0, 0, 0, @@ -584,8 +584,8 @@ "id": "anemones", "kind": "decoration", "position": { - "x": 560.8333, - "y": 174.0 + "x": 556.6228, + "y": 173.47368 } }, { @@ -645,59 +645,131 @@ "has_collision": false, "objects": [ { - "id": "sword", + "id": "crate", + "kind": "item", + "position": { + "x": 739.2429, + "y": 31.428589 + } + }, + { + "id": "kick_bomb", + "kind": "item", + "position": { + "x": 190.74286, + "y": 304.98572 + } + }, + { + "id": "sproinger", + "kind": "environment", + "position": { + "x": 159.52945, + "y": 204.47061 + } + }, + { + "id": "sproinger", + "kind": "environment", + "position": { + "x": 609.2202, + "y": 204.23442 + } + }, + { + "id": "musket", "kind": "item", "position": { - "x": 782.6667, - "y": 5.3333335 + "x": 567.6667, + "y": 318.49997 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 373.5, + "y": 227.33334 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 171.00003, + "y": 35.5 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 643.00006, + "y": 419.0 + } + }, + { + "id": "crab", + "kind": "environment", + "position": { + "x": 263.00006, + "y": 80.153854 + } + }, + { + "id": "crab", + "kind": "environment", + "position": { + "x": 543.36365, + "y": 78.90906 } }, { "id": "musket", "kind": "item", "position": { - "x": 420.66666, - "y": 243.33333 + "x": 221.78943, + "y": 192.63158 } }, { "id": "sword", "kind": "item", "position": { - "x": 79.083336, - "y": 6.25 + "x": 45.75, + "y": 37.583336 } }, { "id": "sword", "kind": "item", "position": { - "x": 754.0, - "y": 435.0 + "x": 688.0, + "y": 452.33328 } }, { "id": "sword", "kind": "item", "position": { - "x": 111.333336, - "y": 433.33334 + "x": 134.00003, + "y": 452.66666 } }, { "id": "mines", "kind": "item", "position": { - "x": 432.0, - "y": 40.0 + "x": 446.6667, + "y": 29.333336 } }, { "id": "sproinger", "kind": "environment", "position": { - "x": 384.0, - "y": 592.0 + "x": 382.82352, + "y": 588.4706 } } ], @@ -706,22 +778,22 @@ ], "tilesets": [ { - "id": "decorations1", - "texture_id": "default_decoration", + "id": "tileset", + "texture_id": "default_tileset", "texture_size": { - "x": 240, - "y": 102 + "x": 224, + "y": 288 }, "tile_size": { - "x": 48.0, - "y": 51.0 + "x": 32.0, + "y": 32.0 }, "grid_size": { - "x": 5, - "y": 2 + "x": 7, + "y": 9 }, - "first_tile_id": 64, - "tile_cnt": 10, + "first_tile_id": 1, + "tile_cnt": 63, "tile_subdivisions": { "x": 3, "y": 3 @@ -816,31 +888,6 @@ false, false, false, - false - ] - }, - { - "id": "tileset", - "texture_id": "default_tileset", - "texture_size": { - "x": 224, - "y": 288 - }, - "tile_size": { - "x": 32.0, - "y": 32.0 - }, - "grid_size": { - "x": 7, - "y": 9 - }, - "first_tile_id": 1, - "tile_cnt": 63, - "tile_subdivisions": { - "x": 3, - "y": 3 - }, - "autotile_mask": [ false, false, false, @@ -1318,6 +1365,42 @@ false, false, false, + false + ], + "tile_attributes": { + "58": [ + "jumpthrough" + ], + "56": [ + "jumpthrough" + ], + "60": [ + "jumpthrough" + ] + } + }, + { + "id": "decorations1", + "texture_id": "default_decoration", + "texture_size": { + "x": 240, + "y": 102 + }, + "tile_size": { + "x": 48.0, + "y": 51.0 + }, + "grid_size": { + "x": 5, + "y": 2 + }, + "first_tile_id": 64, + "tile_cnt": 10, + "tile_subdivisions": { + "x": 3, + "y": 3 + }, + "autotile_mask": [ false, false, false, @@ -1408,18 +1491,7 @@ false, false, false - ], - "tile_attributes": { - "60": [ - "jumpthrough" - ], - "58": [ - "jumpthrough" - ], - "56": [ - "jumpthrough" - ] - } + ] } ], "spawn_points": [ diff --git a/assets/maps/lev06.png b/assets/maps/lev06.png index ba1686d43b..32d4916398 100644 Binary files a/assets/maps/lev06.png and b/assets/maps/lev06.png differ diff --git a/assets/maps/lev07.json b/assets/maps/lev07.json index 5385eb2d28..238de50aee 100644 --- a/assets/maps/lev07.json +++ b/assets/maps/lev07.json @@ -746,6 +746,22 @@ "kind": "object_layer", "has_collision": false, "objects": [ + { + "id": "grenades", + "kind": "item", + "position": { + "x": 36.699997, + "y": 217.32353 + } + }, + { + "id": "grenades", + "kind": "item", + "position": { + "x": 802.0353, + "y": 218.47058 + } + }, { "id": "crab", "kind": "environment", @@ -1438,13 +1454,13 @@ false ], "tile_attributes": { - "58": [ + "60": [ "jumpthrough" ], "56": [ "jumpthrough" ], - "60": [ + "58": [ "jumpthrough" ] } diff --git a/assets/maps/zyrafa01.json b/assets/maps/zyrafa01.json index c4f0ec4060..3380d7ef01 100644 --- a/assets/maps/zyrafa01.json +++ b/assets/maps/zyrafa01.json @@ -687,52 +687,108 @@ "kind": "object_layer", "has_collision": false, "objects": [ + { + "id": "grenades", + "kind": "item", + "position": { + "x": 706.4, + "y": 313.525 + } + }, + { + "id": "kick_bomb", + "kind": "item", + "position": { + "x": 68.5, + "y": 301.0 + } + }, + { + "id": "crab", + "kind": "environment", + "position": { + "x": 437.15137, + "y": 454.3866 + } + }, + { + "id": "crab", + "kind": "environment", + "position": { + "x": 426.4284, + "y": 305.14282 + } + }, + { + "id": "crab", + "kind": "environment", + "position": { + "x": 767.923, + "y": 323.23077 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 632.07684, + "y": 437.76926 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 124.46149, + "y": 282.15387 + } + }, { "id": "sword", "kind": "item", "position": { - "x": 640.0, - "y": 256.0 + "x": 690.7143, + "y": 323.14285 } }, { "id": "mines", "kind": "item", "position": { - "x": 224.0, - "y": 480.0 + "x": 239.88235, + "y": 252.94118 } }, { "id": "sword", "kind": "item", "position": { - "x": 288.0, - "y": 256.0 + "x": 73.71431, + "y": 326.0 } }, { - "id": "sword", + "id": "blunderbass", "kind": "item", "position": { - "x": 464.0, - "y": 384.0 + "x": 410.4353, + "y": 484.04706 } }, { "id": "mines", "kind": "item", "position": { - "x": 704.0, - "y": 480.0 + "x": 592.2353, + "y": 252.94118 } }, { "id": "musket", "kind": "item", "position": { - "x": 464.0, - "y": 480.0 + "x": 407.52942, + "y": 287.05884 } } ], @@ -1331,13 +1387,13 @@ false ], "tile_attributes": { - "58": [ + "56": [ "jumpthrough" ], "60": [ "jumpthrough" ], - "56": [ + "58": [ "jumpthrough" ] } diff --git a/assets/maps/zyrafa01.png b/assets/maps/zyrafa01.png index 4186a303f8..44c2ffc443 100644 Binary files a/assets/maps/zyrafa01.png and b/assets/maps/zyrafa01.png differ diff --git a/assets/maps/zyrafa02.json b/assets/maps/zyrafa02.json index 1d2d3708cc..ed27445977 100644 --- a/assets/maps/zyrafa02.json +++ b/assets/maps/zyrafa02.json @@ -718,44 +718,76 @@ "kind": "object_layer", "has_collision": false, "objects": [ + { + "id": "crab", + "kind": "environment", + "position": { + "x": 416.4546, + "y": 465.9091 + } + }, + { + "id": "crab", + "kind": "environment", + "position": { + "x": 352.66663, + "y": 308.1515 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 350.99994, + "y": 407.5 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 188.24997, + "y": 603.6665 + } + }, { "id": "musket", "kind": "item", "position": { - "x": 320.0, - "y": 256.0 + "x": 241.66666, + "y": 286.55557 } }, { "id": "musket", "kind": "item", "position": { - "x": 448.0, - "y": 256.0 + "x": 423.5556, + "y": 286.0 } }, { "id": "musket", "kind": "item", "position": { - "x": 288.0, - "y": 448.0 + "x": 204.11111, + "y": 448.55554 } }, { "id": "musket", "kind": "item", "position": { - "x": 480.0, - "y": 448.0 + "x": 465.0, + "y": 444.6667 } }, { "id": "sword", "kind": "item", "position": { - "x": 400.0, - "y": 640.0 + "x": 338.88892, + "y": 646.6666 } } ], @@ -764,22 +796,22 @@ ], "tilesets": [ { - "id": "decorations1", - "texture_id": "default_decoration", + "id": "tileset", + "texture_id": "default_tileset", "texture_size": { - "x": 240, - "y": 102 + "x": 224, + "y": 288 }, "tile_size": { - "x": 48.0, - "y": 51.0 + "x": 32.0, + "y": 32.0 }, "grid_size": { - "x": 5, - "y": 2 + "x": 7, + "y": 9 }, - "first_tile_id": 64, - "tile_cnt": 10, + "first_tile_id": 1, + "tile_cnt": 63, "tile_subdivisions": { "x": 3, "y": 3 @@ -874,31 +906,6 @@ false, false, false, - false - ] - }, - { - "id": "tileset", - "texture_id": "default_tileset", - "texture_size": { - "x": 224, - "y": 288 - }, - "tile_size": { - "x": 32.0, - "y": 32.0 - }, - "grid_size": { - "x": 7, - "y": 9 - }, - "first_tile_id": 1, - "tile_cnt": 63, - "tile_subdivisions": { - "x": 3, - "y": 3 - }, - "autotile_mask": [ false, false, false, @@ -1376,6 +1383,42 @@ false, false, false, + false + ], + "tile_attributes": { + "60": [ + "jumpthrough" + ], + "56": [ + "jumpthrough" + ], + "58": [ + "jumpthrough" + ] + } + }, + { + "id": "decorations1", + "texture_id": "default_decoration", + "texture_size": { + "x": 240, + "y": 102 + }, + "tile_size": { + "x": 48.0, + "y": 51.0 + }, + "grid_size": { + "x": 5, + "y": 2 + }, + "first_tile_id": 64, + "tile_cnt": 10, + "tile_subdivisions": { + "x": 3, + "y": 3 + }, + "autotile_mask": [ false, false, false, @@ -1466,18 +1509,7 @@ false, false, false - ], - "tile_attributes": { - "58": [ - "jumpthrough" - ], - "60": [ - "jumpthrough" - ], - "56": [ - "jumpthrough" - ] - } + ] } ], "spawn_points": [ diff --git a/assets/maps/zyrafa03.json b/assets/maps/zyrafa03.json index 11af0a0081..1c4ade2f15 100644 --- a/assets/maps/zyrafa03.json +++ b/assets/maps/zyrafa03.json @@ -666,6 +666,14 @@ "kind": "object_layer", "has_collision": false, "objects": [ + { + "id": "sproinger", + "kind": "environment", + "position": { + "x": 32.0, + "y": 461.0 + } + }, { "id": "anemones", "kind": "decoration", @@ -730,6 +738,54 @@ "kind": "object_layer", "has_collision": false, "objects": [ + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 575.9231, + "y": 196.76924 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 284.90906, + "y": 194.54543 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 507.72723, + "y": 506.1818 + } + }, + { + "id": "sproinger", + "kind": "environment", + "position": { + "x": 383.70593, + "y": 556.70593 + } + }, + { + "id": "sproinger", + "kind": "environment", + "position": { + "x": 448.14288, + "y": 557.1429 + } + }, + { + "id": "sproinger", + "kind": "environment", + "position": { + "x": 801.16675, + "y": 460.05554 + } + }, { "id": "musket", "kind": "item", @@ -742,24 +798,24 @@ "id": "musket", "kind": "item", "position": { - "x": 320.0, - "y": 544.0 + "x": 266.25003, + "y": 544.7352 } }, { "id": "sword", "kind": "item", "position": { - "x": 464.0, - "y": 320.0 + "x": 403.375, + "y": 326.875 } }, { "id": "sword", "kind": "item", "position": { - "x": 608.0, - "y": 224.0 + "x": 566.125, + "y": 227.75 } }, { diff --git a/assets/maps/zyrafa04.json b/assets/maps/zyrafa04.json index 28a2e14b9b..8f1b9294d8 100644 --- a/assets/maps/zyrafa04.json +++ b/assets/maps/zyrafa04.json @@ -866,16 +866,16 @@ "id": "seaweed", "kind": "decoration", "position": { - "x": 192.0, - "y": 593.0 + "x": 146.16666, + "y": 493.0 } }, { "id": "seaweed", "kind": "decoration", "position": { - "x": 416.0, - "y": 237.0 + "x": 417.6667, + "y": 238.66667 } }, { @@ -902,27 +902,83 @@ "kind": "object_layer", "has_collision": false, "objects": [ + { + "id": "sproinger", + "kind": "environment", + "position": { + "x": 96.143555, + "y": 524.88995 + } + }, + { + "id": "sproinger", + "kind": "environment", + "position": { + "x": 961.0, + "y": 524.3334 + } + }, + { + "id": "sword", + "kind": "item", + "position": { + "x": 595.4545, + "y": 261.0909 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 142.91943, + "y": 483.826 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 858.0, + "y": 474.83337 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 410.00006, + "y": 230.0 + } + }, + { + "id": "musket", + "kind": "item", + "position": { + "x": 870.3333, + "y": 384.16666 + } + }, { "id": "grenades", "kind": "item", "position": { - "x": 224.0, - "y": 384.0 + "x": 221.50003, + "y": 503.16666 } }, { "id": "musket", "kind": "item", "position": { - "x": 544.0, - "y": 256.0 + "x": 125.66667, + "y": 376.0 } }, { "id": "sproinger", "kind": "environment", "position": { - "x": 531.0, + "x": 528.1428, "y": 461.5 } }, @@ -930,24 +986,24 @@ "id": "grenades", "kind": "item", "position": { - "x": 960.0, - "y": 384.0 + "x": 840.83344, + "y": 504.0 } }, { "id": "grenades", "kind": "item", "position": { - "x": 640.0, - "y": 448.0 + "x": 595.7143, + "y": 443.0 } }, { "id": "grenades", "kind": "item", "position": { - "x": 512.0, - "y": 448.0 + "x": 466.52383, + "y": 440.9762 } } ], @@ -1660,10 +1716,10 @@ false ], "tile_attributes": { - "60": [ + "56": [ "jumpthrough" ], - "56": [ + "60": [ "jumpthrough" ], "58": [ @@ -1674,12 +1730,12 @@ ], "spawn_points": [ { - "x": 128.0, - "y": 480.0 + "x": 126.57143, + "y": 355.7143 }, { - "x": 960.0, - "y": 480.0 + "x": 959.2857, + "y": 350.71432 }, { "x": 896.0, diff --git a/assets/maps/zyrafa05.json b/assets/maps/zyrafa05.json index 1161c46f56..91fdbb6aa7 100644 --- a/assets/maps/zyrafa05.json +++ b/assets/maps/zyrafa05.json @@ -808,6 +808,14 @@ "kind": "object_layer", "has_collision": false, "objects": [ + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 749.1538, + "y": 447.53845 + } + }, { "id": "anemones", "kind": "decoration", @@ -820,8 +828,8 @@ "id": "seaweed", "kind": "decoration", "position": { - "x": 64.0, - "y": 465.0 + "x": 77.57143, + "y": 462.14285 } }, { @@ -836,8 +844,8 @@ "id": "seaweed", "kind": "decoration", "position": { - "x": 768.0, - "y": 465.0 + "x": 757.28577, + "y": 462.14285 } }, { @@ -856,20 +864,44 @@ "kind": "object_layer", "has_collision": false, "objects": [ + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 75.99994, + "y": 435.85715 + } + }, + { + "id": "crab", + "kind": "environment", + "position": { + "x": 501.14282, + "y": 402.2857 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 441.74994, + "y": 161.99997 + } + }, { "id": "sproinger", "kind": "environment", "position": { - "x": 160.0, - "y": 512.0 + "x": 160.76923, + "y": 492.00003 } }, { "id": "sproinger", "kind": "environment", "position": { - "x": 832.0, - "y": 512.0 + "x": 830.46155, + "y": 492.00003 } }, { @@ -884,32 +916,32 @@ "id": "sword", "kind": "item", "position": { - "x": 416.0, - "y": 192.0 + "x": 366.00003, + "y": 200.46153 } }, { "id": "sword", "kind": "item", "position": { - "x": 640.0, - "y": 192.0 + "x": 597.6923, + "y": 199.6923 } }, { "id": "grenades", "kind": "item", "position": { - "x": 192.0, - "y": 192.0 + "x": 195.84616, + "y": 185.84615 } }, { "id": "grenades", "kind": "item", "position": { - "x": 864.0, - "y": 192.0 + "x": 865.53845, + "y": 185.07692 } } ], @@ -918,22 +950,22 @@ ], "tilesets": [ { - "id": "decorations1", - "texture_id": "default_decoration", + "id": "tileset", + "texture_id": "default_tileset", "texture_size": { - "x": 240, - "y": 102 + "x": 224, + "y": 288 }, "tile_size": { - "x": 48.0, - "y": 51.0 + "x": 32.0, + "y": 32.0 }, "grid_size": { - "x": 5, - "y": 2 + "x": 7, + "y": 9 }, - "first_tile_id": 64, - "tile_cnt": 10, + "first_tile_id": 1, + "tile_cnt": 63, "tile_subdivisions": { "x": 3, "y": 3 @@ -1028,31 +1060,6 @@ false, false, false, - false - ] - }, - { - "id": "tileset", - "texture_id": "default_tileset", - "texture_size": { - "x": 224, - "y": 288 - }, - "tile_size": { - "x": 32.0, - "y": 32.0 - }, - "grid_size": { - "x": 7, - "y": 9 - }, - "first_tile_id": 1, - "tile_cnt": 63, - "tile_subdivisions": { - "x": 3, - "y": 3 - }, - "autotile_mask": [ false, false, false, @@ -1530,6 +1537,42 @@ false, false, false, + false + ], + "tile_attributes": { + "58": [ + "jumpthrough" + ], + "60": [ + "jumpthrough" + ], + "56": [ + "jumpthrough" + ] + } + }, + { + "id": "decorations1", + "texture_id": "default_decoration", + "texture_size": { + "x": 240, + "y": 102 + }, + "tile_size": { + "x": 48.0, + "y": 51.0 + }, + "grid_size": { + "x": 5, + "y": 2 + }, + "first_tile_id": 64, + "tile_cnt": 10, + "tile_subdivisions": { + "x": 3, + "y": 3 + }, + "autotile_mask": [ false, false, false, @@ -1620,24 +1663,13 @@ false, false, false - ], - "tile_attributes": { - "56": [ - "jumpthrough" - ], - "58": [ - "jumpthrough" - ], - "60": [ - "jumpthrough" - ] - } + ] } ], "spawn_points": [ { - "x": 128.0, - "y": 448.0 + "x": 172.61539, + "y": 170.30772 }, { "x": 224.0, @@ -1648,8 +1680,8 @@ "y": 448.0 }, { - "x": 896.0, - "y": 448.0 + "x": 842.1539, + "y": 172.61542 } ] } \ No newline at end of file diff --git a/assets/maps/zyrafa06.json b/assets/maps/zyrafa06.json index 630f6d1c4a..0b94a292b3 100644 --- a/assets/maps/zyrafa06.json +++ b/assets/maps/zyrafa06.json @@ -621,35 +621,115 @@ "has_collision": false, "objects": [ { - "id": "sword", + "id": "fish_school", + "kind": "environment", + "position": { + "x": 191.3334, + "y": 304.6667 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 415.0, + "y": 240.33337 + } + }, + { + "id": "crab", + "kind": "environment", + "position": { + "x": 694.00006, + "y": 370.6667 + } + }, + { + "id": "fish_school", + "kind": "environment", + "position": { + "x": 861.6666, + "y": 188.33334 + } + }, + { + "id": "crab", + "kind": "environment", + "position": { + "x": 457.33334, + "y": 179.00003 + } + }, + { + "id": "musket", "kind": "item", "position": { - "x": 448.0, - "y": 160.0 + "x": 232.88095, + "y": 350.97617 } }, { - "id": "sword", + "id": "musket", "kind": "item", "position": { - "x": 736.0, - "y": 96.0 + "x": 622.2857, + "y": 348.7143 + } + }, + { + "id": "kick_bomb", + "kind": "item", + "position": { + "x": 433.0, + "y": 146.00003 + } + }, + { + "id": "kick_bomb", + "kind": "item", + "position": { + "x": 983.5714, + "y": 337.2857 + } + }, + { + "id": "sproinger", + "kind": "environment", + "position": { + "x": 321.5556, + "y": 364.6667 + } + }, + { + "id": "sproinger", + "kind": "environment", + "position": { + "x": 737.05554, + "y": 364.86102 + } + }, + { + "id": "sproinger", + "kind": "environment", + "position": { + "x": 928.71796, + "y": 364.87183 } }, { "id": "sword", "kind": "item", "position": { - "x": 256.0, - "y": 128.0 + "x": 687.4286, + "y": 103.14284 } }, { "id": "sword", "kind": "item", "position": { - "x": 896.0, - "y": 224.0 + "x": 212.42856, + "y": 135.85715 } } ], diff --git a/config.toml b/config.toml index af5eaf4d55..2a075c3131 100644 --- a/config.toml +++ b/config.toml @@ -24,7 +24,7 @@ slide = 'F' [[input.gamepads]] id = 0 -fire = 'A' -jump = 'X' +fire = 'X' +jump = 'A' pickup = 'B' slide = 'Y' diff --git a/core/Cargo.toml b/core/Cargo.toml index 03a469f93e..43b5f6a9e8 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" [dependencies] fishsticks = { version = "0.2.1", git = "https://github.com/fishfight/fishsticks", default-features = false, features = ["gilrs"] } -macroquad = { version = "0.3.10" } +macroquad = { version = "=0.3.16" } # Newer versions break is_key_pressed detection hecs = "0.7.1" serde = { version = "1.0", package = "serde", features = ["derive"] } serde_json = { version = "1.0" } diff --git a/core/src/config.rs b/core/src/config.rs index fc1c6b9a76..f1105a1aaa 100644 --- a/core/src/config.rs +++ b/core/src/config.rs @@ -7,6 +7,7 @@ use crate::input::mapping::InputMapping; use crate::Result; #[derive(Debug, Clone, Default, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] pub struct Config { #[serde(default)] pub window: WindowConfig, @@ -32,6 +33,7 @@ impl Config { } #[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] pub struct WindowConfig { pub width: u32, pub height: u32, diff --git a/core/src/input/mapping.rs b/core/src/input/mapping.rs index 50200177e6..8064d5ba45 100644 --- a/core/src/input/mapping.rs +++ b/core/src/input/mapping.rs @@ -6,6 +6,7 @@ use crate::error::ErrorKind; use crate::Result; #[derive(Debug, Copy, Clone, PartialEq, Hash, Eq, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] pub enum KeyCode { Space, Apostrophe, @@ -387,6 +388,7 @@ impl From for macroquad::input::KeyCode { } #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug, Serialize, Deserialize)] +#[serde(deny_unknown_fields)] pub enum Button { A, B, @@ -460,6 +462,7 @@ impl From