-
Notifications
You must be signed in to change notification settings - Fork 3
Customizing MiniAdventure
#Customizing MiniAdventure
The main point of the design of MiniAdventure is so that other people can tell their own stories on the Pebble. All I ask is that if you do publish your own app, please include a link back to the main MiniAdventure repository in your app store description.
###Overview
- Fork the repository
- Download to a local PC
- Run init_new_project.py
- Using the Story format, design your adventure
- Add any necessary art
- If you have access to the Pebble SDK locally, run "pebble build", which will automatically process your data and art and create the pbw.
- If you want to compile with Cloudpebble, run process_stories.py and check in. You can then import to Cloudpebble to do the build step.
###Details
-
Fork the repository
- Make an account on github.com.
- Go to MiniAdventure.
- Click on the word "Fork" in the upper right corner of the page. This creates your own working copy of the repository.
-
Download to a local PC
- Go to your fork of the repository. It should have a URL like https://github.com/username/MiniAdventure
- There should be a "Download Zip" button, and next to that, a link to open the repository in Github desktop. If you are comfortable with the command-line tool, feel free to use that.
-
Run init_new_project.py
- This requires python installed locally. If you don't have it, install python.
- I have tested on Windows and Mac. I have also tested on both Python 2.7.10 and Python 3.5.1.
- In a command prompt from your MiniAdventure main directory, run "python dev_tools\init_new_project.py <author> <shortname> <longname>", eg. "python dev_tools\init_new_project.py Me Quest MyQuest".
- This will update src_data/base-appinfo.json with your project information, as well as generate a new uuid for the project.
- This requires python installed locally. If you don't have it, install python.
-
Using the Story format, design your adventure
- This is, of course, the tricky bit. At this point, the story format is still very basic. To get a sense of what additional features I intend to add, check out the issues page.
- Once you have designed your skills, monsters, classes, and locations and created a <story>.json file. Put it in src_data/stories.
- src_data/stories.txt should include a list of all the stories you want included in your app.
-
Add any necessary art
- Make art for each monster and location.
- These pieces should be 80x80 and included in src_data/images. For now, I have been unable to get MiniAdventure small enough to run on Aplite devices, so you only need to create color images. I will keep trying, though.
- They should be referred to by name in the story json file.
- Make art for each monster and location.
-
Build your pbw file with one of the following options:
-
(Option 1) If you have access to the Pebble SDK locally, run "pebble build", which will automatically process your data and art and create the pbw.
- If necessary, install the SDK.
- From the MiniAdventure main directory, run "pebble build".
- Running "pebble build" locally will automatically run process_stories.py. This generates the binary story files, copies all necessary resources, including art, to the resources directory. In addition, it creates the appinfo.json file which will be used by the pebble build step.
- The generated pbw will be in the the build directory.
-
(Option 2) If you want to compile with Cloudpebble, run process_stories.py and check in. You can then import to Cloudpebble to do the build step.
- Run "python dev_tools\process_stories.py". This will generate the binary story files, copy all resources in the resources directory and create the appinfo.json file.
- Commit this change to github.
- Make an account on Cloudpebble.
- Click the "Import" button and fill in the options to import your project from Github.
- Click compilation in the menu on the left side of the screen, and click "Run Build"
- You can then use the emulators to test your app, or download the pbw for publishing.
-
-
For instructions on submitting your app to the Pebble app store, see "Pebble Appstore Publishing".