Skip to content

Vincent-the-gamer/cardforge

Repository files navigation

cardforge

CardForge

A HearthStone card maker.

Alpha Version: V0.1.4

English | 中文文档

Note

This repo is in progress, some details will be added in the future.

Features

  • 💪 Real-time card part switching --- Card is built by tiny parts instead of pre-exported pictures.
  • 🌏 i18n --- multi-language support.
  • 👀 Keep Newest --- Sync with latest version of HearthStone game.
  • 😁 High Similarity --- try my best to make the cards look like those in game.
  • 🆒 Passive Control --- call websocket server to control your web page, then get your picture^_^.

Feature Details

Passive Control

Server required. Download it in v0.0.6 Alpha Release.

How to use Passive Control Server

  • Download.

  • Run!

    # Run at default port 8081
    ./cardforge-passive-server
    cardforge-passive-server.exe
    
    # Run at custom port
    ./cardforge-passive-server 9000
    cardforge-passive-server.exe 9000

Demo

Send JSON message to websocket server to control your webpage. (Please do not close your webpage.)

🚧 Warning: 🚧 the card face picture will have a fixed position and size in Passive Control Mode , so please adjust picture yourselves.

Using this data structure to control the page.

PS: you shouldn't bring the comments while sending message to server.(JSON doesn't allow comments).

{
    "language": "en",
    "cardType": "spell",
    "classType": "dual",
    "cardClass": "mage",    // Only work while classType === "single"
    "leftClass": "warrior", // Only work while classType === "dual"
    "rightClass": "hunter", // Only work while classType === "dual"
    "rarity": "rare",
    "name": "Test",
    "kindType": "dual",
    "cardKind": "kind",  // Only work while cardKind === "single"
    "upKind": "kind1",   // Only work while cardKind === "dual"
    "downKind": "kind2", // Only work while cardKind === "dual"
    "description": "**Battlecry**: Testing.",
    "watermark": "year-of-the-wolf",
    "desFontSize": 20,
    "cost": 3,
    "vitality": 3, // Work in Minion, Battleground Minion, Hero(armor), Weapon(durability), Location(durability)
    "armor": 3,  // Alias of vitality on Hero Cards
    "durability": 3, // Alias of vitality on Weapon Cards/Location Cards
    "cardFaceUrl": "https://image-static.segmentfault.com/596/308/596308474-6389c86c5126c_cover" // web picture is available.
}

passive-control-demo

Interact with Koishi Plugin

What is Koishi? A bot framework for multiple chatting platforms.

Link: Koishi.js

Use Passive Control Server above for implementation.

cardforge-koishi

Plugin is coming soon.

Play

Play it at:

https://vincent-the-gamer.github.io/cardforge-live-page/

Changelog

View Changelog: Changelog

Preview

PS: Not final.

UI

i18n is supported now!!

English:

preview

Simplified Chinese(简体中文): preview-cn

Minion

Chinese English
minion-zh minion-en

Spell

Chinese English
spell-zh spell-en

Weapon

Chinese English
weapon-zh weapon-en

Battlegrounds Minion

Chinese English
battlegrounds-zh battlegrounds-en

Hero

Chinese English
hero-zh hero-en

Location

Chinese English
hero-zh hero-en

License

MIT