-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Components And Systems Tabs
Scott Erickson edited this page Jan 30, 2014
·
1 revision
Components and Systems are built and edited in the Components and Systems tabs. They can also be used to get more detailed information on what any given one does. Only Components that Thangs in your Level have will show up in the Components Tab.
- If it's not already on one of the Thangs in your Level, add it to one.
- Go to the Components Tab
- Click on the now listed Component and view its code and other details.
This is really hacky, but right now the only way to view any given Component and all its data.
- If it's not already added to the list of systems, add it with the 'Add System' button at the lower left.
- Click on the now listed System and view its code and other details.
- Click 'Add New Component' or 'Add New System' on the upper right. If you're adding a new Component, include the System it depends on in lower case (so 'ai' or 'event').
- In its settings, give it a description, name, and list dependencies on other systems or components.
- Read up on how JSON-Schema works. Configurations are defined with them.
- Select the Component on the left.
- Click 'Config Schema' on the Component pane that appeared to the right.
- Use the Treema that appeared to edit the Component's Configuration Schema.
- To test a config, try configuring it. See Editing Thang Components.
- Select the Component on the left.
- Edit the code in the ACE editor that appeared.
- Press Play to see what happens. Use console.log to debug. There are some limitations to logging though when running the code in the background.
Explore the existing Components' code and talk with us for any questions you have.
CodeCombat | Home | Blog | Forum | Teachers | Legal | Contribute
- Home
- Archmage Home
- Artisan Home
- Diplomat Home
- Archmage General
- Mission statement
- Coco Models
- Coding Guidelines
- Cookbook
- File system
- JSON Schema
- Technical overview
- Testing
- Third party software and services
- Artisan General
- Building A Level
- Coding Guidelines for Artisans
- Editing Thang Components
- Important Artisan Concepts
- Keyboard Shortcuts
- Debugging
- Artisan How-To Index
- Diplomat General
- i18n
- i18n Glossary nb
- i18n Glossary ru
- i18n Glossary es-419
- Dev Setup
- Dev Setup: Linux
- Dev Setup: Windows
- Dev Setup: Mac
- Dev Setup: Vagrant
- Dev Setup: Issues
- Game Engine
- Component
- Multiplayer
- Surface
- System
- Thang
- Thang Component System
- Tome
- World
- Artisan Tabs
- Components And Systems
- Scripts
- Settings
- Thangs
- Other
- Aether
- Client models
- Developer organization
- Educational Standards
- Events, subscriptions, shortcuts
- Chat Room
- Chat Room Rules
- Permissions
- Project Ideas List
- Treema
- Versioning
- Views