Skip to content

Instantly share code, notes, and snippets.

// this is a hacky workaround to make cards display their name when you hover
// over them. it requires setting the texture override url fragment to the
// card name.
import { Card, GameObject, world } from "@tabletop-playground/api";
export function get_name(obj: Card): string {
if (obj.getStackSize() !== 1) {
return "";
}
@0x6273
0x6273 / booster.js
Created May 19, 2020 14:49
TP Booster Pack
function boosterJson(cards) {
let firstCard = cards.pop();
let cardStack = {
"objectType": "Card",
"transform": {
"rotation":
{
"x": 0,
"y": 0,