shawn42 / gamebox

A game template for building and distributing Gosu apps.
267 stars 29 forks source link

gamebox CLI made a bit more friendly #81

Closed tanema closed 11 years ago

tanema commented 11 years ago

Hey I am not sure how much of this you will like or not so I will explain my reasoning for everything

I have updated the gamebox cli so it has more function and could be easier for beginners here is the interface so far

  gamebox d                                # starts the application in debug
  gamebox debug                            # starts the application in debug
  gamebox dist [mac|linux|win|all]         # Build an executable for your app
  gamebox g [actor|behavior|stage]         # Gamebox generator, this will generate templated files for you for quicker development
  gamebox generate [actor|behavior|stage]  # Gamebox generator, this will generate templated files for you for quicker development
  gamebox help [TASK]                      # Describe available tasks or one specific task
  gamebox n PATH                           # Generates a new gamebox game at PATH.
  gamebox new PATH                         # Generates a new gamebox game at PATH.
  gamebox s                                # starts the application
  gamebox start                            # starts the application

What was done

src
  |__app.rb
  |__actors
  |    |__player_actor.rb
  |__behaviors
  |    |__.gitkeep
  |__stages
       |__demo_stage.rb

this allows for cleaner organization

All tests pass, although I don't see any tests for the CLI so I might have to implement them.

Hope you like it, cheers!

shawn42 commented 11 years ago

I tried this out in your branch, and it looks great. I'm not sure that I like all the actor files called blah_actor; other than that, thanks for the nice additions to gamebox.