-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new feat(util): can launch embedded demo from cmd line
- Loading branch information
Showing
5 changed files
with
43 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
""" | ||
The following module implements the command line that becomes available, | ||
once the user has installed pyved-engine locally... | ||
After installation, for example you can type: | ||
"pyvedengine test chess" | ||
To run the embedded demo named chess | ||
Embedded demos: | ||
- chess | ||
- bullethell | ||
- rogue | ||
""" | ||
|
||
# TODO the command isnt working as expected, need to work more on that part! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
from .emb_demos import my_demo1 | ||
|
||
|
||
def main(): # parse sub commands? TODO | ||
# - print version | ||
from pyved_engine.__version__ import ENGI_VERSION | ||
print("version is", ENGI_VERSION) | ||
command_test() | ||
|
||
|
||
def command_test(): | ||
my_demo1.run() |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
def run(): | ||
print("yop") |