added mouse controls
This commit is contained in:
25
dist/bundle.js
vendored
25
dist/bundle.js
vendored
File diff suppressed because one or more lines are too long
21
dist/css/style.css
vendored
21
dist/css/style.css
vendored
@@ -1,5 +1,5 @@
|
||||
body{
|
||||
background: #121D29;
|
||||
background: black;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
@@ -25,6 +25,8 @@ canvas {
|
||||
background-color: gray;
|
||||
position: fixed;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
grid-template-rows: repeat(2, 1fr);
|
||||
}
|
||||
|
||||
.control-set {
|
||||
@@ -33,6 +35,7 @@ canvas {
|
||||
border: 10px;
|
||||
border-color: black;
|
||||
background-color: lightgray;
|
||||
max-width: 100%;
|
||||
/* height: 100%; */
|
||||
}
|
||||
|
||||
@@ -50,14 +53,22 @@ canvas {
|
||||
|
||||
#hyperparameters {
|
||||
grid-column: 2;
|
||||
grid-row: 1 / 2;
|
||||
/* background-color: green; */
|
||||
grid-row: 1 / 3;
|
||||
|
||||
}
|
||||
|
||||
#powers {
|
||||
#abilities {
|
||||
grid-column: 3;
|
||||
grid-row: 1 / 2;
|
||||
grid-row: 1 / 3;
|
||||
/* background-color: yellow; */
|
||||
|
||||
}
|
||||
|
||||
.control-mode-button {
|
||||
border-color: gray;
|
||||
background-color: lightgray;
|
||||
}
|
||||
|
||||
#none-button {
|
||||
background-color: gray;
|
||||
}
|
||||
8
dist/html/index.html
vendored
8
dist/html/index.html
vendored
@@ -38,8 +38,12 @@
|
||||
<input type="checkbox" id="fixed-ratio" name="scales" checked>
|
||||
</div>
|
||||
|
||||
<div id='powers' class='control-set'>
|
||||
<h2>Powers</h2>
|
||||
<div id='abilities' class='control-set'>
|
||||
<h2>Control Mode</h2>
|
||||
<button class='control-mode-button' id='food-button' value='Inset Border'>Drop Food</button>
|
||||
<button class='control-mode-button' id='wall-button'>Drop Wall</button>
|
||||
<button class='control-mode-button' id='kill-button'>Kill Organism</button>
|
||||
<button class='control-mode-button' id='none-button'>None</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user