Giter Club home page Giter Club logo

batma's Introduction

Batma 2D

Batma is a pyglet based game engine, inpired by XNA's structure and cocos2d's features. The Batma's goal is provide an intuitive structure for game development and other graphical applications.

Features

  • Automatic import regular image atlas in a list of images
  • Animated Sprites creation from image atlas or gifs
  • Easy-to-use pyglet components, e.g., sprites, texts and resource locations
  • Input state for keyboard and mouse (also inspired by XNA)
  • Primitives drawning (opengl defaults + circle)

Game Workflow

Inspired by XNA, a Batma game follows almost the same structure:

class MyGame(batma.Game):
    def initialize(self):
        """Initializes game components, such screen properties"""
        ...

    def load_content(self):
        """Load game assets, such as sprites, fonts and sound effects"""
        ...

    def update(self, tick):
        """Called each frame, add all the game logic here"""
        ...

    def draw(self):
        """Called each frame to draw sprites and other assert on screen"""
        ...

game = MyGame()
batma.run()

Requirements

  • Python 2.6 or newer; Not tested in 3.x
  • Pyglet 1.1.4 or newer

Installing

Installing from source:

python setup.py install

TODO

  • Sprite Collision
  • Maps
    • Camera
    • TileMap
    • IsometricMap
    • HexMap
  • Particles
    • ParticleEngine
    • Particles
  • GUI
  • Genre specific modules (e.g. rpg, adventure, action, etc...)
  • Scaffolding system called "robi" lol

batma's People

Contributors

renatopp avatar

Watchers

João Baptista Carida Neto avatar James Cloos 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.