PurpleKingdomGames / indigo

An FP game engine for Scala.
https://indigoengine.io/
MIT License
650 stars 60 forks source link

indigo-cli #458

Open davesmith00000 opened 1 year ago

davesmith00000 commented 1 year ago

What I want, is to be able to make single scala-cli script indigo games and run them straight from the command line.

I was thinking about this today and I reckon this is very achievable.

So then we just need to mechanism to generate all the files the indigo sbt and Mill plugins use to create browser, electron, and cordova games. :thinking:

Happily! All of that is already available in a Scala 2.12/2.13 library called indigo-plugin, which is the backbone of the sbt and Mill implementations.

So all we need (I think) is a scala-cli script that imports that lib, handles commandline prompts, and generates the right files in the right place. And also ideally runs the game via electron if so desired.

Sounds like a fun little project. :smile:

davesmith00000 commented 1 year ago

I'm dropping this from the scope of the 0.15.0 release.

I'm keen to see this one happen but I've raised an issue with scala-cli that isn't a blocker, but made me re-evaluate whether this should really hold up a release, and it shouldn't. Very much a nice-to-have.