A HearthStone card maker.
Alpha Version: V0.1.4
English | 中文文档
Note
This repo is in progress, some details will be added in the future.
- 💪 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^_^.
Server required. Download it in v0.0.6 Alpha Release.
-
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
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.
}
What is Koishi? A bot framework for multiple chatting platforms.
Link: Koishi.js
Use Passive Control Server
above for implementation.
Plugin is coming soon.
Play it at:
https://vincent-the-gamer.github.io/cardforge-live-page/
View Changelog: Changelog
PS: Not final.
i18n
is supported now!!
English:
Chinese | English |
---|---|
Chinese | English |
---|---|
Chinese | English |
---|---|
Chinese | English |
---|---|
Chinese | English |
---|---|
Chinese | English |
---|---|