Skip to content

miata-bot/trading-card-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trading Card Builder

WIP virtual trading card game builder and engine. See notes.md for ideas and ramblings of what I want this to be in the end.

TODO

  • Elixir interface to building databases
  • test for elixir interface
  • Web application using Elixir interface
  • Zig engine to render cards
  • Embed engine in Elixir service
  • Embed engine in Flutter app?
  • Tests for engine
  • Card transfering/trading
  • Card gifting
  • "special" card rendering / gif output
  • CLI applications for both Zig and Elixir interface
  • test for crypto functions

Simple Example

The "main" photo:

input photo

add an icon to overlay with a unique badge:

input photo

The background image to use:

input photo

The code that puts it all together:

local Card = {};
Card.VersionMajor = 0;
Card.VersionMinor = 1;

Card.Photo = loadImg("coneborb.png")
Card.Background = loadImg("bg.png");
Card.Icon = loadImg("icon.png");

Card.PrimaryTitle = "cone";
Card.SubTitle = "@pressy4pie";
Card.Body = [[
        1990
    Crystal White
Konig Hexagram

Continental ECS

        Teins
       150,000
]];

return Card;

And finally the card it outputs:

output.png

About

WIP virtual trading card game builder and engine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published