enhance menu

This commit is contained in:
Mylloon 2022-12-02 22:46:22 +01:00
parent 2ea0617948
commit 5c87f27348
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 26 additions and 7 deletions

View file

@ -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;

View file

@ -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", () => {

View file

@ -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 = () => {