makeopensource / Classic-RPG

A classic role-playing game with an engine.
GNU General Public License v3.0
7 stars 19 forks source link

Click CLI #74

Open emilkovacev opened 2 years ago

emilkovacev commented 2 years ago

Is your feature request related to a problem? Please describe.

We want an easy way to run the game without pre-built python files (that can be packaged and distributed easily)

Describe the solution you'd like

We can create a CLI using the Click library. This would allow us to create a cli called (let's say) $ crpg. When run without arguments, it would open up some sort of input to start a game file. Otherwise, we could call $ crpg --file="mygame.dl" that would start the specific game. We could also use this to control different features and options down the line.

Example:

$ crpg
> Welcome to Classic RPG
> What is your name?
>

Describe alternatives you've considered

The alternative is what we have now, which requires having a separate file for the .dl file to run. Instead, a CLI would make it so that once you install the CLI, you can run the game with just a .dl file.

Additional context

N/A