Giter Club home page Giter Club logo

arkanoid's Introduction

Arkanoid

Build Status

I decided I would have a go at building a game using Python and pygame, and I chose the 1980's arcade classic, Arkanoid.

I've always enjoyed breakout-type games which are addictive and satisfying to play, and Arkanoid with its varying brick layouts, powerups and enemies adds some extra fun and depth to both the gameplay and code design.

Being new to pygame, I started out by reading the tutorials, one of which helpfully uses Pong as an example. This enabled me to get a headstart with the basic paddle and ball concepts which I was then able to build upon.

This implementation of Arkanoid is still work in progress. The following sequences of the first 4 levels give you an idea of how it looks.

Start

Start

Round 1

Round 1

Round 2

Round 2

Round 3

Round 3

Round 4

Round 4

Installation

Arkanoid runs on Python 3 and requires pygame, plus a few system-wide dependencies.

On Ubuntu 16.04

Install virtualenv if not already installed:

sudo apt install virtualenv

Create a virtualenv, with python 3 as the default python version:

virtualenv -p /usr/bin/python3 environments/arkanoid

Activate the virtualenv:

source environments/arkanoid/bin/activate

Install the system-wide dependencies for python3-dev:

sudo apt install python3-dev

Install the system-wide build dependencies for pygame:

sudo apt build-dep python-pygame

NOTE: If the above command generates a message saying E: You must put some 'source' URIs in your sources.list, then edit /etc/apt/sources.list and uncomment the lines that start deb-src. Save the file, then run sudo apt update. Now re-run the previous "build-dep" command.

Install other system-wide dependencies:

sudo apt install libfreetype6-dev mercurial

(mercurial is needed for building pygame from source)

Clone the arkanoid project:

git clone https://github.com/wkeeling/arkanoid.git

Install the project specific dependencies (will build pygame from source):

cd arkanoid; pip install -r requirements.txt

Run the game:

python arkanoid.py

Use the left and right arrow keys to control the paddle, and the spacebar to fire the laser and release caught balls.

Credits

Author

Will Keeling

arkanoid's People

Contributors

wkeeling avatar robesantoro avatar

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.