The basic concepts of running code on eight cubelets

From WowWiki
Jump to navigation Jump to search

In general you will write ONE source program in Visual Studio Code that will be loaded onto and run on all eight cubelets. It's very likely you will want different things to appear on each screen, so you will have logic to check which cubelet you are running on (0..7) by referencing SELF_ID, and then the various API routines will often let you specify a screen where you want to do something on that screen.

If you want to do something like have a RPG party moving in a maze from one screen to another, you will likely want to use the TOPOLOGY_getAdjacentFacelet() API routine to determine which cubelet+screen you will be moving to when you go off a particular edge of a screen. If the movement ends up being to a different cubelet, you will accomplish this by using the API to send a message to that cubelet so that it can alter what it does in it's next ON_Render() execution to draw a marker for the party's location on the appropriate screen on the new cubelet. (More details on this coming soon!)