Updated Fancade Web.md (markdown)
commited
commit
8164b66035dbc94e3ab58c0043e60bda3aa2e290
... | ... | @@ -208,12 +208,11 @@ setLevel((levelIndex + 1) % count); |
208 | 208 | // Get version of the editor script engine |
209 | 209 | var version = getVersion(); |
210 | 210 | |
211 | //////////////////////////////// |
|
212 | // Fancade Web Beta functions // |
|
213 | // play.fancade.com/beta // |
|
214 | //////////////////////////////// |
|
211 | /////////////////////////////////////////////////////////// |
|
212 | // Start of Fancade Beta features, play.fancade.com/beta // |
|
213 | /////////////////////////////////////////////////////////// |
|
215 | 214 | |
216 | // Listen to events |
|
215 | // Listen to events (Beta only)
|
|
217 | 216 | setEventListener("block-placed", function(x, y, z) { |
218 | 217 | // Callback function called when a block is placed at (x, y, z) |
219 | 218 | }); |
... | ... | @@ -232,25 +231,25 @@ setEventListener("keyup", function(key) { |
232 | 231 | // The key is a number. See https://www.glfw.org/docs/3.3/group__keys.html for a complete list |
233 | 232 | }); |
234 | 233 | |
235 | // Select block |
|
234 | // Select block (Beta only)
|
|
236 | 235 | selectAt(x, y, z); |
237 | 236 | |
238 | // Get selected block count |
|
237 | // Get selected block count (Beta only)
|
|
239 | 238 | if (getSelectedCount() === 1) { |
240 | 239 | // A single block is selected |
241 | 240 | } |
242 | 241 | |
243 | // Check if the game is paused |
|
242 | // Check if the game is paused (Beta only)
|
|
244 | 243 | if (isGamePaused()) { |
245 | 244 | // In pause menu |
246 | 245 | } |
247 | 246 | |
248 | // Check if Fancade is in play mode |
|
247 | // Check if Fancade is in play mode (Beta only)
|
|
249 | 248 | if (isGamePlaying()) { |
250 | 249 | // Not in edit mode |
251 | 250 | } |
252 | 251 | |
253 | // Check if a key is down |
|
252 | // Check if a key is down (Beta only)
|
|
254 | 253 | // Key number list: https://www.glfw.org/docs/3.3/group__keys.html |
255 | 254 | if (isKeyDown(55)) { |
256 | 255 | // '7' key is down |