This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IDE | |
| Highlights | |
| - Code Editor 2: over 100 fixes, covering selection, find and replace, indentation, completion, tooltips, colouring, folding, split views and performance in large scripts (see below). | |
| - Terminal window. Views > Terminal opens your shell inside the IDE, docked with the Output windows and starting in the project folder: PowerShell on Windows, your login shell on macOS and your shell on Linux. Full-screen programs such as vim, htop and less work, including the mouse wheel, and Ctrl+click (Cmd+click on macOS) opens file paths, file:line locations, URLs and asset names. | |
| - Colour and links in the Output windows. The Output windows show the colours from tool output, and you can add your own highlight rules. Ctrl+click (Cmd+click on macOS) a compile or runtime error location to open it in the code editor, or an asset name to open the asset. A bar counts the errors and warnings, F8 and Shift+F8 jump between them, you can filter the output to some text or to errors only, and you can export or copy it as |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| const sections = [...document.querySelectorAll('.SectionComponent')]; | |
| let output = ''; | |
| let total = 0; | |
| sections.forEach(section => { | |
| const header = section.querySelector('.SectionComponentHeader'); | |
| if (!header) return; // its' another block, skip | |
| const dayTitle = header.textContent.trim(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "welcome": "Witaj w mojej aplikacji!", | |
| "menu": [ | |
| { "title": "Dashboard", "route": "/dashboard" }, | |
| { "title": "Raporty", "route": "/reports" }, | |
| { "title": "Ustawienia", "route": "/settings" } | |
| ] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ////////////// | |
| // Chapter 401 | |
| ////////////// | |
| // # = constant | |
| // * = readonly | |
| // @ = instance variable | |
| // & = obsolete | |
| // $ = US spelling | |
| // £ = UK spelling |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// @return N/A (0) | |
| /// | |
| /// Executes a method call for each element of the given struct/array/data structure. | |
| /// This iterator is shallow and will not also iterate over nested structs/arrays (though | |
| /// you can of course call foreach() inside the specified method) | |
| /// | |
| /// This function can also iterate over all members of a ds_map, ds_list, or ds_grid. | |
| /// You will need to specify a value for [dsType] to iterate over a data structure | |
| /// | |
| /// The specified method is passed the following parameters: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| clip_x1 = 10; | |
| clip_x2 = 500; | |
| clip_y1 = 10; | |
| clip_y2 = 100; | |
| draw_set_color(c_white); | |
| draw_set_alpha(1); | |
| // set up shader: | |
| shader_set(shd_clip_rect); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 39dll <3 | |
| function bufferencrypt(_key, b = global.buffer) { | |
| bufferdecrypt(_key, b); | |
| } | |
| function bufferdecrypt(_key, _buff = global.buffer) { | |
| var keylen = min(string_length(_key), 256); | |
| if (keylen < 0) return false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Test() constructor { | |
| static test = "--- singleton test"; | |
| } | |
| Test(); | |
| function get_test() { | |
| return static_get(Test); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ////////////// | |
| // Chapter 401 | |
| ////////////// | |
| // # = constant | |
| // * = readonly | |
| // @ = instance variable | |
| // & = obsolete | |
| // $ = US spelling | |
| // £ = UK spelling |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // based on https://github.com/YoYoGames/GameMaker-HTML5/blob/develop/scripts/functions/Function_MotionPlanning.js#L232 | |
| // | |
| global.__mp_settings = { | |
| maxrot: 30, | |
| rotstep: 10, | |
| ahead: 3, | |
| onspot: true, | |
| } |
NewerOlder