Skip to content

Commit

Permalink
align sword and mob names
Browse files Browse the repository at this point in the history
  • Loading branch information
Matth26 committed Sep 28, 2023
1 parent 1a15f00 commit e5b84a3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions client/.env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VITE_PUBLIC_ETH_CONTRACT_ADDRESS=0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7
VITE_PUBLIC_ACCOUNT_CLASS_HASH=0x04d07e40e93398ed3c76981e72dd1fd22557a78ce36c0515f679e27f0bb5bc5f
VITE_PUBLIC_MASTER_ADDRESS=0x3ee9e18edc71a6df30ac3aca2e0b02a198fbce19b7480a63a0d71cbd76652e0
VITE_PUBLIC_MASTER_PRIVATE_KEY=0x300001800000000300000180000000000030000000000003006001800006600
VITE_PUBLIC_WORLD_ADDRESS=0x414a30414c283c7023452c9d51e8cd11532260f6a65f9920d91feaed8750d39
VITE_PUBLIC_MASTER_ADDRESS=0x517ececd29116499f4a1b64b094da79ba08dfd54a3edaa316134c41f8160973
VITE_PUBLIC_MASTER_PRIVATE_KEY=0x1800000000300000180000000000030000000000003006001800006600
VITE_PUBLIC_WORLD_ADDRESS=0x5797dca16591ca89ac11a7946e962185dfad886f029d91bb57339eeb94c57fa
VITE_PUBLIC_NODE_URL=http://localhost:5050
VITE_PUBLIC_TORII=http://localhost:8080
Binary file added client/bun.lockb
Binary file not shown.
8 changes: 4 additions & 4 deletions client/src/ui/Canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ interface CanvasProps {
}

const getYFromMob = (m: TileType) => {
if (m === TileType.Knight) return 59;
if (m === TileType.Knight) return 57;
else if (m === TileType.Barbarian) return 99;
else if (m === TileType.Bowman) return 139;
else return 189;
else if (m === TileType.Bowman) return 138;
else return 180;
};

const Canvas: React.FC<CanvasProps> = ({ setMusicPlaying }) => {
Expand Down Expand Up @@ -323,7 +323,7 @@ const Canvas: React.FC<CanvasProps> = ({ setMusicPlaying }) => {
<Text
text={m.charAt(0).toUpperCase() + m.slice(1)}
x={980}
y={50 + (j - 2) * 40}
y={48 + (j - 2) * 40}
style={
new PIXI.TextStyle({
align: 'center',
Expand Down

0 comments on commit e5b84a3

Please sign in to comment.