Giter VIP home page Giter VIP logo

pixelation's Introduction

P I X E L A T I O N

Pixelation

This is a simple retro-style game where you have a hero which roams around and tries to avoid getting hit by raging clouds. If you get hit by the cloud, your score goes down, however, if you actually manage to hit the cloud with the laser beam, you will get awarded with points. Be sure to time the laser beam properly since there is a short delay before being able to reuse it again.

Note that everything in the game is built manually using pixels. Therefore, every tiny particle has its own coordinates and could be manipulated directly. This flexibility, however, comes with the price which is hard work for calculating various measures of moving objects such as the width of cloud.

The game is implemented using retro game engine for Python called Pyxel. For more information, see https://github.com/kitao/pyxel

Running The Game

You will need to install (if not installed) Python 3, Pyxel, and, depending on the operating system, some other additional libraries.

Windows

$ pip install pyxel==0.8.0
$ git clone https://github.com/oniani/pixelation.git
$ cd pixelation
$ python3 pixelation.py

macOS

$ brew install python3 sdl2 sdl2_image
$ pip3 install pyxel==0.8.0
$ git clone https://github.com/oniani/pixelation.git
$ cd pixelation
$ python3 pixelation.py

Ubuntu / Debian

$ sudo apt install python3 python3-pip libsdl2-dev libsdl2-image-dev
$ sudo pip3 install pyxel==0.8.0
$ git clone https://github.com/oniani/pixelation.git
$ cd pixelation
$ python3 pixelation.py

Controls

Key Action
Enter Start The Game
P Pause/Resume The Game
Q Quit The Game
Space Shoot The Laser Beam
Up Arrow Jump
Left Arrow Move Left
Right Arrow Move Right
W Jump
A Move Left
D Move Right

License

MIT License

pixelation's People

Contributors

oniani avatar

Watchers

 avatar  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.