Updated Fancade Web.md (markdown)
commited
commit
ad2ccb3c866991d1a9c9049d060533dcf6ec48d2
... | ... | @@ -232,9 +232,17 @@ setEventListener("keyup", function(key) { |
232 | 232 | // The key is a number. See https://www.glfw.org/docs/3.3/group__keys.html for a complete list |
233 | 233 | }); |
234 | 234 | |
235 | // Select block |
|
236 | selectAt(x, y, z); |
|
237 | ||
238 | // Get selected block count |
|
239 | if (getSelectedCount() === 1) { |
|
240 | // A single block is selected |
|
241 | } |
|
242 | ||
235 | 243 | // Check if the game is paused |
236 | 244 | if (isGamePaused()) { |
237 | ||
245 | // In pause menu
|
|
238 | 246 | } |
239 | 247 | |
240 | 248 | // Check if Fancade is in play mode |
... | ... | @@ -244,12 +252,11 @@ if (isGamePlaying()) { |
244 | 252 | |
245 | 253 | // Check if a key is down |
246 | 254 | // Key number list: https://www.glfw.org/docs/3.3/group__keys.html |
247 | if (isKeyDown(265)) { |
|
248 | // |
|
255 | if (isKeyDown(55)) { |
|
256 | // '7' key is down |
|
249 | 257 | } |
250 | 258 | |
251 | 259 | |
252 | ||
253 | 260 | ``` |
254 | 261 | |
255 | 262 |