109 lines
2.1 KiB
HTML
109 lines
2.1 KiB
HTML
|
<!DOCTYPE html>
|
|||
|
<html>
|
|||
|
<head>
|
|||
|
<meta charset="utf-8">
|
|||
|
<meta name="viewport" content="width=device-width">
|
|||
|
<title>Particles</title>
|
|||
|
<style type="text/css" media="all">
|
|||
|
html, body {
|
|||
|
height: 100%;
|
|||
|
margin: 0;
|
|||
|
padding: 0;
|
|||
|
}
|
|||
|
body {
|
|||
|
background: linear-gradient(#eeeeee, #e4e4e4);
|
|||
|
color: #999;
|
|||
|
text-align: center;
|
|||
|
font-family: sans-serif;
|
|||
|
cursor: default;
|
|||
|
}
|
|||
|
a {
|
|||
|
color: inherit;
|
|||
|
}
|
|||
|
h1 {
|
|||
|
margin-top: 0;
|
|||
|
padding-top: 50px;
|
|||
|
position: relative;
|
|||
|
color: #777;
|
|||
|
font-weight: normal;
|
|||
|
}
|
|||
|
h1:before {
|
|||
|
content: 'Particles';
|
|||
|
position: absolute;
|
|||
|
top: 0;
|
|||
|
left: 0;
|
|||
|
right: 0;
|
|||
|
color: #888;
|
|||
|
height: 1.3ex;
|
|||
|
padding-top: 50px;
|
|||
|
overflow: hidden;
|
|||
|
}
|
|||
|
#gamecontainer {
|
|||
|
position:relative;
|
|||
|
width: 602px;
|
|||
|
height: 602px;
|
|||
|
margin: 0 auto;
|
|||
|
}
|
|||
|
#gamecontainer > * {
|
|||
|
position: absolute;
|
|||
|
top: 0;
|
|||
|
bottom: 0;
|
|||
|
left: 0;
|
|||
|
right: 0;
|
|||
|
}
|
|||
|
|
|||
|
#message, #playbutton {
|
|||
|
padding-top: 50px;
|
|||
|
margin: 0 auto;
|
|||
|
text-transform: uppercase;
|
|||
|
letter-spacing: 5px;
|
|||
|
font-size: 150%;
|
|||
|
}
|
|||
|
#message div {
|
|||
|
opacity: 0;
|
|||
|
transition: opacity 1s;
|
|||
|
margin-top: 40px;
|
|||
|
line-height: 2;
|
|||
|
}
|
|||
|
#message div.visible {
|
|||
|
opacity: 1;
|
|||
|
}
|
|||
|
#playbutton {
|
|||
|
font-size: 200%;
|
|||
|
color: #888;
|
|||
|
cursor: pointer;
|
|||
|
padding-top: 275px;
|
|||
|
}
|
|||
|
#playbutton:hover {
|
|||
|
color: #222;
|
|||
|
}
|
|||
|
#background {
|
|||
|
background: linear-gradient(#ffffff, #f4f4f4);
|
|||
|
box-shadow: #f2f2f2 5px -5px 5px inset, #f2f2f2 -5px 5px 5px inset;
|
|||
|
position: absolute;
|
|||
|
border: 1px solid #ccc;
|
|||
|
}
|
|||
|
.gameon gamecontainer, .gameon canvas {
|
|||
|
cursor: none;
|
|||
|
}
|
|||
|
</style>
|
|||
|
</head>
|
|||
|
<body>
|
|||
|
<h1>Particles</h1>
|
|||
|
<div id="gamecontainer">
|
|||
|
<div id="background"></div>
|
|||
|
<div id="message"></div>
|
|||
|
<canvas id="game" width="600" height="600"></canvas>
|
|||
|
<div id="playbutton">Play</div>
|
|||
|
</div>
|
|||
|
<footer>
|
|||
|
<p>A reimplementation by Midgard of the <a href="https://www.newgrounds.com/portal/view/357700">Flash game</a> of yore by Matteo Guarnieri</p>
|
|||
|
<p>Music: <a href="https://dimrain47.newgrounds.com/">Dimrain47</a> – <a href="https://www.newgrounds.com/audio/listen/30208">Twilight Techno</a></p>
|
|||
|
</footer>
|
|||
|
|
|||
|
<audio id="music" src="dimrain47_-_twilight_techno.mp3"></audio>
|
|||
|
|
|||
|
<script type="text/javascript" src="main.js"></script>
|
|||
|
</body>
|
|||
|
</html>
|