May Update: Custom lights

Tabletop Playground

The modern digital tabletop game for fans and creators! Featuring deep customization and choice, enjoy more immersive tabletop sessions with friends than ever before. Build new rule sets for traditional games, play custom-made games by the community or create your own and share them with the world.

The May update has landed with custom lights and table scripting support: • You can now add lights to objects in the editor. There's a new pane in the lower left (collapsed by default) that allows you to add point lights and spotlights. Point lights emit light into all directions equally and don't cast shadows, spotlights have a direction and a configurable light cone radius. You can also specify the color and intensity for both light types. Lights on objects can be switched on or off in-game from the context menu. [img]{STEAM_CLAN_IMAGE}/34996091/875d3a545a6ec3d5f7a3dfbf6512d61708e1763b.png[/img] [b]Scripting[/b] • Introduce new class `StaticObject` as a superclass of `GameObject`. Static objects aren't interactive and don't have physics applied to them, but otherwise they work very similar to other game objects so most methods from `GameObject` have moved to `StaticObject`. This doesn't affect existing scripts, they will continue to work as before. Currently the only static objects are tables, and there are a couple of new `GameWorld` methods that allow you to access the table and even create more tables: `getAllTables`, `createTableFromTemplate`, and `createStaticObjectFromJSON`. By using `StaticObject`, you can do things with tables that were previously restricted to interactive objects: for example, change their appearance, move them to a different location, or access snap points. • Add `GameObject.areLightsOn` and `GameObject.switchLights` • `Container.take` and `Container.takeAt` caused issues when the `keep` parameter was set to true • Call `CardHolder.onInserted` once for each inserted card when multiple cards are inserted at once from a stack • New event `CardHolder.onBecameHand` called when a card holder becomes a player hand [b]Fixes [/b] • Drawing cards while flipping a stack resulted in penetrable drawn cards • In preview mode, the "Edit Template" and "Edit Table" menu actions were sometimes not enabled when they should be • Typing faster than the ping caused problems when using scripted text boxes on clients • Starting a game with an empty table no longer causes a temporary freeze on opening the table selection when many packages are installed --- These new updates we've added are just some of the many features on our early access development roadmap for Tabletop Playground, which you can check out on our Trello [url=https://trello.com/b/xgNG5EMG/tabletop-playground-roadmap]HERE[/url]. Don't forget to join our community [url=https://discord.gg/tabletop-playground]Discord[/url] to chat with the dev team and give us your suggestions for new features for the game!