Coder Social home page Coder Social logo

lsd's Introduction

LSD

Layer on top of PySDL2 to interace with SDL2 in a more 'object oriented' or 'pythonic' way, while maintaining its flexibility. The module has been written in Python 2 but should be Python 3 ready. Documentation and API descriptions will follow when the module has matured a bit more. For now, the test files in the main folder give the best example of how this module can be used.

Installation

A setup.py will soon follow. To use LSD, you need to have installed both the pysdl2 module and the SDL2 libraries

PySDL2

Installing pysdl2 is the same for every OS. Simply use pip!:

pip install pysdl2

You can do this even before you have installed the SDL2 libraries themselves.

SDL2

Linux (Ubuntu)

In linux it's very easy to compile all SDL2 libraries yourself, but if you are using Ubuntu or one of its varieties, it's of course even easier to use the repositories

sudo apt-get install libsdl2-2.0-0 libsdl2-gfx-1.0-0 libsdl2-ttf-2.0-0 libsdl2-image-2.0-0 libsdl2-mixer-2.0-0 libsdl2-net-2.0-0

OS X

The easiest way is to use Homebrew

brew update
brew install sdl2 sdl2_gfx sdl2_ttf sdl2_mixer sdl2_net sdl2_image

Windows

As often, Windows is the problem child a bit. It is a bit more troublesome to get SDL2 work, but once you get that far, it works really well! You need to get the SDL2 DLL files from the appropriate sites and place them in a folder on your system. Then you will need to create and environment variable called "PYSDL2_DLL_PATH" that points to this folder. I plan on including the relevant SDL2 DLL's with future releases of this module.

lsd's People

Contributors

dschreij avatar

Stargazers

 avatar  avatar

Watchers

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