Ct.js is a 2D game-making engine with high-quality documentation, visual tools for asset management, and a smart code editor, all integrated into one IDE. It has a smooth workflow and excellent user experience. The engine can be used at programming courses and is good for beginners in game development. Ct.js also fits more seasoned developers as one can make and publish a game for web and desktop entirely in ct.js.
Ct.js is free, open-source software released under the MIT license. Its prebuilt bundles are available on its website, Github, and itch.io.
Ct.js is a project with a long history (since approximately 2013), but it has been publicly available on itch.io since summer 2018. It is actively maintained, bringing bug fixes, improvements, and new features.
Similarities with other products
Ct.js is inspired by YoYo Game Maker and Tululoo Game Maker and has a similar API and workflow. Under the hood, ct.js uses pixi.js graphics engine, which defines an object-oriented drawing process.
The ct.js community is active in the official ct.js Discord server. People can help each other, share their projects, make suggestions for ct.js development, directly talk with developers, and listen to synthwave there.
Sky blue, the color of active elements.
Purple, the ink and blood.
White, the one you can't see.
We don't provide CMYK colors as ct.js is a digital app, but if you need something for print, printing houses usually know how to handle RGB colors. If they don't, choose a better printing house.
Feature list (WIP)
- Support for framed animations from sprite sheets.
- Ability to turn one sprite sheet into several animations with ct.sprite module.
- Support for DragonBones skeletal animations.
- Smooth value animations with ct.tween.
- Configurable loading screen.
- Configurable icon for web and desktop builds.
Camera & Viewport
- Automatic support for multiple resolutions.
- Screen shake effects.
- Smooth movement from point to point.
- Viewport rotation.
- Code folding.
- Code highlighting.
- Multi-cursor editing.
- Real-time type checks with errors, warnings, and hints.
- String and RegExp search.
- Suggestions with embedded documentation.
- Support for ligatures. (Can be toggled in settings.)
- Import TTF fonts and use them in canvas-based text labels.
- Produce bitmap fonts from TTF fonts.
- Set a range of characters to include in bitmap fonts by choosing charsets or manually typing the needed symbols.
- Integrated Chrome debugger with all its tools.
- Jump to any level in your game at click.
- Pause and resume your game.
- Restart the current level, or the whole game.
- Take a screenshot of your game while in debug mode.
- Documentation provided with modules integrates into IDE interface.
- Offline docs and examples bundled with ct.js.
- Add custom HTML and CSS to your builds with ct.akatemplate.
- Export for web in one click.
- Export for Windows, Mac, and Linux (supports everything electron does).
- Fast desktop builds after downloading electron binaries (under a minute).
- Support for older browsers that don't support WebGL.
- Full layout-agnostic keyboard support
- Mouse support
- Gamepad support
- Touch screen support
- Virtual keys and joysticks
- Configurable font for code.
- Configurable panels for asset lists.
- Numerous dark and light themes.
- Search and sort assets.
- Ability to add new language files and modify them.
- Brazilian Portuguese, Chinese Simplified, Dutch, English, French, German, Polish, Romanian, Russian, Spanish UI translations authored by ct.js community.
- Add new fields to objects and rooms.
- Custom settings pages.
- Dozens of open-source modules come bundled with ct.js.
- Integrate module's documentation into ct.js with markdown files and TypeScript definition files.
Motion & collisions
- Ability to code a movement system for platformers. (Examples and tutorials are included.)
- Arcade movement system.
- Circled, rectangular, polygon collision shapes with support for transforms.
- Collision checks with other objects and tile sets.
- Collision groups for objects and tiles to check collisions against a specified subset of entities.
- Continuous movement.
- Environment querying system.
- Physics engine based on Matter.js.
- Integration module for Nakama, online multiplayer platform. Supports self-hosted servers.
- Transforming with a 3x3 transform matrix.
- Boundless levels — you can expand your level anytime at any direction without extra steps.
- Multiple selection.
- Pan and zoom a level.
- Placing objects individually and as a brush.
- Tilemap support.
- Automatic handling of paths and conversions for desktop builds at ct.fs module.
- Create, read, write and delete files with ct.js module for desktop builds.
- Save strings into browser with localStorage; available for web and desktop builds.
- Simple HTML5Audio and a more advanced WebAudio systems.
- Support for mp3, wav, ogg formats.
- 3D audio.
- Stereo panning.
- Fade in/fade out transitions.
- Preloading music files on demand.
- Lighting system.
- Particle systems with real-time modelling.
- Shaders and built-in filters.
- Transitions between levels.
- Bitmap fonts.
- Support for most popular image formats.
- Textures get packaged into PNG atlases for faster load and better performance.
- Design UI in separate rooms and add them to viewport in gameplay levels.
- Dynamic text labels.
- Virtual keys. (Aka on-screen keys and joysticks.)