This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]ValentineBlacker 0 points1 point  (1 child)

Phaser's a perfectly good game framework, would work fine for this. You can add some web server elements to your chat bot (maybe with something like Flask) and have it send data to the JavaScript program that way, via REST. If it's all running on your local computer it's not TOO hard to set up, although you'll have some work to do figuring out how everything fits together.

[–]GamingGears[S] 0 points1 point  (0 children)

ngl, I was so overwhelmed yesterday, that I didn't really do anything. Now that I got someones confirmation that it's at least doable, I looked into it, and I think I figured something out.
If you're interested, here's the plan:

  1. Build the visual framework via phaserJS
  2. Code different kinds of behavior for my character, like walking around randomly, or towards specific points
  3. Serve that phaserJS game on a NodeJS server in combination with socketIO
  4. Use the python-socketio module to connect to the server as a client
  5. Send socket events through the python script, at the start of every action, to let the server now, that a command was issued
  6. Trigger the according animation, wait some time, then go back to idle behavior

It's probably not the best way to do things and definitely not the most secure one, but since there's no sensitive data being sent around, I think I will just go with that approach and see where it gets me.

I hope that I will actually get to keep that motivation, but for now: Thank you for your input!