Skip to content

Releases: ct-js/ct-js-old

v1.4.2 — Bug fixes, room editor improvements, more input types for modules, and other QoL improvements

29 Aug 10:57
Compare
Choose a tag to compare

✨ New Features

  • Add tag catmod, for adding tags for individual copies and rooms.
  • Add a properties panel for tweaking parameters of an individual copy.
  • Add PIXI.MultiStyleText module.
  • Add support for moddable extensions for individual copies.
  • Add texture generator for placeholders.
  • Background color control for rooms (finally!)
  • Code completions now suggest names of types, rooms, sounds, actions, and emitters.
  • ct.place.moveByAxes and this.moveContinuousByAxes for easy movement at platformers and top-down games.
  • ct.place.moveAlong now checks against tiles too
  • Fast integer scaling mode for ct.fittoscreen, for purely pixel art projects.
  • Hide default cursor at Project -> Render Options -> Hide system cursor
  • Import a texture by pasting it from a clipboard. Will update an existing opened texture as well!
  • In the room editor, Shift+Click now selects the nearest copy or tile.
  • New select input type for catmods, as an alternative to radio
  • Nightly builds at comigo.itch.io/ct-nightly.
  • Seeded random for ct.random module
  • slider, sliderAndNumber input types for extensions, and additional settings for them and number inputs.
  • Sort copies or tiles inside a room with two new buttons at the top-left corner of the room editor. Extremely handy for isometric games!
  • Toggle UI sounds in the Main menu -> Settings

⚡️ General Improvements

  • A popup to quickly fix backgrounds at the room editor if their texture is not marked for tiled use.
  • Add .itch.toml to simplify run dialog on Linux.
  • Add dnd-processor tag that solves edge cases with drag-and-drop behavior and allows dropping any supported files on any tab.
  • Add icons that highlight deprecated and preview modules more clearly.
  • Better zooming controls for room, texture, and emitter editors.
  • Change build, projects', export folders to be stored under the ~/ct.js/ directory.
  • Change ct.fs to use app data directories for Linux, Windows, macOS (#226 by @JulianWebb).
  • Decrease threshold that differentiated clicks and drags in the room editor, improving placing behavior of multiple tiles/copies.
  • Improve preview making process for textures.
  • Improve tile positioning algorithm for the room editor.
  • Minor UI improvements for the texture viewer.
  • Position context menus so that they don't exceed viewport's size.
  • Rename "Author" field at settings into "Developer" (i18n strings only).
  • Scale smaller tilesets to fit the tile picker, at the room editor.
  • Update Russian UI translation.

🐛 Bug Fixes

  • A workaround for 'oncancel' not being fired on input(type="file") tags. Fixes an issue with invisible inputs overlaying the main menu.
  • Add the missing CSS directive for pixelated projects.
  • Fix checkboxes at extensions and module settings not showing the actual value's state
  • Fix ct.mouse returning old coordinates if a camera has moved, but a cursor hasn't.
  • Fix incorrect drawing of scaled copies in the room editor.
  • Fix issues with camera movement at room editor with extreme zooming factors.
  • Fix modules' extensions being parsed at the exporter if they have undefined or unset (equal to -1) secondary keys.
  • Fix overflow issues and wrong initial values for bitmap font generator.
  • Fix regression from v1.4 with blurry particle editor and room view when pixel art rendering was enabled.
  • Fix user-select CSS parameter on modules' docs panel.
  • Hotfix: fix font import issues on Windows, as well as fix potential similar issues for other asset types

🍱 Demos, Dependencies and Stuff

  • Bump various catmods' versions.
  • Update electron-packager to v15.0.0. Fixes build issues for Windows.

📝 Docs

  • Add info about moddable copies' extensions
  • Add the missing link to the bitmap fonts page in the navigation panel.
  • At the platformer tutorial, fix a typo in collectibles title.
  • Document new input types slider and sliderAndNumber, as well as additional settings for them
  • Fix small error in describing key input in the asteroid shooter tutorial.
  • Fixed bitmap fonts docs. The font in the constructor should be an object.
  • Specify the tab for enemy/asteroid generation code at space shooter tutorial.

🌐 Website

  • ✨ Presskit

🌚 Misc

  • 🔥 Remove keymage.js, as it is not used anymore
  • 🔥 Remove keymaster.js, as it is not used anymore

Hotfix: solve issues with older projects, custom scripts, and room editor

09 Aug 22:57
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Fix indefinite behavior after placing copies and switching to the properties tab in the room editor
  • Fix loading error while migrating a project without tile layers to v1.4.0
  • Fix regression with custom script typings: they were not loaded on project load
  • Fix type picker being empty right after opening the room editor
  • Icons in the room editor, on the left side, should be centered if no labels are shown next to them.

Bitmap fonts, integrated debugger, ct.inherit, modules overhaul, and more!

09 Aug 09:25
Compare
Choose a tag to compare

✨ New Features

  • Bitmap fonts — see new docs on how to use them. These fonts solve issues with blurry pixel art fonts in games, and also provide higher performance for dynamic text!
  • ct.assert module for readable checks in ct.js projects
  • ct.camera now supports direct assignment for its scale, e.g. ct.camera.scale = 1.5;
  • ct.inherit module that allows you to call parents' code and keep things DRY
  • Custom font selector in the style editor
  • Lucas Dracula theme — A rough port of Arkham theme for VSCode by @lucasmsa
  • Modding: onbeforecreate injection
  • Modding: A code input type for monospace text input
  • Modding: Add point2D input type for modules' settings and injections
  • Modding: Add extensions for rooms with roomExtends field
  • Modding: Add extensions to tile layers with tileLayerExtends field
  • Modding: Both module settings and asset extensions now can use all the input fields that were previously exclusive to either modules' settings or type extensions
  • Module's settings are now parts of the Project Settings' tab
  • Quickly create a new type by right-clicking an asset in the textures panel
  • Unified module's docs in the side panel

⚡️ General Improvements

  • Allow ct.fittoscreen to toggle fullscreen mode while being in an electron app (in a desktop build)
    Closes #155
  • Allow games enter fullscreen while being in the debugger
    See #155
  • Better project selector background for night themes
  • Better layout of a type editor
  • Change ct.place.tile to check against collision groups (new!) instead of depth
  • Improve the Horizon theme
  • Make the structural behavior of TileLayer consistent. Fixes drawing issues with tiles and ct.place debug mode
  • Minor UI fixes for the project selector
  • More logical color hierarchy — you will see subtle changes in how certain panels are colored in dark and light themes, and all themes should now have uniform look and feel
  • Move depth input at the type editor into a scroll box, on par with module-provided fields
  • New icons for the top panel
  • Refurbish project's settings screen
  • Remove empty "help" field from ct.place > module.json
  • Replace node-static for dev and docs servers with serve-handler. Solves rare race conditions while loading docs or a game.
  • Show a loading icon while exporting project
  • The left button group at the topmost tab bar now occupies less space on wider screens
  • Update Russian UI translation
  • Update Spanish translation for ct.IDE. Update by Stuck Up Creations from the Discord server ✨
  • Update debug translation file and comments file
  • Use less restrictive YAML reader/writer to allow some minor save file errors

🐛 Bug Fixes

  • Do not reuse tiles directly from room templates
    Closes #191
  • Fix blank autocompletion list at room-events-editor
    Closes #195
  • Fix ct.tween.add not working as expected for useUiDelta
    See #198
  • Fix the first tile layer not being added into a drawing stack at room-editor, which made tiles invisible unless a copy or background was added
    Closes #206
  • Fix wrong default setting for ct.fittoscreen module
  • Replace unzipper module and fix issues with module imports

🍱 Demos, dependencies and Stuff

  • Update Howler.js to v2.2.0

📝 Docs

  • Split "Making catmods" docs into several pages;
  • Document the usage of new asset extensions and input types;
  • Document the usage of BitmapFonts;
  • Update screenshots and directions for tutorials, to reflect UI changes in v1.4.

👾 Misc

  • 🔥 Remove export options: HTML and CSS are now always minified, and JS conversion never worked correctly
  • 🔥 Remove a button in the nav that toggles the fullscreen view
  • Minor fixes to the debugger files (#197 by @leedigital)

A hotfix that adds examples again + bundles the needed version of docs

06 May 14:33
Compare
Choose a tag to compare

Particle systems, UI layers and room nesting, ct.deltaUi and much more

06 May 12:33
Compare
Choose a tag to compare

✨ New Features

  • 🌐 Add a Chinese Simplified translation (#164 by @emaoshushu)
  • 🌐 Add a Polish translation by Voltinus from Discord 🎉
  • 🌐 Add Dutch language to IDE (#182 by @BartInTheField)
  • Add a "troubleshooting" submenu to main ct.js menu
  • Add a reset() method to CtAction
  • Add ct.deltaUi for steady UI animations at slowmo effects
  • Add ct.gamepad module, made by collective efforts from @leedigital, SN from Discord, and Comigo
  • Add touch controls for catformer and catsteroids (#178 by @naturecodevoid)
  • Allow to set depth through extensions in ct.types.copy fourth parameter
  • An onboarding screen when creating a new project
  • Catmods can now express their dependencies on other mods with dependencies and optionalDependencies fields
  • Configure texture's padding to avoid bleeding artifacts on strongly scaled textures
  • ct.camera, UI and game coordinates, and nested rooms
  • ct.fs - a module for working with files and game saves
  • ct.transitions for nice and smooth transitions in your game!
  • ct.types.exists to check whether a given copy exists in game's world
  • ct.timer (#179 by @naturecodevoid)
  • Dark theme support in docs panel
  • Favicons and customizable loader for your games, at your project's Settings tab
  • New injection for catmods — rooms.js
  • Particle systems, yaaay! 🎉
  • Reorder scripts at your project's Settings tab (#181 by @naturecodevoid)
  • Rotate copies in the room editor through a context menu
  • Stretch debugger's console and flip its layout
  • The sidebar in the room editor is now resizeable
  • UI scale in ct.IDE (#180 by @naturecodevoid, see it in the hamburger menu > Settings)

⚡️ General Improvements

  • 🌐 Update Debug and Russian translation files
  • 🌐 Update French translation (#176 by @FoobarIT)
  • 🌐 Update German translation (#153 and #172 by @Wend1go)
  • ct.flow, ct.u.wait, ct.tween now operate based on ct.delta, with optional ct.deltaUi mode (#179 by @naturecodevoid)
  • Add a bit of logic to reset crop size on single-frame textures
  • Add a spacer between "Image's center" and "Isometrify" buttons in the texture editor
  • Add home-brewed i18n coverage reports and language file checkers to CI
  • Add simple typings for window and document
  • Add typings for ct.rooms.list
  • Change cursor to "progress" state when exporting a project
  • Export games as an electron app. Bonus: new supported architectures! ✨
  • Forbid building for Mac from Windows, because Windows is shit
  • Improve error message with broken TTF fonts
  • Improve typings for Copy.tex
  • Improve typings for ct.camera
  • Lay out language menu in two columns
  • Remove the extra border at a room's script editor
  • Remove unnecessary update after a skeleton was imported
  • Replace icons for rooms and textures
  • Run some tasks of the exporter in parallel, shortening the time it takes to compile your games
  • Set starting mode for desktop games: windowed, fullscreen, or maximized
  • Store projects in YAML format: better conflict resolving in git and more human-readable source files
  • Types now automatically rename to the name of a picked sprite
  • UI: Add a margin to the "Settings" header on the same-called tab
  • Update ct.vkeys to work with the new UI coordinate system
  • Update typings for ct.tween
  • Variables defined in scripts at the settings tab are now visible by code editors. No more red squiggles!

🐛 Bug Fixes

  • Add missing typings for sessionStorage and localStorage, that are needed for saving game data in a browser
  • Add missing typings for xstart and ystart in copies
  • Add the missing depth property of the Copy class
  • Add the missing typing for ct.rooms.current
  • Ensure that "includes" folder exists when opening it through the main menu, as it may be absent, e.g. after pulling a new project from a git repo
  • Fix 3D sounds of sound.howler
  • Fix a case when this.kill is applied to backgrounds or tilesets and ct.js can't delete them
  • Fix broken button that moves all copies in a room editor
  • Fix broken ct.mouse Wheel input
  • Fix context menu in the Fonts section > "rename" command doing nothing
  • Fix issues with re-imported textures
  • Fix OnDestroy not always being called on copies that got deleted because of others' OnDestroy code
  • Fix shadow style on notepad panel on dark themes
  • Fix style issues at html.js
  • Fix the bug when importing a module if it does not contain a parent directory (#157 by @leedigital)
  • Fix the incorrect typing for ct.speed
  • In ct.touch, mouse clicks should trigger Any, Double, Triple inputs
  • Prevent images in a room's type picker from dragging
  • Remove extra border at the top of type's code editor
  • Show imported fonts immediately
  • Update ct.fittoscreen to work with high-density screens

🍱 Demos and Stuff

  • Add full JettyCat example
  • High-quality textures for Memocats
  • Improvements of examples
  • Pull the latest docs
  • Refurbish Catsteroids example: add a boss battle, new bonus, and new graphics
  • Update Yarn Spinner example

📝 Docs

  • ✨ New tutorial: JettyCat
  • Indent the warning about shape optimizations in ct.place.tile
  • Add a link to Discord server at the issue creating screen
  • Add missing quotation mark in mouse catmod changelog (#173 by @Wend1go)
  • Fix "optionable" in docs for ct.transition

🌻 Misc

  • 🔥 Remove ct.libs property from exported games

Hotfix: enable legacy renderer inside ct.IDE so that style editor does not break everything

26 Nov 09:14
Compare
Choose a tag to compare

If ct.js works with WebGL for you, then you can safely skip this hotfix. It fixes a problem with those PCs that don't support WebGL.

🐛 Bug fixes

  • ct.IDE should use pixi.js-legacy internally as well, otherwise style editor breaks everything

A new code editor, support for legacy devices, and other improvements

26 Nov 03:08
Compare
Choose a tag to compare

✨ New Features

  • A new, better code editor with live type checks, built-in doc popups, and more!
  • Add a render option to include a legacy renderer for older browsers
  • Choose a custom folder for a project when creating it (#138 by @leedigital)
  • Hotkeys for most tabs and resource creation
  • Import modules from a *.zip file, in the Catmods tab (#142 by @leedigital)
  • Patreon screen
  • Resize the viewport with ct.width and ct.height
  • Show/Hide the mouse cursor with ct.mouse.show, ct.mouse.hide (#143 by @Wend1go)

⚡️ General Improvements

  • Add a finally method for cutscene's promise-like objects
  • Add patreon translation to German (#140 by @Wend1go)
  • Allow to change ct.fittoscreen's scaling mode at game's runtime
  • Create dummy typedefs for modules that don't provide them

🐛 Bug Fixes

  • An asset should not be allowed to apply if it has an already occupied name
  • Fix broken zipped projects on windows
  • Fix multiple tiles not being placed while the Shift key is pressed
  • Fix non-working export settings on really old projects
  • Show proper error message when switching to a non-existent room (#144 by @Wend1go)
  • Update DragonBones and fix issues with skeleton import

🍱 Demos and Stuff

  • Add typedefs for ct.tween
  • Add typings for ct.cutscene
  • Add typings for ct.random
  • Add typings for ct.vkeys
  • Complete typings for ct.eqs
  • Typedefs for ct.flow
  • Typedefs for ct.touch
  • Typedefs for ct.yarn
  • Typings for ct.fittoscreen
  • Typings for ct.sprite

📝 Docs

  • Document ct.width and ct.height
  • 🐛 Fix mistakes in ct.eqs' docs
  • ✨ Complete translation of Pt-BR docs
  • ⚡ Add a clarification to the second variant of a platform's code at tut-making-platformer
  • ⚡ Document the process of adding typedefs for modules
  • ⚡ Update tut-making-platformer.md (by @Eilandis)

🌐 Website

  • 🐛 Fix a link to site's code license in the footer
  • 🐛 Fix emojis in 1.1.0 changelog entry
  • 🐛 Fix links in reusable stuff
  • ✨ A proper language selector
  • ✨ PT-BR translation on ct.js-site (by @GumpFlash)
  • ⚡ Add a translated contact form for Russian locale
  • ⚡ Better adaptivity
  • ⚡ Better handling of optionally translated pages
  • ⚡ Make the page "made with ct.js" dynamic and based on itch.io engine page
  • ⚡ Tons of improvements here and there
  • ⚡ Tons of new icons

Pt-Br translations, easier collision editing, ct.place bug fixes, Yarn support, and even more!

15 Oct 06:49
Compare
Choose a tag to compare

✨ New Features

  • Add a debug mode to ct.place (you can find it in the settings tab)
  • texture-editor: Add the Symmetry tool for polygonal shapes (by @schadocalex)
  • Add Iosevka as a default typeface for code, allow setting your own typeface, control line height and ligatures
  • Open the includes folder from the hamburger menu
  • Support for nested copies (#127) by @schadocalex
  • Support for Yarn (a tool for making dialogues and interactive fiction), powered by bondage.js
  • texture-editor: Directly add/remove shape points on texture with your mouse. Add a point by clicking on the yellow line segments, delete points by clicking on them (by @schadocalex)

⚡️ General Improvements

  • Add Pt-Br translation of UI by Folha de SP from Discord
  • Better checkboxes, radio inputs, and other fields
  • Better styling of inline code fragments in the modules panel
  • Better texture-editor layout
  • Better, more readeable tables in module's docs
  • Change Horizon colors a bit to make it more pleasant to look at
  • Highlight code blocks at modules panel
  • Improve texture packing
  • Make module list and their details scroll independently
  • Remove excess borders in nested views
  • Remove excess borders on module panels
  • Remove old language keys, add Comments.json, Debug.json
  • Rename "Is tiled" property of textures to "Use as background", hide splitting tools if used as background
  • texture-editor: Make the axis handle squared (by @schadocalex)
  • texture-editor: Zooming in/out now works when scrolling outside the texture as well (by @schadocalex)
  • Tiny UI improvements, here and there

🐛 Bug Fixes

  • 📝 Replace Lato's license with Open Sans', as we don't use Lato
  • Color inputs should show white value on a dark background from the very start
  • Fix broken style editor
  • Fix numerous collision problems that appeared with rotated entities
  • Fix the checkbox "close the shape", as it didn't change the actual state before
  • Stop chromium from messing up with color profiles and colors in ct.js

🍱 Demos and Stuff

  • Add a Yarn demo

📝 Docs

  • Document the alpha property of copies
  • ⚡ Update Troubleshooting — teared backgrounds
  • 🐛 Update tut-making-shooter.md (by @Eilandis)
  • Pt-Br translation by @leedigital 🎉

🌐 Website

  • 🐛 Fix an outdated link to downloads in the header
  • ✨ Add partial Russian translation
  • ⚡ Align social icons at the footer to the right

Fix desktop export, add support for OGG, and improve docs

24 Sep 22:58
Compare
Choose a tag to compare

🐛 Bug fixes

  • Fix broken desktop export, as well as non-catched errors
  • Fix textures' "frame count" property not working (#120) by @island205 🎉
  • Update parameter names in ct.sprite's readme

⚡ General improvements

  • Add support for OGG audio files

Docs

  • 🐛 Fix the use of ct.height in Making Shooter tutorial when ct.viewHeight is needed
  • ⚡ Change the title of "Troubleshooting: Background splits into squares!" so that it covers tiles as well
  • Add a page "Troubleshooting: Sounds don't play at the game start!"
  • Document ct.u.degToRad, ct.u.radToDeg
  • Document ct.u.rotate, ct.u.rotateRad

A number of bug fixes

04 Sep 22:35
Compare
Choose a tag to compare

v 1.0.1

5 September 2019.

🐛 Bug Fixes

  • Fix the broken sound import
  • Fix improper movement of vertically repeating backgrounds
  • Add actions to new projects. Fixes the issue with "project.actions are not iterable"

⚡ General improvements

  • Update Open Sans font, so it supports extended Latin characters

🐙 Misc

  • Remove the deprecated copies' method this.draw