Inspiration
Vampire slayer
What it does
Dalle-slayer is a vampire survivor clone with auto generated graphics from dalle.
The topics for generation are created from a chatgpt request.
How we built it
Call chat gpt to get genre and characters.
{
"genre": "fantasy",
"randomSnesGame": "Secret of Mana",
"heroType": "Mage",
"enemyType": "Goblin",
"allyType": "Knight",
"enemyExplosionColor": "#FF0000",
"collectableItemType": "Elixir",
"collectItemHexColor": "#7F00FF"
}
Creation of image sprites via dalle. Using masking to cut the size down significantly.
Challenges we ran into
Spent a long time trying to get sprite sheets. Wasn't able to...
Sending dalle a snes title helps align the sprits stylistically
Accomplishments that we're proud of
You can shoot stuff and it goes boom.
What we learned
Limitations of dalle. New minimal game engine.
What's next for dalle-slayer
Probably not much, just a fun PoC
interesting tidbits
- I pass an SNES title for style alignment. This was kind of a /hack/ to make sure the generated sprites artistically align.
- I ask for the genre in the json response to get some /precognition/ from language model so the characters it suggests fit within. I don't actually /use/ it.
- We use a mask in the request against dalle so we don't have to scale down the result. Dalle's minimum size is 256x256 but we want smaller.
Built With
- express.js
- javascript
- pixi.js
- python
- webpack
Log in or sign up for Devpost to join the conversation.