enhance menu
This commit is contained in:
parent
2ea0617948
commit
5c87f27348
3 changed files with 26 additions and 7 deletions
15
index.html
15
index.html
|
@ -9,6 +9,21 @@
|
||||||
/>
|
/>
|
||||||
<title>Moteur de jeu • Projet</title>
|
<title>Moteur de jeu • Projet</title>
|
||||||
<style>
|
<style>
|
||||||
|
@keyframes animTitle {
|
||||||
|
0% {
|
||||||
|
color: orange;
|
||||||
|
}
|
||||||
|
20% {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
60% {
|
||||||
|
color: yellow;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
color: orange;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
background-color: black;
|
background-color: black;
|
||||||
|
|
|
@ -91,7 +91,8 @@ export const runGame = (demo) => {
|
||||||
border: none; \
|
border: none; \
|
||||||
background: none; \
|
background: none; \
|
||||||
color: white; \
|
color: white; \
|
||||||
font-size: 400%;";
|
font-size: 400%; \
|
||||||
|
cursor: pointer;";
|
||||||
document.body.appendChild(restart);
|
document.body.appendChild(restart);
|
||||||
|
|
||||||
restart.addEventListener("click", () => {
|
restart.addEventListener("click", () => {
|
||||||
|
|
15
js/main.js
15
js/main.js
|
@ -11,7 +11,10 @@ const main = () => {
|
||||||
let titleGame = document.createElement("p");
|
let titleGame = document.createElement("p");
|
||||||
titleGame.textContent = "GeometryDash 3D";
|
titleGame.textContent = "GeometryDash 3D";
|
||||||
titleGame.style =
|
titleGame.style =
|
||||||
"background: none; \
|
"-webkit-animation-name: animTitle; \
|
||||||
|
-webkit-animation-iteration-count: infinite; \
|
||||||
|
-webkit-animation-duration: 2s; \
|
||||||
|
background: none; \
|
||||||
color: white; \
|
color: white; \
|
||||||
font-size: 400%;";
|
font-size: 400%;";
|
||||||
document.body.appendChild(titleGame);
|
document.body.appendChild(titleGame);
|
||||||
|
@ -19,13 +22,12 @@ const main = () => {
|
||||||
let normalGame = document.createElement("button");
|
let normalGame = document.createElement("button");
|
||||||
normalGame.textContent = "Partie normale";
|
normalGame.textContent = "Partie normale";
|
||||||
normalGame.style =
|
normalGame.style =
|
||||||
"position: absolute; \
|
"margin-top: 20%; \
|
||||||
top: 30%; \
|
|
||||||
left: 35%; \
|
|
||||||
border: none; \
|
border: none; \
|
||||||
background: none; \
|
background: none; \
|
||||||
color: white; \
|
color: white; \
|
||||||
font-size: 400%;";
|
font-size: 400%; \
|
||||||
|
cursor: pointer;";
|
||||||
document.body.appendChild(normalGame);
|
document.body.appendChild(normalGame);
|
||||||
|
|
||||||
let demoGame = document.createElement("button");
|
let demoGame = document.createElement("button");
|
||||||
|
@ -37,7 +39,8 @@ const main = () => {
|
||||||
border: none; \
|
border: none; \
|
||||||
background: none; \
|
background: none; \
|
||||||
color: white; \
|
color: white; \
|
||||||
font-size: 400%;";
|
font-size: 400%; \
|
||||||
|
cursor: pointer;";
|
||||||
document.body.appendChild(demoGame);
|
document.body.appendChild(demoGame);
|
||||||
|
|
||||||
const removeMenu = () => {
|
const removeMenu = () => {
|
||||||
|
|
Reference in a new issue