TypeScript Card Game Engine
A downloadable Download Game Engine
๐ 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
| Published | 1 day ago |
| Status | Released |
| Category | Assets |
| Author | TallenLin |
| Tags | Roguelike, sourcecode, Project template, typescript |
Purchase
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:


Leave a comment
Log in with itch.io to leave a comment.