A downloadable Download Game Engine

Buy Now$14.99 USD or more

 ๐Ÿƒ TypeScript Card Game Engine (Roguelike Ready)

 ๐Ÿ›‘ Stop rewriting the wheel. Start designing your game today.

Building a card game backend is tough. You have to handle deck shuffling, turn phases, status effect stacking, damage calculation, and the hardest part—**saving and loading state**.

I spent months building a robust, type-safe architecture so you don't have to.

This is a **Headless Engine (Logic Only)**. It provides the pure, bug-free TypeScript core you need to build the next *Slay the Spire* or *Hearthstone* using **React, Vue, Unity, or Phaser**.

---

## ๐Ÿ“ธ See the Logic in Action



> *Caption: Actual output showing the engine handling a full battle loop, including complex buff calculations and automatic save/load state restoration.*

---

## โœจ Why Buy This Engine?

* **๐Ÿ’ฐ Save 100+ Hours:** Skip the boring architectural setup and jump straight to card design.

* **๐Ÿ›ก๏ธ 100% Type-Safe:** Built with strict TypeScript. Enjoy full IntelliSense and catch bugs before they happen.

* **๐Ÿ’พ Save/Load Included:** The serialization system is already built-in. Just call `saveState()` and `loadState()`.

* **๐Ÿงช Complex Buff System:** Supports stacking buffs (Strength), timed debuffs (Poison), and event-driven relics.

---

## ๐Ÿ“ฆ What's Inside?

When you purchase, you get the complete **Source Code** (no compiled garbage, just clean `.ts` files):

* โœ… **Battle Core:** Turn management & Phase control.

* โœ… **Deck System:** Draw, Discard, Exhaust, Auto-Reshuffle.

* โœ… **Card Loader:** JSON-based card definition with ID registration.

* โœ… **Event System:** A powerful Pub/Sub system for advanced interactions.

* โœ… **Examples:** Fully runnable demo scripts to help you learn fast.

---

## ๐Ÿ’ป Code Preview

Look how easy it is to define a card and start a battle:

```typescript

// 1. Define a Card

const strike = new Card({

    id: 'strike', 

    name: 'Strike',

    type: CardType.ATTACK,

    cost: 1,

    effects: [{ type: 'damage', value: 6 }]

});

CardLoader.register(strike); 

// 2. Start Battle

const battle = new BattleEngine(player, [enemy]);

battle.startBattle();

// 3. Play & Save

battle.playCard('strike', 'enemy1');

const saveJson = battle.saveState(); // Done!

โš ๏ธ Important Note

  • This is a HEADLESS engine (Code / Script).
  • It does NOT include UI, graphics, animations, or Unity scenes.
  • You need basic knowledge of TypeScript / JavaScript to use this.


If you have any questions, feel free to contact me.email:a3283249@gmail.com

Purchase

Buy Now$14.99 USD or more

In order to download this Download Game Engine you must purchase it at or above the minimum price of $14.99 USD. You will get access to the following files:

CardGameEngine_v1.0.zip 106 kB

Leave a comment

Log in with itch.io to leave a comment.