DGSpitzer

LD 38

Go for it!~

As a solo developer from China, Let's do it!

Upload is really a thing in China

暴风截图2017424478562203.jpg

It took 2 hours to be done.... Finally!

*Here is my game "Song of Fungus": * https://ldjam.com/events/ludum-dare/38/song-of-fungus

YEAH !!! Rating!!!!!

giphy.gif

Finally! * *Play my game "Song of Fungus" here: https://ldjam.com/events/ludum-dare/38/song-of-fungus * Puzzle game about mushrooms! Can you beat the 15 levels??

I'll play your games too! Just let me know in the comment.

Ludum Dare 49

Feed Human with your AI Helpers!~

1.gif

Welcome to play our game! Your goal is to feed the astronauts before they become angry! * The game link is here: https://ldjam.com/events/ludum-dare/49/vintage-space-restaurant-with-ai

WeChat Image_20211004183011.jpg

Ludum Dare 51

*Become* an artist for 10 second with Machine Learning AI?

Try out our game with AI !!

https://ldjam.com/events/ludum-dare/51/10-second-magic-paintbrush

Just draw a simple scribble, you can get this:

AIGalleryPainting-2022-10-04_11-41-12-2.png

We deployed a GPU server to let AI help with your creation!~

A painter girl with canvas

You can draw your own scribbles in our game!

https://ldjam.com/events/ludum-dare/51/10-second-magic-paintbrush

