Skip to content

Kings and Pigs

Dive into Kings and Pigs, a vibrant 2D TypeScript game! Explore custom ECS architecture & physics with Planck.js. Perfect for TypeScript learners & game enthusiasts. Play now!

Deploy Kings and Pigs on Open Source Cloud

  1. Web console: press Launch above, sign in, name the instance and create it.
  2. Command line: with your personal access token in OSC_ACCESS_TOKEN, run npx -y @osaas/cli@latest create bwallberg-kings-and-pigs-ts myinstance. Add -o Key=Value for any required settings.
  3. Your AI agent: connect it to the OSC MCP server at https://mcp.osaas.io/mcp and ask: β€œCreate an instance of Kings and Pigs on Open Source Cloud and give me its URL.” How to connect

What it costs

One running Kings and Pigs instance uses 10 tokens a day. The free Basic plan's 100 one-time tokens run it for about 10 days. On Personal (40 tokens a day) one instance runs continuously.

See plans and token allowances

Open source, no lock-in

Kings and Pigs is built from the open source project at github.com/bwallberg/kings-and-pigs-ts. You can run the same project on your own infrastructure or another cloud whenever you want, and take your data with you.

Questions about Kings and Pigs

How much does Kings and Pigs cost on Open Source Cloud?

One running Kings and Pigs instance uses 10 tokens a day. The free Basic plan's 100 one-time tokens run it for about 10 days. On Personal (40 tokens a day) one instance runs continuously. Prices and allowances are on https://www.osaas.io/pricing.

How do I deploy Kings and Pigs?

Three ways: press Launch to create it in the web console; run npx -y @osaas/cli@latest create bwallberg-kings-and-pigs-ts myinstance with OSC_ACCESS_TOKEN set (add -o Key=Value for any required settings); or connect your AI agent to the OSC MCP server at https://mcp.osaas.io/mcp and ask it to "Create an instance of Kings and Pigs on Open Source Cloud and give me its URL."

Can I move Kings and Pigs off Open Source Cloud later?

Yes. Kings and Pigs is open source, built from https://github.com/bwallberg/kings-and-pigs-ts, so you can run the same project on your own infrastructure or another cloud and take your data with you.