All Projects → Mahi → Ezpygame

Mahi / Ezpygame

Licence: mit
An easier way to use pygame

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Projects that are alternatives of or similar to Ezpygame

Pygame
pygame (the library) is a Free and Open Source python programming language library for making multimedia applications like games built on top of the excellent SDL library. C, Python, Native, OpenGL.
Stars: ✭ 4,164 (+5683.33%)
Mutual labels:  game-development, gamedev, pygame
Game Dogfight
Air to air combat game, created in Python 3 using HARFANG 3D.
Stars: ✭ 41 (-43.06%)
Mutual labels:  game-development, gamedev
Phaser Node Kit
Rapid Game Development with PhaserJS and Node for Modern Browsers
Stars: ✭ 39 (-45.83%)
Mutual labels:  game-development, gamedev
Unity Package Tools
A set of developer tools to make it easier to create and distribute packages for the native Unity Package Manager.
Stars: ✭ 44 (-38.89%)
Mutual labels:  game-development, gamedev
Phaser
Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
Stars: ✭ 30,918 (+42841.67%)
Mutual labels:  game-development, gamedev
Mdframework
A multiplayer C# game framework for Godot 3.2 Mono.
Stars: ✭ 34 (-52.78%)
Mutual labels:  game-development, gamedev
Tank island
Top down 2D shooter game that involves blowing up tanks
Stars: ✭ 42 (-41.67%)
Mutual labels:  game-development, gamedev
Godot Open Rpg
Learn to create turn-based combat with this Open Source RPG demo ⚔
Stars: ✭ 855 (+1087.5%)
Mutual labels:  game-development, gamedev
Magictools
🎮 📝 A list of Game Development resources to make magic happen.
Stars: ✭ 8,853 (+12195.83%)
Mutual labels:  game-development, gamedev
3d Game Shaders For Beginners
🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
Stars: ✭ 11,698 (+16147.22%)
Mutual labels:  game-development, gamedev
Lance
Multiplayer game server based on Node.JS
Stars: ✭ 1,161 (+1512.5%)
Mutual labels:  game-development, gamedev
Space rocks
Asteroids-like game made with Godot Engine 3.0.
Stars: ✭ 20 (-72.22%)
Mutual labels:  game-development, gamedev
Session Seven
Free oldschool point & click graphic adventure game
Stars: ✭ 20 (-72.22%)
Mutual labels:  game-development, gamedev
Scarab
A system to patch your content files.
Stars: ✭ 38 (-47.22%)
Mutual labels:  game-development, gamedev
Beaverandfairies
Stars: ✭ 14 (-80.56%)
Mutual labels:  game-development, gamedev
Simpleton Engine
What a stupid name for a library
Stars: ✭ 42 (-41.67%)
Mutual labels:  game-development, gamedev
Bytepath
A replayable arcade shooter with a focus on build theorycrafting made using Lua and LÖVE.
Stars: ✭ 1,119 (+1454.17%)
Mutual labels:  game-development, gamedev
Awesome Gideros
A curated list of awesome Gideros resources, classes and tips.
Stars: ✭ 17 (-76.39%)
Mutual labels:  game-development, gamedev
Excalibur
🎮 An easy to use 2D HTML5 game engine written in TypeScript
Stars: ✭ 892 (+1138.89%)
Mutual labels:  game-development, gamedev
Pyxel
A retro game engine for Python
Stars: ✭ 9,133 (+12584.72%)
Mutual labels:  game-development, gamedev

EzPyGame

EzPyGame aims to make the usage of pygame easier and more pythonic than before. It implements easy scene management tools and an application class for initializing pygame and running scenes easily.

Installation

pip install ezpygame

Quick start

Create scenes by subclassing ezpygame.Scene and overriding any of the following methods:

  • handle_event(self, event)
  • draw(self, screen)
  • update(self, dt)
  • on_enter(self, previous_scene)
  • on_exit(self, next_scene)

Now create an ezpygame.Application instance and start the execution from any scene:

app = ezpygame.Application(
    title='My First EzPyGame Application!',
    resolution=(1280, 720),
    update_rate=60,
)
main_menu = MenuScene()
app.run(main_menu)

Scenes can be switched by using the Application.change_scene(scene) method:

class Game(Scene):
    ...

    def on_enter(self, previous_scene):
        self.previous_scene = previous_scene

    def update(self, dt):
        self.player.move(dt)
        if self.player.died():
            self.application.change_scene(self.previous_scene)

Reference documentation

With more in-depth guide and examples: https://ezpygame.readthedocs.io/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].