Giter VIP home page Giter VIP logo

asteroids's Introduction

RiceRocks Asteroids

This game is the python3.3 + pyglet version of the final miniproject of the coursera's "An Introduction to Interactive Programming in Python" [0] RiceRocks.

Install

It requires pyglet 1.2beta, available at the moment only from the pyglet repository

It should be easy to port to python 2.7 and pyglet 1.1.4 paying attention to 'super()' class methods invocation and integer/float divisions.

If you have troubles installing python3 + pyglet have a look at my blog post [1] about some issues you could find in doing it.

The Code

If you have troubles understanding the code I strongly suggest to have a look at the gorgeous asteroid pyglet tutorial from Steve Johnson [2], it provides a walkthrough in approaching pyglet and the asteroid game. When you finish his tutorial you can come back and have another look at this version which is more advanced since it uses the Object Oriented paradigm a bit more.

The gameplay is exactly the same as described in coursera miniproject assignement but shares virtually no verbatim code with the version I made from the course (it is a rewrite from scratch), so it should not help you a lot in future runs of the same course.

This code is meant as a demo of various concepts you can find in a game and is meant to help people from the course go on in writing python games out of Codeskulptor[3] in-browser python interpreter towards real python.

Feel free to fork and improve the code, if you manage do play with it, be sure to tell me about your version, I'm interestend in suggestions/improvements.

The license for my code is BSD, if you need another licensing, just ask, there should be no problems.

Game art is created by Kim Lathrop, may be freely re-used in non-commercial projects, please credit Kim. (Sort of CC-BY-NC IMHO, but IANAL!)

If you need an art repository you could look at Open Game Art project [4]

Future

I will probably fork this code and add interesting libraries for games like pymunk and lepton in order to have a more complete introduction to python games development.

Thanks.

Links

asteroids's People

Contributors

mammadori avatar

Watchers

 avatar

Forkers

notgitter

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.