Coder Social home page Coder Social logo

fredkiss3 / kge Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 0.0 89.47 MB

A Game Engine Written in Python

Home Page: https://kge.readthedocs.io/fr/latest/

License: Creative Commons Zero v1.0 Universal

Python 100.00%
game-engine pyglet 2d-games python python-game-developpers python-game-engine

kge's Introduction

KISS GAME ENGINE

Documentation

KISS GAME ENGINE (kge) is a 2D Game Engine written in Python, running in Python and For Python Game Developers.

Its intend is to provide python game developers with an easy API to learn to build their own 2D games and provide the possibility to write from little to very big games.

It is built on top of the pyglet library for rendering, and a python version of the great physics engine Box2D. So you can expect it to be of top quality.

If you have any issue you can add an issue to the repository. The community will be very pleased to help.

Requirements

kge runs only under python 3.7 only in windows. So only python is required.

Installation

kge can be installed from PyPI:

pip install --upgrade --user kge

Installation from source

If you're reading this README from a source distribution, you can install kge with:

python -m pip install .

Getting started

To get started to create your first scene, add an image named player.png to your game folder and start with the code :

import kge
from kge import *

class Player(Sprite):
    def on_update(self, event: kge.events.Update, dispatch):
        self.position += Vector.Right() * event.delta_time

def setup(scene: Scene):
    scene.add(Player(image='player.png'))

kge.run(setup)

Get Involved

The fastest way to get involved is to check out the ongoing discussions. If you're already using kge feel free to report bugs, suggest enhancements, or ask for new features.

If you want to contribute code, definitely read the relavant portions of Contributing.MD

Kiss Game Engine Design Principles

The engine uses Event System to run almost everything in the game. you can see it from the method on_update in the code above. you will notice further that every event of the engine has the same signature i.e on_event_name(self, event_type, dispatch_function). to see all of the events available checkout the List of events.

We want our users to start really easily on making game so each of the functions, constants and classes are available on the top level module, no need to to import manually all of the stuff like :

from kge import Vector

v = Vector.Left()

Instead you can use directly with :

from kge import *

v = Vector.Left()

Kiss Game Engine RoadMap

So far we have done :

Our next functionnalities we are excited to give the users are :

  • A Particle System
  • Light System
  • Editor
  • Simple way of saving advancement
  • Joystick Management

kge's People

Contributors

fredkiss3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

kge's Issues

Improving docs

I am not really good at writing, so i might as well ask you, the community to help me write a good documentation.

Thanks for advance for you help.

Editor

Right now, if you want to write a game in KGE , you would do it all in code. So we should give our users a better way to do it with just the least amount of code.

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.