Settings

Theme

Show HN: Fantasy trading card game with AI-generated character arts

etheroes.io

6 points by nerf0 5 years ago · 11 comments

Reader

nerf0OP 5 years ago

Hi HN:

This is a fun project I've been working on recently. The idea of the cards started when I saw how an AI could generate realistic portraits of people. I tried to apply similar techniques to generating fantasy characters, and got amazing results.

The next 2 weeks were spent on designing the card assets, hero traits and descriptions. I borrowed some ideas from D&D (attribute points and alignment). Also threw in a random name generator, of which the names were scraped all over the internet.

Once I had the card assets, the rest all fell in place. It was obvious that the Ethereum blockchain was the best market place for such a collectible game. I spent the next 2 weeks writing the smart contract (based on ERC 721) and various pieces to support trading on the site. Fun fact: ETH price took off right before I was ready to deploy the contract on the mainnet. Due to high gas price, I had to spent a fortune... not fun!

I had a lot of fun working on it. Let me know if you have any questions.

  • webmaven 5 years ago

    > This is a fun project I've been working on recently. The idea of the cards started when I saw how an AI could generate realistic portraits of people. I tried to apply similar techniques to generating fantasy characters, and got amazing results.

    Can you share a bit more about the art generation? Are you using StyleGAN or some other architecture? Are you hand-selecting the art from among generated images? What training dataset did you use or create?

    • nerf0OP 5 years ago

      Sure! I'm using a network very similar to StyleGAN. After generating a batch, I review the images and weed out maybe 10% of the really bad ones. I was actually surprised at how well it worked.

      For training, I spent a lot of time scraping images. I couldn't find any good dataset for this purpose. Controlling for quality is pretty tough, and I didn't spend nearly as much time as I should. And it's evident in the result. Some of the generated arts have pretty low pixel quality if you look at the original image. Luckily, it looks ok on the cards.

  • webmaven 5 years ago

    I understand the mechanisms for claiming or buying/selling unique cards to build a collection, but what are the rules for actually playing a game with the cards you've got?

    • nerf0OP 5 years ago

      Not much right now, but see https://etheroes.io/roadmap

      • webmaven 5 years ago

        I saw that page, but it doesn't mention anything about actually playing a game with these cards.

        "Leveling" and "skills" are game mechanics, true, but what are the rules? You must have something in mind. Right now I have no idea even if the intent is solo play, 2-player, or more. Much less whether it's cooperative or competitive, deck building or engine-building or just tactical, and so on. How about whether there are going to be other (possibly a non-collectible core set) card types?

russdpale 5 years ago

This is cool, but should be on an L2 solution, not the main evm.

  • nerf0OP 5 years ago

    You are probably right. I'm familiar with how Lightning network works in bitcoin, but not super familiar with L2 in ethereum. Do you have some pointers that I can read? I'm also interested in how it'll evolve with ETH 2.

    • russdpale 5 years ago

      Im not totally convinced that eth2 will provide lower gas fee's.. It's just a hunch, but it could be like how building more high way lanes just causes more traffic, so they never really alleviate congestion.

      With that said, some of the l2 on ethereum is quite promising. I personally like xDai, though it is still in beta it has quite a few projects on top of it, I might use it for a few idea's I have as well. https://www.xdaichain.com/

      zkRollups are also super promising. These guys look promising: https://zksync.io/

      Anyways, I really like the idea. As a gan artist myself, I have had a similar idea, but more revolving around real life sports athletes.. problem is copyright would bite me in the ass real hard.

Cyber_squad 5 years ago

Isn't it possible to download just the character face? I really would like to have a generator for my dnd story

  • qwerty456127 5 years ago

    And I want the name generator. IMHO a name generator like this should be built in every system that requires you to choose a username. Perhaps an IDE should also have it and let you generate temporary names (for projects and, perhaps, for classes too) you can auto-refactor once you actually write some code.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection