SFML community forums

General => SFML projects => Topic started by: mrzo on December 19, 2021, 09:36:52 pm

Title: A.I. Chatbot + 2D space exploration game!
Post by: mrzo on December 19, 2021, 09:36:52 pm
Hey SFML fellows,

So I love space exploration games (first thing I tried with SFML was an asteroid shooter)! But space is big - so sometimes it is a little bit boring to fly through or to do the daily trading grind all by yourself. That's how I came up with the idea of an A.I. assistant who gives you some company. Her name is Hopper. She is not the smartest conversational android out there but at least she knows how to steer a space ship.

The game is called Black Sun and it will take some time before I can put it in a polished-enough state to release it in Early Access but I am already very excited to share this trailer with you:

http://www.youtube.com/watch?v=oBjvcstFTqQ

The libraries I use are:

You can follow the development of the game on steam (https://store.steampowered.com/app/1670930/Black_Sun/ (https://store.steampowered.com/app/1670930/Black_Sun/)) or on twitter, youtube or soundcloud (https://linktr.ee/blacksungame (https://linktr.ee/blacksungame)).

Take care and if you have any questions, feel free to ask :)
Title: Re: I combined a A.I. Chatbot with a 2D exploration game!
Post by: eXpl0it3r on December 20, 2021, 09:12:24 am
That's a really cool idea! :)
I always wondered how an adventure game would look like with an AI

Is the response time from the "AI" really as fast as in the trailer?
Title: Re: I combined a A.I. Chatbot with a 2D exploration game!
Post by: mrzo on December 20, 2021, 12:14:18 pm
It is actually almost instant so I had to add a small delay to make it more "human-like" :)

It's quite fast because a neural network translates the input string into a fixed size vector which is compared with an existing database of vectors of other pre-translated semantic patterns. This allows me to cover many different wordings of the same commands (e.g. the vectors for "Repair the ship" and "Fix the damage please" are quite similar). When finding a similar pattern, I can simply return its recorded response or call its attached action.

The database currently contains around 10k pairs of patterns and responses / actions. But even with 1M of patterns there shouldn't be any problem with the performance since it is a simple cosine similarity calculation :)
Title: Re: I combined a A.I. Chatbot with a 2D exploration game!
Post by: mrzo on January 19, 2022, 12:40:52 pm
I added a fast dynamic grid so I can finally resolve collisions between hundreds of asteroids.

https://www.youtube.com/watch?v=KXx_vg3Y-xQ (https://www.youtube.com/watch?v=KXx_vg3Y-xQ)
Title: Re: A.I. Chatbot + 2D space exploration game!
Post by: mrzo on January 29, 2022, 01:40:41 am
Some people asked me on other channels how the actual gameplay looks like so I made an extra trailer showing it.

https://www.youtube.com/watch?v=sKnqTd7yUWY (https://www.youtube.com/watch?v=sKnqTd7yUWY)

In general, you can decide how to steer your space ship: completely by yourself or by using the A.I. assistant. The same is valid for combat. You can ask the A.I. to take over the weapons and put it either in defensive mode (only firing at hostile missiles) or aggressive mode (attacking hostile ships directly). Or - if you feel like it - you can take control of the guns and fire at your will.
Title: Re: A.I. Chatbot + 2D space exploration game!
Post by: mrzo on June 11, 2022, 05:44:46 pm
Some updates on the development:


If you want to see some screenshots, you can have a look here:
https://imgur.com/gallery/7vOOrfb (https://imgur.com/gallery/7vOOrfb)

Or you can visit the steam page:
https://store.steampowered.com/app/1670930/Black_Sun/?utm_source=sfml
Title: Re: A.I. Chatbot + 2D space exploration game!
Post by: eXpl0it3r on June 11, 2022, 10:33:54 pm
Oh, I like the new screenshots :)
Title: Re: A.I. Chatbot + 2D space exploration game!
Post by: mrzo on February 26, 2024, 07:53:52 pm
Hi there!  :)

Finally, I finished working on my demo for this game. Quick recap: in this 2D-space game, you fly a space ship and follow a cinematic story line. Your sidekick is an A.I. chatbot who understands your text written commands and helps you throughout the game.

The demo might take 20-30 minutes to finish depending on your skill level. If you want, you can continue to play afterwards and explore more of the world.

This game is for people who like to play other space games such as Escape Velocity or Endless Sky and love text adventures.

If you have a Windows 10 PC and would like to try it out, leave me a DM and I'll send a steam key to you.
Title: Re: A.I. Chatbot + 2D space exploration game!
Post by: mrzo on March 07, 2024, 12:03:45 am
A fellow game developer playtested my game and made a small video about it.

You can check out his stream here: https://youtu.be/xxczdSH5L7o?t=21 (https://youtu.be/xxczdSH5L7o?t=21)

He mentioned a few important points about that my steam page not really told him what the game was about.
I will address this by making new trailers and better screenshots in the next weeks. Overall I am super happy with this experience since it was my first public playtesting. The streamer gave a lot of tips and helpful feedback to me. He is an awesome guy, check him out if you are also interested in getting your game playtested!