Browse Source

Add controls to screen

main
Stephanie Gredell 5 months ago
parent
commit
9b172e808b
  1. 16
      templates/index.html
  2. 10
      todo.md

16
templates/index.html

@ -50,6 +50,16 @@
border-radius: 12px; border-radius: 12px;
padding: 8px; padding: 8px;
} }
.controls {
width: 1024px;
margin: 0 auto;
}
.pill {
border: 1px solid #000000;
border-radius: 8px;
}
</style> </style>
</head> </head>
@ -62,6 +72,12 @@
{{ end }} {{ end }}
</div> </div>
<canvas id="canvas" width="1024" height="400"></canvas> <canvas id="canvas" width="1024" height="400"></canvas>
<div class="controls">
<span class="pill">h move left</span>
<span class="pill">l move right</span>
<span class="pill">j crouch</span>
<span class="pill">k jump</span>
</div>
<div class="chat"> <div class="chat">
<input type="text" id="msg" placeholder="Type in a message to chat" /> <input type="text" id="msg" placeholder="Type in a message to chat" />
<button type="button" id="send">Send</button> <button type="button" id="send">Send</button>

10
todo.md

@ -0,0 +1,10 @@
- move down to 1 container
- enter to send chat message
- show name plate
- fix sending empty messages
- focus chat on 't'
- show controls on the page
- hit points
- death
- weapons from channel point
- - https://dev.twitch.tv/docs/eventsub/
Loading…
Cancel
Save