GithubHelp home page GithubHelp logo

indigoparadox / circuitpython-stage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from python-ugame/circuitpython-stage

0.0 1.0 0.0 479 KB

A tile and sprite engine for CircuitPython.

License: MIT License

Python 100.00%
embedded circuitpython

circuitpython-stage's Introduction

Stage โ€“ a Tile and Sprite Engine

Stage is a library that lets you display tile grids and sprites on SPI-based RGB displays in CircuitPython. It is mostly made with video games in mind, but it can be useful in making any kind of graphical user interface too.

For performance reasons, a part of this library has been written in C and has to be compiled as part of the CircuitPython firmware as the _stage module. For memory saving reasons, it's best if this library is also included in the firmware, as a frozen module.

API Reference

The API reference is available at http://circuitpython-stage.readthedocs.io.

stage

.. automodule:: stage
   :members:


ugame

.. module:: ugame

.. data:: display

    An initialized display, that can be used for creating Stage objects.

.. data:: buttons

    An instance of ``GamePad`` or other similar class, that has a
    ``get_pressed`` method for retrieving a bit mask of pressed buttons. That
    value can be then checked with & operator against the constants: ``K_UP``,
    ``K_DOWN``, ``K_LEFT``, ``K_RIGHT``, ``K_X``, ``K_O`` and on some platforms
    also: ``K_START`` and ``K_SELECT``.

.. data:: audio

    And instance of the ``Audio`` or other similar class, that has ``play``,
    ``stop`` and ``mute`` methods.

circuitpython-stage's People

Contributors

cwalther avatar deshipu avatar foamyguy avatar hexthat avatar

Watchers

 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.