Start adding my own gravity points
This commit is contained in:
parent
0af8878ae9
commit
45d380010a
@ -8,7 +8,7 @@
|
|||||||
<script type="module" src="app.js"></script>
|
<script type="module" src="app.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<canvas id="c"></canvas>
|
<canvas id="mainCanvas"></canvas>
|
||||||
<div class="info">Click to add gravity point.</div>
|
<div class="info">Click to add gravity point.</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
0
src/gravity-points/app.js
Normal file
0
src/gravity-points/app.js
Normal file
15
src/gravity-points/index.html
Normal file
15
src/gravity-points/index.html
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<title>Fizzy Sparks</title>
|
||||||
|
<link href="style.css" rel="stylesheet" />
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.5/dat.gui.min.js"></script>
|
||||||
|
<script type="module" src="app.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<canvas id="c"></canvas>
|
||||||
|
<div class="info">Click to add gravity point.</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
23
src/gravity-points/style.css
Normal file
23
src/gravity-points/style.css
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
body {
|
||||||
|
font-family: "Fira Sans", Helvetica, sans-serif;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
background-color: #222;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
canvas {
|
||||||
|
position: absolute;
|
||||||
|
top: 10;
|
||||||
|
left: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
padding: 5px 15px;
|
||||||
|
color: #eee;
|
||||||
|
font-size: 13px;
|
||||||
|
background-color: rgba(0, 0, 0, .5);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user