diff --git a/package.json b/package.json index 3974e51..0260ffc 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "react-google-recaptcha-v3": "^1.10.1", "react-hot-toast": "^2.4.0", "react-lazylog": "^4.5.3", + "react-matrix-effect": "^1.1.0", "react-paginate": "^8.1.4", "react-redux": "^8.0.5", "react-router-dom": "^6.6.1", diff --git a/packages/renderer/src/scenes/TileMap.ts b/packages/renderer/src/scenes/TileMap.ts index d97f9ce..99f0c64 100644 --- a/packages/renderer/src/scenes/TileMap.ts +++ b/packages/renderer/src/scenes/TileMap.ts @@ -198,6 +198,7 @@ export class TileMap extends Phaser.Scene { direction, ); troop.setDepth(troop.y); + troop.setTint(actorType === 'D' ? 0xff3333 : 0x7094db); actorType === 'D' ? this.opponent_troops.set(id, this.add.existing(troop)) : this.troops.set(id, this.add.existing(troop)); diff --git a/public/assets/bg.jpg b/public/assets/bg.jpg new file mode 100644 index 0000000..d2acf03 Binary files /dev/null and b/public/assets/bg.jpg differ diff --git a/public/assets/cyborg.png b/public/assets/cyborg.png index 9526d8b..30703c0 100644 Binary files a/public/assets/cyborg.png and b/public/assets/cyborg.png differ diff --git a/public/assets/drone.png b/public/assets/drone.png index 727c510..fde2507 100644 Binary files a/public/assets/drone.png and b/public/assets/drone.png differ diff --git a/public/assets/punk.png b/public/assets/punk.png index ae53261..e46d7ca 100644 Binary files a/public/assets/punk.png and b/public/assets/punk.png differ diff --git a/public/assets/tower1.png b/public/assets/tower1.png index eff7efb..6b620eb 100644 Binary files a/public/assets/tower1.png and b/public/assets/tower1.png differ diff --git a/public/assets/tower1_thumbnail.png b/public/assets/tower1_thumbnail.png index 6b8d79c..a8887b7 100644 Binary files a/public/assets/tower1_thumbnail.png and b/public/assets/tower1_thumbnail.png differ diff --git a/public/assets/tower2.png b/public/assets/tower2.png index 6431448..ffcfca7 100644 Binary files a/public/assets/tower2.png and b/public/assets/tower2.png differ diff --git a/public/assets/tower2_thumbnail.png b/public/assets/tower2_thumbnail.png index 2af02de..c0f1f34 100644 Binary files a/public/assets/tower2_thumbnail.png and b/public/assets/tower2_thumbnail.png differ diff --git a/public/assets/tower3.png b/public/assets/tower3.png index 16392a9..0114507 100644 Binary files a/public/assets/tower3.png and b/public/assets/tower3.png differ diff --git a/public/assets/tower3_thumbnail.png b/public/assets/tower3_thumbnail.png index e0b3743..ec72cef 100644 Binary files a/public/assets/tower3_thumbnail.png and b/public/assets/tower3_thumbnail.png differ diff --git a/src/assets/deltaMap.png b/src/assets/deltaMap.png index 3b364bd..2749468 100644 Binary files a/src/assets/deltaMap.png and b/src/assets/deltaMap.png differ diff --git a/src/components/Background/BackgroundVideo.module.css b/src/components/Background/BackGroundVideo.module.css similarity index 73% rename from src/components/Background/BackgroundVideo.module.css rename to src/components/Background/BackGroundVideo.module.css index 169b957..59e9560 100644 --- a/src/components/Background/BackgroundVideo.module.css +++ b/src/components/Background/BackGroundVideo.module.css @@ -1,8 +1,7 @@ .bgvideo{ - z-index: -100; - position: fixed; - top: 0; - width: 100vw; + z-index: -99; height: 100vh; + width: 100vw; object-fit: cover; -} \ No newline at end of file + position: fixed; +} diff --git a/src/components/Background/BackGroundVideo.tsx b/src/components/Background/BackGroundVideo.tsx new file mode 100644 index 0000000..13545fe --- /dev/null +++ b/src/components/Background/BackGroundVideo.tsx @@ -0,0 +1,36 @@ +import { useRef, useEffect } from 'react'; +import { useLocation } from 'react-router-dom'; +import styles from './BackGroundVideo.module.css'; +import bgvideo from '../../../public/assets/bgEffect.mp4'; + +const BackGroundVideo = () => { + const location = useLocation(); + const vid = useRef(null); + + useEffect(() => { + if (vid.current) { + vid.current.playbackRate = 0.5; + } + }, []); + + const isNotHomePage = location.pathname !== '/'; + + return ( + <> + {isNotHomePage ? ( +