
A python game engine for pygame.
- Not very dependant
- Lightweight
- Easy to use
- Not fully featured
- Limited help
$ pip install Pigeon2d$ pip install -U Pigeon2d$ pip install -U pygame# Game
Game(title, GRAVITY, FRICTION, ACCELERATION)
.update(fill)
.config(title, GRAVITY, FRICTION, ACCELERATION)
# Sprite (pygame.sprite.Sprite)
Sprite(surface, image, pos, playerobj)
.move()
.draw()
.config(surface, image, pos, playerobj)
# spritesheet (object)
spritesheet(filename)
.image_at(rectangle, colorkey)
.images_at(rects, colorkey)
.load_strip(rect, image_count, colorkey)
# SpriteStripAnim (object)
SpriteStripAnim(filename, rect, count, colorkey, loop, frames)
.iter()
.next()# import module
import Pigeon2d as p
# initialize Game() object
game = p.Game()
# load image
image = p.resize_image(p.spritesheet("assets/Pigeons/Original Diminsions/Pigeon Sprite Sheet.png").image_at((0, 16, 16, 16)))
# initialize player Sprite() object
player = p.Sprite(game, image, pos=(20, 20))
# game loop
while True:
game.update()pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
Assets were made on itch.io by Pop Shop Packs (https://pop-shop-packs.itch.io/)
Example code by @desvasicek (me) feel free to use it though.
Code by @desvasicek and is registered under the MIT License (Read it here). Spritesheet handling by pygame (https://www.pygame.org/wiki/Spritesheet) adapted to Python 3.9.2 by @desvasicek
|
Des |
|
Des |
- @ahribellah
- @Moosems
- @cergotv12
- @merkfam
To start, create a pull request or ask me to allow you collaboration access
Please create an issue
Please communicate with me

