A game to learn python by typing into a browser-based interpreter
- Typescript - Strongly typed language that compiles to Javascript
- Skulpt - Browser-based python compiler and interpreter
- Phaser - HTML5 game framework.
- Phaser Isometric Plugin - By @lewster32
- Ace - In-browse code editor
- Tiles from OpenGameArt.Org
- Character Sprites from Rener's Tile Sets
- Sweet Alert - Beautiful dialogs
-
Install Node JS
-
Checkout this repository with
git clone https://github.com/edgarjcfn/pylearn.git
-
At the repository folder, install npm dependencies
npm install
-
Still at the repository folder, install bower dependencies
bower install
-
Run the local development server with
grunt dev
After that, point your browser to http://localhost:8081
and you're ready to go
- See the files at
pylearn/dev/game/assets/levels
- Include your own files that define levels
- Include your level names (in order) at the top of
pylearn/dev/game/states/preloader.ts
- Reload your browser and play your levels.
At the moment the only objective type is to capture all treasure chests with the char.pickUp()
python function. In the future I intend to add more objective types
I'm gladly accepting contributions both in code and in art/design. Send Pull Requests!
- Migrate to Typescript
- Implement Level Loading
- Implement Level Progression (instructions, win/lose)
- Load supporting python file with initial code for each level
- Add a Restart (Reset) button
- Make page look nicer
- Make game look nicer
- Add more objective types