Uploaded October 2025 | Updated September 2026, 3 weeks ago
In this video, I show a way that you might start making a 2D game in TouchDesigner. Using a Replicator COMP, driven by a table, I show how to make copies of rectangles and their corresponding collision-detection. This is the beginning of a game that has enemies/treasures/whatever scattered across the screen. The end result is an avatar that can "eat" the objects, get killed by them, or whatever you want.
An interesting note: The only reason it required that longer python expression in the TOPs parameter of the Composite TOP is because the Base COMPs have multiple outputs. If you are trying to composite a number of Base COMPs that have a single TOP output, it's as simple as writing the expression: ops('base*')
The collision detection bit is inspired by the method used in this video: youtube.com/watch?v=n81NAf0Orus
In this video, I show a way that you might start making a 2D game in TouchDesigner. Using a Replicator COMP, driven by a table, I show how to make copies of rectangles and their corresponding collision-detection. This is the beginning of a game that has enemies/treasures/whatever scattered across the screen. The end result is an avatar that can "eat" the objects, get killed by them, or whatever you want.
An interesting note: The only reason it required that longer python expression in the TOPs parameter of the Composite TOP is because the Base COMPs have multiple outputs. If you are trying to composite a number of Base COMPs that have a single TOP output, it's as simple as writing the expression: ops('base*')
The collision detection bit is inspired by the method used in this video: youtube.com/watch?v=n81NAf0Orus










