diff --git a/.gitignore b/.gitignore index 1de5659..95cf472 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -target \ No newline at end of file +target +*.db diff --git a/dojo_sepolia.toml b/dojo_sepolia.toml index a546245..13350b3 100644 --- a/dojo_sepolia.toml +++ b/dojo_sepolia.toml @@ -5,7 +5,7 @@ account_address = "0xb3ff441a68610b30fd5e2abbf3a1548eb6ba6f3559f2862bf2dc757e582 private_key = "0x2bbf4f9fd0bbb2e60b0316c1fe0b76cf7a4d0198bd493ced9b8df2a3a24d68a" #world_address = "0x1ca8e3b7bc101ffd443a1e3b452a4f49607841461b168cb2cc365322722b67" # Uncomment and update this line with your world address. #world_address = "0x025Ee38b230906EA41B00401cC12bb51f58DC62198cf058a336655696908863D" -world_address = "0x53b7efae79ce1d7729828bb6dee2cee09358fde4c4325805cf97678919a4855" +world_address = "0x43cba5bc94f3ec38aee9841c8c45edf899e77ac944a88eb732b36ef3a4c2ca2" [world] name = "Flippy Flop" @@ -13,7 +13,7 @@ description = "The official Dojo Starter guide, the quickest and most streamline cover_uri = "file://assets/cover.png" icon_uri = "file://assets/icon.png" website = "https://github.com/dojoengine/dojo-starter" -seed = "flippyflop-sepolia" +seed = "flippyflop-sepolia-256" [namespace] default = "flippyflop" diff --git a/manifests/dev/base/contracts/flippyflop-actions-4407e5f5.toml b/manifests/dev/base/contracts/flippyflop-actions-4407e5f5.toml index 70f612c..9225a90 100644 --- a/manifests/dev/base/contracts/flippyflop-actions-4407e5f5.toml +++ b/manifests/dev/base/contracts/flippyflop-actions-4407e5f5.toml @@ -1,6 +1,6 @@ kind = "DojoContract" -class_hash = "0x62db69ace4b1324c34af5e31341df2251221ef75e1c586b7d1d242fbaa90df3" -original_class_hash = "0x62db69ace4b1324c34af5e31341df2251221ef75e1c586b7d1d242fbaa90df3" +class_hash = "0x11e09a4a1d7743c87ec44155bb76f25afac2a33d6870ec108ccde1930aee12c" +original_class_hash = "0x11e09a4a1d7743c87ec44155bb76f25afac2a33d6870ec108ccde1930aee12c" base_class_hash = "0x0" abi = "manifests/dev/base/abis/contracts/flippyflop-actions-4407e5f5.json" reads = [] diff --git a/manifests/sepolia/deployment/manifest.json b/manifests/sepolia/deployment/manifest.json index 5d3b08a..307ecbb 100644 --- a/manifests/sepolia/deployment/manifest.json +++ b/manifests/sepolia/deployment/manifest.json @@ -1294,10 +1294,10 @@ ] } ], - "address": "0x53b7efae79ce1d7729828bb6dee2cee09358fde4c4325805cf97678919a4855", - "transaction_hash": "0x419275da6b0ae52484b1face9f6cd4ebdb0ccda8c57d8a2323ddeb5c7981998", + "address": "0x43cba5bc94f3ec38aee9841c8c45edf899e77ac944a88eb732b36ef3a4c2ca2", + "transaction_hash": "0x43ae789ebbf3973bef4aa8a61e4233b97e4260c757c902af94a9b9159ed3f47", "block_number": null, - "seed": "flippyflop-sepolia", + "seed": "flippyflop-sepolia-256", "metadata": { "profile_name": "sepolia", "rpc_url": "https://api.cartridge.gg/x/starknet/sepolia" @@ -1315,7 +1315,7 @@ "contracts": [ { "kind": "DojoContract", - "address": "0x61f08f2b83a5dd9d972d4de8719a6c2561fb1205a51ae70f9ac6f4a1bb6aca7", + "address": "0x30b61048bed5ff383919c6bdb5c3c2a249b9ddb262091a8402745e5208ce15", "class_hash": "0x7c94aef06e9d76934f52e2abaa8e990dd530472a0e554ef916266acb628c946", "original_class_hash": "0x7c94aef06e9d76934f52e2abaa8e990dd530472a0e554ef916266acb628c946", "base_class_hash": "0x2427dd10a58850ac9a5ca6ce04b7771b05330fd18f2e481831ad903b969e6b2", @@ -2106,7 +2106,7 @@ }, { "kind": "DojoContract", - "address": "0x4a38587ad1b4677196d855f0ac994b401da32c379a728f51df2ea4d13f4a8bb", + "address": "0x165a91f138a5c5f5016a0afe3412b551559b3de4d89357282fe145e3e3c404b", "class_hash": "0x62db69ace4b1324c34af5e31341df2251221ef75e1c586b7d1d242fbaa90df3", "original_class_hash": "0x62db69ace4b1324c34af5e31341df2251221ef75e1c586b7d1d242fbaa90df3", "base_class_hash": "0x2427dd10a58850ac9a5ca6ce04b7771b05330fd18f2e481831ad903b969e6b2", @@ -2384,7 +2384,7 @@ }, { "kind": "DojoContract", - "address": "0x2de9da447ebc5fb7f5a5fa81bfb33b897d163e28a5334c0f47914bb0e252f81", + "address": "0x7666151567b8dc0797c9f087df8d03c641ad811d800e08b9d70aba700be55f7", "class_hash": "0x192db261dca4aa58ce197a2947f7b0af929b582fe317688f67c19941b41e1a3", "original_class_hash": "0x192db261dca4aa58ce197a2947f7b0af929b582fe317688f67c19941b41e1a3", "base_class_hash": "0x2427dd10a58850ac9a5ca6ce04b7771b05330fd18f2e481831ad903b969e6b2", diff --git a/manifests/sepolia/deployment/manifest.toml b/manifests/sepolia/deployment/manifest.toml index ffaa432..2e4ee52 100644 --- a/manifests/sepolia/deployment/manifest.toml +++ b/manifests/sepolia/deployment/manifest.toml @@ -3,9 +3,9 @@ kind = "WorldContract" class_hash = "0x79b9624eacd7b74e31db18b10fddbd73c010b85cd1b1f56028c24bafa0b1487" original_class_hash = "0x79b9624eacd7b74e31db18b10fddbd73c010b85cd1b1f56028c24bafa0b1487" abi = "manifests/sepolia/deployment/abis/dojo-world.json" -address = "0x53b7efae79ce1d7729828bb6dee2cee09358fde4c4325805cf97678919a4855" -transaction_hash = "0x419275da6b0ae52484b1face9f6cd4ebdb0ccda8c57d8a2323ddeb5c7981998" -seed = "flippyflop-sepolia" +address = "0x43cba5bc94f3ec38aee9841c8c45edf899e77ac944a88eb732b36ef3a4c2ca2" +transaction_hash = "0x43ae789ebbf3973bef4aa8a61e4233b97e4260c757c902af94a9b9159ed3f47" +seed = "flippyflop-sepolia-256" manifest_name = "dojo-world" [world.metadata] @@ -22,7 +22,7 @@ manifest_name = "dojo-base" [[contracts]] kind = "DojoContract" -address = "0x61f08f2b83a5dd9d972d4de8719a6c2561fb1205a51ae70f9ac6f4a1bb6aca7" +address = "0x30b61048bed5ff383919c6bdb5c3c2a249b9ddb262091a8402745e5208ce15" class_hash = "0x7c94aef06e9d76934f52e2abaa8e990dd530472a0e554ef916266acb628c946" original_class_hash = "0x7c94aef06e9d76934f52e2abaa8e990dd530472a0e554ef916266acb628c946" base_class_hash = "0x2427dd10a58850ac9a5ca6ce04b7771b05330fd18f2e481831ad903b969e6b2" @@ -46,7 +46,7 @@ manifest_name = "flippyflop-Flip-6bd3ed9d" [[contracts]] kind = "DojoContract" -address = "0x4a38587ad1b4677196d855f0ac994b401da32c379a728f51df2ea4d13f4a8bb" +address = "0x165a91f138a5c5f5016a0afe3412b551559b3de4d89357282fe145e3e3c404b" class_hash = "0x62db69ace4b1324c34af5e31341df2251221ef75e1c586b7d1d242fbaa90df3" original_class_hash = "0x62db69ace4b1324c34af5e31341df2251221ef75e1c586b7d1d242fbaa90df3" base_class_hash = "0x2427dd10a58850ac9a5ca6ce04b7771b05330fd18f2e481831ad903b969e6b2" @@ -73,7 +73,7 @@ manifest_name = "flippyflop-actions-4407e5f5" [[contracts]] kind = "DojoContract" -address = "0x2de9da447ebc5fb7f5a5fa81bfb33b897d163e28a5334c0f47914bb0e252f81" +address = "0x7666151567b8dc0797c9f087df8d03c641ad811d800e08b9d70aba700be55f7" class_hash = "0x192db261dca4aa58ce197a2947f7b0af929b582fe317688f67c19941b41e1a3" original_class_hash = "0x192db261dca4aa58ce197a2947f7b0af929b582fe317688f67c19941b41e1a3" base_class_hash = "0x2427dd10a58850ac9a5ca6ce04b7771b05330fd18f2e481831ad903b969e6b2" diff --git a/src/constants.cairo b/src/constants.cairo index 64425db..e7ecfea 100644 --- a/src/constants.cairo +++ b/src/constants.cairo @@ -1,5 +1,5 @@ -pub const X_BOUND: u32 = 100; -pub const Y_BOUND: u32 = 100; +pub const X_BOUND: u32 = 256; +pub const Y_BOUND: u32 = 256; pub const ADDRESS_MASK: u256 = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000; pub const POWERUP_MASK: u256 = 0xFF00; pub const POWERUP_DATA_MASK: u256 = 0x00FF;