• Stars
    star
    139
  • Rank 262,954 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🗡⚔️ 🛡 Character Playing Card Maker

Note: This project creates custom character cards(like Bang!) based on users' input. It's optimized for Chinese characters, and won't work for western languages out of box. (Might work for Japanese and Korean.) Therefore only Chinese instruction is provided here.

Please let me know if you want other language support.

英雄卡牌生成器

利用HTML+CSS+NodeJS+PhantomJS生成三国杀风格的人物卡牌。

上图中的头像经prisma处理,该项目不包含图片滤镜功能。如果有免费开源滤镜推荐,可以自己集成哦~

使用说明

npm install
node automation.js

把图片和描述人物的JSON文件放到./data/中,图片名字必须与JSON文件中的id相同。可接受图片格式为

  • png/PNG
  • jpg/jpeg/JPG/JPEG

例子

./data/中有zhangsanfeng.jsonzhangsanfeng.jpg。 其中JSON文件内容如下:

{
  "id": "zhangsanfeng",
  "clan": "武当",
  "blood_number": "4",
  "nickname": "一代宗师",
  "name": "张三丰",
  "skills_group": [
    {
      "title": "突袭",
      "description": "摸牌阶段,可以放弃摸牌,然后从至多两名(至少一名)角色的手牌里各抽取一张牌。"
    },
    {
      "title": "铁骑",
      "description": "当使用【杀】指定一名角色为目标后,可以进行判定,若结果为红色,此【杀】不可被闪避。"
    }
  ]
}

Note: skills_group可以省略,详情参考issue #1

FAQ

Q: 会制作一个GUI方便大家使用吗? A: 欢迎PR。

Q: 中文字体能够商用么? A: 可以。

Q: 可以修改主题吗? A: 可以在templates文件夹中建立自己的html template。

打印效果

printed.jpg

License

MIT @CosmoX

More Repositories

1

Lepton

💻 Democratizing Snippet Management (macOS/Win/Linux)
JavaScript
10,156
star
2

vim-cheatsheet

📟 My personal vim cheatsheet
732
star
3

geek-profile

👻 Geek Profile Maker based on Markdown
JavaScript
84
star
4

Fire_Sticker

🍌 "Note it!" project of a published notebook Android App.
Java
31
star
5

pokemongo-map-poc

🎃 POC project for Pokemon Go map
Python
27
star
6

personal-blog

Personal Tech Blog
Shell
16
star
7

awesome-bootstrap

🚀 Awesome bootstrap scripts
Shell
8
star
8

hexo-theme-next-modified

This is a modified hexo theme originally forked from hexo-theme-next
CSS
8
star
9

Lorikeet

File explorer implemented in NW.js and Electron
JavaScript
4
star
10

blockchain-lottery

💰 Simple Lottery Web App based on Ethereum
JavaScript
3
star
11

pokemongo-map-poc-demo

Demo for Pokemongo map
JavaScript
2
star
12

Owls_Eye

Published Android App leveraging Tesseract engine.
Java
1
star
13

blockchain-inbox

💰 Code playground for Solidity
JavaScript
1
star
14

hackjutsu2

1
star
15

blockchain-magpie

JavaScript
1
star
16

BrowserWorkerPlayground

Playground for worker threads in Chrome/Firefox
HTML
1
star
17

myrecipes

A test project for Ruby on Rails
Ruby
1
star
18

memcached-java-demo

Java
1
star
19

RunningInformationAnalysisServiceTA

Running Information Analysis Service, TA版
Java
1
star
20

Demo_HTML-CSS

CSS
1
star
21

SmartSurfing

Rescue ourselves from websites spammed by meaningless words. Be the top 2% 🤬
1
star
22

machine-learning-cousera

Material for machine learning course on Cousera
1
star
23

Cheatsheet

Java
1
star
24

lepton-switcher

npm module to switch between Lepton for GitHub & GitHub Enterprise
JavaScript
1
star
25

QuickShare

Quick sharing
Java
1
star
26

maven-in-action

Maven in Action
Java
1
star