Coder Social home page Coder Social logo

wynand1004 / simplepythongamelibrary Goto Github PK

View Code? Open in Web Editor NEW
22.0 17.0 14.0 987 KB

SPGL is a simple Python game library / framework for creating 2D games. It is built on the Python Turtle module and is compatible with Python 2.x and 3.x.

License: GNU General Public License v3.0

Python 100.00%
2d-game beginner-friendly pygame-alternative python-3 python-2 game-programming python-game-library

simplepythongamelibrary's Introduction

SPGL (Version 0.8.6)

Overview:

The purpose of the Simple Python Game Library is to give beginning Python coders a simple framework to make basic 2D games. It is intended as an alternative to Pygame. As it is built on the Turtle module, it has the same features and limitations of that module. It does not require any external libraries to be added.

Design Principles

  • Use only standard modules
  • Python 2.x and 3.x compatibility
  • Cross-platform (Linux, Mac, and Windows)

Getting Started

Download the repository to your computer. There are 2 demo files, SPGL_Demo.py which is a simple game using primitives (squares, triangles, arrows, and circles). Use the arrow keys to control the player. There is also SPGL_Minimal_Example.py which contains a simple game framework which will create a window - use this as the basis of your own programs.

Performance

On my Linux machine, I can easily get 100 sprites moving around the screen at 30 frames per second. See the SPGL_Demo2.py program for an example.

Known Issues

  • Image files need to be in .gif format. This is a limitation of the turtle module.

  • Sound files should be in .wav format for widest compatibility. Compatibility with other formats (.ogg, .mp3, etc.) will vary widely based on the operating system and installed codecs.

Documentation

  • Available on the Wiki

Connect with Me

simplepythongamelibrary's People

Contributors

wynand1004 avatar

Stargazers

 avatar Mouseroot avatar  avatar Aqila Hamizan avatar Alex Helton avatar Su Min avatar birb_tactician avatar  avatar  avatar Prasenjit Kumar avatar  avatar Mark Kooijman avatar Rafa avatar  avatar Carlos Eugenio Torres avatar Ewen Domeon avatar rockycape avatar Bruce Frick avatar  avatar Casey Knauss avatar Horst JENS avatar  avatar

Watchers

Adam Morris avatar  avatar  avatar Matt avatar  avatar  avatar Sage Delio (née Fremont) avatar  avatar 18hoeryung31 avatar  avatar  avatar  avatar  avatar  avatar  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.