dzoba / gptrpg

A demo of an GPT-based agent existing in an RPG-like environment
983 stars 108 forks source link

chore: typescript migration #13

Open joshuafsharp opened 1 year ago

joshuafsharp commented 1 year ago

Wondering if you're keen on getting type safety in this project, as mentioned in the following issue: https://github.com/dzoba/gptrpg/issues/11

I've been working on updates in my fork, so happy to share the changes I've made to use Typescript. I tried to make the minimal changes possible to add Typescript support, so the functionality should be equivalent to the latest commit on main.

The only other change I made is to simplify the phaser client initialisation with typescript. There's a MainScene class containing all the preload, create and update functions, which is supplied to the Phaser config.

jit-ci[bot] commented 1 year ago

Hi, I’m Jit, a friendly security platform designed to help developers build secure applications from day zero with an MVS (Minimal viable security) mindset.

In case there are security findings, they will be communicated to you as a comment inside the PR.

Hope you’ll enjoy using Jit.

Questions? Comments? Want to learn more? Get in touch with us.

dzoba commented 1 year ago

Thanks for this! I will review.