Simple to learn games library for people new to Python, as seen at Coder Dojo, STEM school visits and for Plumpton Geek Club
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
drawing
examples
geekclub
howto
images
my_work
pijukebox
proto
text
.gitignore
LICENSE
README.md

README.md

geekclub: Scratch style programming in Python

An attempt to make Scratch style programming in Python possible -- in response to the question: "What shall I try after Scratch". Inspired by MIT Scratch: http://scratch.mit.edu/

I'm aiming for a suite of libraries that:

  • Makes it easy to get visual or audio effects
  • Gives immediate results (like Scratch does), type some commands, press run, see results
  • Runs easily on the Raspberry Pi
  • Runs easily on Windows PCs in schools, to support my STEM Ambassador work
  • Has depth with plenty to explore.

Screen shots

boulder screen shot

pong screen shot

fractal trees screen shot

Prerequesites

  • Python 3
  • A working tkinter library

Get the code

You can use git or download a zip file of the code:

git clone https://github.com/ericclack/geekclub.git

Examples

Start up idle3 and create a new file, save it to the directory my_work, then add the following code...

import sys; sys.path.append('..')
from geekclub.pyscratch import *
  
create_canvas()
sprite = ImageSprite('my_images/face.gif')
sprite.pen_down()

def move_sprite(event):
    sprite.move(10,10)

when_key_pressed('<space>', move_sprite)
mainloop()

Documentation

Check out the examples directory. You should be able to run the code straight from that directory.

Have a look at the wiki to get started. There's some basic documentation for the geekclub module or you can view the source code.