Welcome to the official ct.js docs!
Learn ct.js, complete tutorials, and contribute to ct.js documentation
Learn JavaScript
Games made in ct.js use JavaScript, or simply JS, to code its gameplay logic. Learn the needed part of it in our little Introduction to JS.
Learn JavaScript →Complete tutorials
The best way to learn is by making, and you can create real games with our step-by-step tutorials:
Learn the core library
See additional methods and properties of copies, camera, rooms, and procedurally create tilemaps, backgrounds, and new copies.
Go to ct.js docs →Notable changes and additions in ct.js v2.0
- API has changed! The first thing you will notice is that `ct.types` is now `ct.templates`, but there is much more in our migration guide. Do check it out.
ct.res
got a major rewrite and now allows you to dynamically load textures, fonts, and skeletal animations into your game. More to come!- A new part of Introduction to JavaScript was released: now on Arrays and Objects.
- There is now a doc page for the room editor, and as the practice shows, not everyone knows about everything it can do. Have a look, won't ya?
- Catmods now have an `if` key in their fields, allowing catmod developers to display controls conditionally, and an `array` type with a companion key `arrayType`.
Join the community
Join our Discord server to meet other game developers, receive help, aid others, and share your creations. Alternatively, you can also post on our forum.
Discord Server →Forum →Contribute
Set up a dev environment to run a local docs server and use simple Markdown syntax to write new tutorials and send fixes.
You can also edit docs on Github — look for "Propose edits" links at the bottom of each page!
Visit the repo →