Skip to content

Usonaki/bacon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bacon

Bacon is a Python package for making 2D games that run on Windows and OS X. It provides functions for drawing graphics, playing sounds, and receiving input from the mouse, keyboard and game controllers.

Here is a simple example of a complete Bacon game::

import bacon

kitten = bacon.Image('res/kitten.png')

bacon.window.width = 512
bacon.window.height = 512

class Game(bacon.Game):
    def on_tick(self):
        bacon.clear(0, 0, 0, 1)
        bacon.draw_image(kitten, 0, 0)
        
bacon.run(Game())

See the documentation for more examples.

Getting started

Bacon requires:

  • Python 2.7 (32 or 64-bit) or later, or
  • Python 3.3 (32 or 64-bit) or later

and either

  • Windows Vista or later, or
  • Mac OS X 10.6 or later

Download the latest release from PyPI as a .zip archive -- including prebuilt binaries, source and example code. Alternatively, install the latest version into your current environment with:

$ pip install -U bacon

Documentation

Documentation is hosted online at

Get in touch

Bacon is developed by Alex Holkner (alex.holkner@gmail.com). Drop me a line if you have any feedback or need support.

About

Python 2D game engine

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 72.7%
  • C++ 22.2%
  • Perl 2.6%
  • Python 1.4%
  • Objective-C 0.4%
  • Bison 0.3%
  • Other 0.4%