Posted November 26, 2019 by Cosmo Myzrail Gorynych
Hey, creators! A new ct.js version arrives, featuring a better, sleeker code editor, support for a legacy renderer for older devices, hotkeys, new methods and variables, and a good number of bug fixes and improvements.
@araujo921 from Discord (aka @leedigital at GitHub) made two notable changes: firstly, you can now choose where to store a newly created project:
You can also distribute your catmods in a zip format, and import other modules with this new button in the bottom of the module list:
@Wend1go from Discord and Github added methods ct.mouse.show(), ct.mouse.hide() to easily manipulate the cursor without CSS sorcery. Thanks to Wend1go as well, you now get a clear, descriptive message when you try to switch to a non-existent room. They also bundled ct.js with fresh translations for the new Patreon screen.
@Eilandis from GitHub spotted and fixed a confusing inconsistency in the platformer’s tutorial 📝
@GumpFlash from Discord and GitHub, as well as @araujo921 and @Folha de SP from Discord, made transltions not only for ct.IDE, but also for docs and ct.js’ homepage, in Brazilian Portuguese. Epic 💪
monaco-editor — the same one that runs inside VSCode — replaces ace.js and provides possibilities unseen before: real-time type checks, code completions for modules, and rich docs when you hover over variables:
Type definitions and code completions for modules are modular and load only when you add them. You can make typedefs for your own modules as well!
ct.fittoscreenYou can now change ct.width and ct.height in real time, and ct.fittoscreen will react to it. This allows you to dynamically scale the viewport, creating zoom in/zoom out effects. The method that determines ct.fittoscreen’s behaviour is now configurable as well, with ct.fittoscreen.mode.
You can now bundle your games with a canvas-based renderer, which works when WebGL doesn’t, e.g. with old graphics cards or outdated drivers.
finally method for cutscene’s promise-like objectsct.tweenct.cutscenect.randomct.vkeysct.eqsct.flowct.touchct.yarnct.fittoscreenct.spritect.width and ct.heightct.eqs’ docs