Skip to content

edgarjcfn/pylearn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pylearn

A game to learn python by typing into a browser-based interpreter

this is a work in progress

Current version uses

Installing

  1. Install Node JS

  2. Checkout this repository with

    git clone https://github.com/edgarjcfn/pylearn.git

  3. At the repository folder, install npm dependencies

    npm install

  4. Still at the repository folder, install bower dependencies

    bower install

  5. Run the local development server with

    grunt dev

After that, point your browser to http://localhost:8081 and you're ready to go

Building levels

  • 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

Contributing

I'm gladly accepting contributions both in code and in art/design. Send Pull Requests!

TODO

  • 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

About

[currently a prototype] A browser-based game to learn programming.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published