Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/renderer/src/scenes/TileMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Binary file added public/assets/bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/cyborg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/drone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/punk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/tower1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/tower1_thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/tower2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/tower2_thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/tower3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/tower3_thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/deltaMap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.bgvideo{
z-index: -100;
position: fixed;
top: 0;
width: 100vw;
z-index: -99;
height: 100vh;
width: 100vw;
object-fit: cover;
}
position: fixed;
}
36 changes: 36 additions & 0 deletions src/components/Background/BackGroundVideo.tsx
Original file line number Diff line number Diff line change
@@ -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<HTMLVideoElement>(null);

useEffect(() => {
if (vid.current) {
vid.current.playbackRate = 0.5;
}
}, []);

const isNotHomePage = location.pathname !== '/';

return (
<>
{isNotHomePage ? (
<video
src={bgvideo}
autoPlay
loop
muted
className={styles.bgvideo}
ref={vid}
/>
) : (
<></>
)}
</>
);
};

export default BackGroundVideo;
39 changes: 39 additions & 0 deletions src/components/Background/BackgroundImage.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.mainContainer {
z-index: 0;
position: fixed;
top: 0;
}

.mainContainer img {
width: 100vw;

@media screen and (max-width:280px) {
width: 5vw;
transform: translateX(-35%);
}

@media screen and (min-width:280px) and (max-width:429px) {
width: 344vw;
transform: translateX(-35%);
}

@media screen and (min-width:430px) and (max-width:500px) {
width: 340vw;
transform: translateX(-35%);
}
@media screen and (min-width:500px) and (max-width:768px) {
width: 210vw;
transform: translateX(-25%);
}


@media screen and (min-width:769px) and (max-width:1024px) {
width: 225vw;
transform: translateX(-28%);
}

@media screen and (min-width:912px) and (max-width:912px) {
width: 235vw;
transform: translateX(-29%);
}
}
22 changes: 22 additions & 0 deletions src/components/Background/BackgroundImage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import styles from './BackgroundImage.module.css';
import bg from '../../../public/assets/bg.jpg';
import { useLocation } from 'react-router-dom';

const BackgroundImage = () => {
const location = useLocation();
const isHomePage = location.pathname === '/';

return (
<>
{isHomePage ? (
<div className={styles.mainContainer}>
<img src={bg} alt="Background" />
</div>
) : (
<></>
)}
</>
);
};

export default BackgroundImage;
26 changes: 0 additions & 26 deletions src/components/Background/BackgroundVideo.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions src/components/DashboardOptions/DashboardOptions.module.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.dropdown a:active {
background-color: #232627;
}

.menuBackground{
background-color:#1e1e1e !important;
}

.menuText{
color: #aaaaaa;
font-family: 'Poppins';
font-family: 'Press Start 2P', sans-serif;
font-size: 0.85rem;
}
6 changes: 2 additions & 4 deletions src/components/Home/AboutGame/AboutGame.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@

.content {
color: #eaeaea;
font-family: 'Poppins';
font-family: 'Press Start 2P';
font-weight: 400;
font-size: 32px;
}

.col1 {
display: flex;
align-items: center;
border-right: 3px solid #4d4d4d;
min-width: 300px;
padding-right: 3%;
}
Expand Down Expand Up @@ -86,7 +84,7 @@

@media only screen and (max-height: 800px) {
.content {
font-size: 20px;
font-size: 15px;
}
.about {
margin-top: 16px;
Expand Down
12 changes: 9 additions & 3 deletions src/components/Home/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,15 @@ export default function Footer(): JSX.Element {
<div className={styles.textContainer}>
<div className={styles.container}>
<div className={styles.heading}> Contact</div>
<div>Ezhil: +91 6381553859</div>
<div>Ram Ganesh: +91 9025517379</div>
<div>Vignesh: +91 6381196740</div>
<div>
Ezhil: <span className={styles.number}>+91 6381553859</span>
</div>
<div>
Ram Ganesh: <span className={styles.number}> +91 9025517379</span>
</div>
<div>
Vignesh: <span className={styles.number}> +91 6381196740 </span>
</div>
</div>
<div className={styles.container}>
<div className={styles.heading}>Quick Links</div>
Expand Down
33 changes: 23 additions & 10 deletions src/components/Home/Footer/footer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
padding: 3rem 5rem 3rem 5rem;
}

.footerContainer > div {
.footerContainer>div {
align-self: baseline;
}

Expand All @@ -15,7 +15,8 @@
font-size: 22px;
margin-bottom: 30px;
color: #eaeaea !important;
font-family: 'Poppins';
font-family: 'Press Start 2P', sans-serif;

}

.textContainer {
Expand All @@ -29,17 +30,22 @@
}

.container .links:hover {
text-decoration: underline;
cursor: pointer;
color: white;
text-decoration: none !important;
}

.credit {
display: flex;
flex-direction: column;
}

.heart {
color: red;
}

.title {
font-family: 'Roboto Mono';
font-family: 'Press Start 2P', sans-serif;
font-size: 800;
font-size: 35px;
font-style: bold;
Expand All @@ -49,23 +55,30 @@

.title:hover {
cursor: pointer;
color: rgb(20, 94, 42);
color: green;
}

.creditText {
font-family: sans-serif;
font-family: 'Press Start 2P', sans-serif;
color: #aaaaaa;
font-size: 16px;
float: left;
vertical-align: baseline;
}

.container > div {
font-family: sans-serif;
margin: 10px;
.container>div {
font-family: 'Press Start 2P', sans-serif;
font-size: 11px;
color: #aaaaaa;
margin: 10px;
letter-spacing: 1.5px;
}

.number {
font-size: 10px;
color:white;
}

@media screen and (max-width: 900px) {
.footerContainer {
padding: 10px 40px 10px 40px;
Expand Down Expand Up @@ -100,4 +113,4 @@
.heading {
font-size: 20px;
}
}
}
Loading