This commit is contained in:
ntr
2019-06-04 00:38:38 +10:00
parent 61ced01ba7
commit 79c95a1cb2
4 changed files with 9 additions and 15 deletions
+1
View File
@@ -124,6 +124,7 @@ function GameFooter(props) {
return (
<footer>
{timer}
<button id="nav-btn" onClick={() => setShowNav(!showNav)} ></button>
<button
className={ready}
onClick={() => actionClick()}>
+3 -2
View File
@@ -41,8 +41,8 @@ class TargetSvg extends Component {
const sourceX = (source * width / 3) + width / 6;
const targetX = (target * width / 3) + width / 6 + (defensive ? width / 32 : 0) + (source * width / 24) - (width / 24);
const targetY = defensive ? height : 0;
const curveEnd = height * 0.25;
const curveStart = height * 0.75;
const curveEnd = height * 0.20;
const curveStart = height * 0.80;
if (defensive) {
const path = `
@@ -87,6 +87,7 @@ class TargetSvg extends Component {
componentDidMount() {
window.addEventListener('resize', this.onResize);
this.onResize();
setTimeout(this.onResize, 50);
}
componentWillUnmount() {