Wanna to share some AI generated results that inspired us for our game during development (didn't use them in the game though)

Tweaking quite a lot in the prompts to get results like this!

00678-2211509046-portrait of an ancient young cute ((artist girl )) with Magic Paintbrush, a illustration , two canvas on the right bottom corner-gigapixel-art-scale-2_00x.png

00082-2807304859-an ancient young cute messy and dirty girl with The Magic Paintbrush, watercolor, a illustration , two canvas on the right botto-gigapixel-art-scale-2_00x.png

00068-1647170629-an ancient cute young slovenly girl with The Magic Paintbrush, watercolor-gigapixel-art-scale-2_00x.png

00116-3265197272-an ancient young cute homeless ((artist girl )) with The Magic Paintbrush, a illustration , two canvas on the right bottom corne-gigapixel-art-scale-2_00x.png

00085-3453409140-an ancient young cute messy and dirty girl with The Magic Paintbrush, a illustration , two canvas on the right bottom corner , w-gigapixel-art-scale-2_00x.png

Our Journey about adapting AI into our game - Postmortem

Play our game here:

https://ldjam.com/events/ludum-dare/51/10-second-magic-paintbrush

51c8f.jpg

Hello this is DGSpitzer, I’m the programmer from the team who made 10-Second Magic Artist in LLD 51. Today I want to introduce the tech pipeline and design process we used!

The Original Idea

When we saw the theme “Every 10 seconds”, a lot of different game ideas actually came up during our brainstorm session quite easily. However, most of the ideas are still a bit cliche, or maybe not funny/innovative/theme-oriented enough, as a result we arranged another brainstorm meeting the next day to filter up ideas and to get more discussion around the theme. We always want to find an innovative way to utilize cutting-edge technology into our game. As for myself, I’ve been trying out a lot of different approaches to do AI painting recently. Here is one of the animation video I made with Disco Diffusion AI:

https://www.youtube.com/watch?v=qM0BD2fzyBA

Among all of our ideas, an AI painting game design popped up on our idea ranking list eventually: Let the player scrabble following the NPC clients’ orders, and the NPCs’ demand will rapidly change every 10 seconds. We’ll use AI backend such as Stable Diffusion etc. to convert the player's input scrabble painting with img2img technology, alongside the text prompts created by the NPCs to generate a fancy artwork together! It would be a pretty good way to showcase the boost AI technology could have for human creators, and how it could make everybody’s imagination become true.

523df.png

Initial Test

Will the result be good? We did a quick test during the brainstorm session, our team members drew one or two very rough sketch in couple seconds by following random prompt sentences being given:

I quickly convert those sketch use Stable Diffusion WebUI:

WeChat Image_20221001125845.png

The result looks pretty promising to us, so we decide it’s a go!

Deployment

I had no experience of deploying a GPU backend or setting up a server - the only similar thing I did before is using Microsoft Playfab to create a simple online leaderboard / inventory system. Therefore it’s quite challenging for me to do it, especially in 72 hours! I dug into the Internet to see what I can do about it… Currently there are several ways to get a GPU server very easily , such as renting a GPU through vast.ai / AWS / Azure etc., or directly using an official API from DreamStudio or other AI drawing platform, in the end considering both my budget, customized ability and convenience, I decide to use banana dev to host a serverless GPU backend.

WeChat Image_20221021134246.png

By default banana does give a one click deploy button for Stable Diffusion AI, however it only supports the txt2img function, it can’t achieve what we want to do in the development. Eventually I used this open source project as a base template to modify: https://github.com/sahil280114/stable-diffusion-inpainting-template/

By modifying it and deploying it through github to the serverless server, we can finally let AI convert! I faced some obstacles during the deployment process though, e.g. I used a customized template, seems like we need to change sanic==22.6.2 in requirement.txt during installation, otherwise the latest sanic version will crash the server side and create a failure deployment, also the log system in banana was not responsive somehow during the game jam, I need to use a temp beta log url for debugging. Each back and forth deployment will take me 1 hour to debug, kinda time consuming in my opinion (but fun to play with).

WeChat Image_20221001225303.png

Unity Front End

For the front end, since the template only has a Python frontend, I need to write my own front end in Unity for sending and receiving data from our remote GPU. Fortunately it does support RestAPI with endpoint https://api.banana.dev/start/v4 The basic RestAPI from banana looks like this:

1.png

Additionally, the connection will be held for up to 50s waiting for the output from AI, if times out, I need to use another endpoint https://api.banana.dev/check/v4 with task Call ID from returned json to receive the output.

Normally the inference process from our GPU API is relatively fast (≈4s each output paintings). However, another issue is, our server will shut down if it is idle for a couple seconds, and the next player has to wait 50-70 seconds for the server to warm up and be available again. I then did a trick in our Unity front end, whenever the game starts and timer starts ticking, the game will keep sending an empty request to our API each 20s and let the server start warming up. By the time the players finish and submit their drawings, the API should be ready to use, and after the scene switch animation (5s), our players will get their AI generated artworks immediately in no time!

AIGalleryPainting-2022-10-05_16-18-56-s.png

In the end, that’s how we create the smooth experience for dynamic AI generation in our game!

Would you like to know more? You can try the game out

https://ldjam.com/events/ludum-dare/51/10-second-magic-paintbrush

Ludum Dare 52

Shout Your Way to Victory! Use Microphone to Shake Apples Off ~

ezgif-2-54615392f9.gif

PLAY at HERE :arrow_down:

https://helixngc7293.itch.io/harvest-roar

Are you ready for a unique gaming experience? Look no further than our new harvest adventure game! Join our lovable rabbit and cute forest guardian as you collect apples from the trees using the power of your voice. Control the action by shouting out to shake down the apples and use your pitch to bounce them higher in the air. Don't forget to use the arrow keys to guide your rabbit through the forest as you catch the falling fruit!

Ludum Dare 53

Finicky Delivery AI - ChatGPT Powers This Game!

PLAY OUR GAME HERE

https://ldjam.com/events/ludum-dare/53/finicky-delivery-ai-chatgpt-powers-this-game

59e11.jpg

Online Leaderboard! Earning the most tips money from picky AI customers!

Current Top 10:

WeChat Image_202305020051463.png

Drawing Process of Our Cute Animals~

Play the game at here ##

https://ldjam.com/events/ludum-dare/53/finicky-delivery-ai-chatgpt-powers-this-game

Just want to share how we drew the the cute animals, hope you love it! https://youtu.be/zm7Sq4xSGn4

500+ Players on Our Game Leaderboard!

Play the game at here ##

https://ldjam.com/events/ludum-dare/53/finicky-delivery-ai-chatgpt-powers-this-game

Our game got more than 500 players on our leaderboard of tips!

The No.1 player got $582 tips from our cute AI animal customers UwU

You can try it out by yourself as well!

Homepage2-Small.jpg

3-Small.jpg

Ludum Dare 56

Become a lab rat... Or... Confess your love to the researchers??

20241010-044708.jpg As a lab rat that can communicate with human researchers using brain signals, how about confess your love to them? No worries, with this brainwave combo you can achieve it! (It means "ME" "WANT" "TO" "DATE" "YOU") 20241010-044537.jpg

PLAY OUR GAME HERE!

https://helixngc7293.itch.io/cheese-or-squeeze-emoji-vs-ai

66e02.png

A game about learning a new language... As a lab hamster!

PLAY OUR GAME HERE!

https://helixngc7293.itch.io/cheese-or-squeeze-emoji-vs-ai

1008 pt3.gif

This first-of-its-kind game is all about the fascinating process of learning a "new language". It inviting players to master communication from scratch. Dive into the challenge of deciphering a completely new linguistic system and unlock the secrets of language in a fun, interactive way!