• Stars
    star
    573
  • Rank 77,281 (Top 2 %)
  • Language
    Python
  • Created over 11 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

KivEnt is an entity-based game engine for Kivy

KivEnt 3.0

KivEnt is a framework for building performant, dynamic real-time scenes in Kivy for Python2 and Python3. At the moment it is 2d oriented. The only dependency for the kivent_core module is Kivy itself. Additional modules may have other requirements, such as kivent_cymunk module being based on Chipmunk2d and its cymunk wrapper.

An entity-component architecture is used to control game object state and the logic of processing the game objects. This means that your game objects will be made up of collections of independent components that stricly hold data; each component corresponds to a GameSystem that will perform all data processing on the components, in the update loop each frame, and as a result of user interaction or other programmaticaly generated events. All memory for the built-in components is allocated statically: if you would like learn more about memory management, read here.

KivEnt is built with a modular architecture and designed to have both a python api and a c-level cython api that allows more performant access to your game data. This makes it suitable for quickly prototyping a mechanic completely in python, and relatively trivial to then deeply cythonize that GameSystem if you find it to be performance sensitive. This process has already been done for the built-in components meaning they are ready for you to build new, performant game systems on top of them.

Project Website:

http://www.kivent.org

Mailing List:

https://groups.google.com/forum/#!forum/kivent

Documentation:

http://www.kivent.org/docs

Getting Started

Read the introduction on the github wiki.

Dependencies

KivEnt is split into modules, the core module, 'kivent_core', is dependent only on Kivy.

Other modules may have other dependecies, listed here:

kivent_core:

kivent_cymunk:

kivent_particles

kivent_maps

kivent_projectiles

Installation

first install all dependencies then:

cd .../KivEnt/modules/core
python setup.py build_ext install

or

cd .../KivEnt/modules/cymunk
python setup.py build_ext install

If you want to install into a system python on something like ubuntu you may need to:

sudo python setup.py build_ext install

If you would like to instead build the modules in place and use PYTHONPATH to find them:

cd .../KivEnt/modules/core
python setup.py build_ext --inplace
export PYTHONPATH=/path/to/KivEnt/modules/core:$PYTHONPATH 

or:

cd .../KivEnt/modules/cymunk
python setup.py build_ext --inplace
export PYTHONPATH=/path/to/KivEnt/modules/cymunk:$PYTHONPATH 

Windows Kivy Portable Package Installation:

Open the kivy-2.7.bat (kivy-3.4.bat if using the py3 portable package) command console and type:

pip install https://github.com/tito/cymunk/archive/master.zip

Now either download and extract or git clone the KivEnt source:

git clone https://github.com/Kovak/KivEnt.git

Assuming you have KivEnt in the root folder for the portable package, in the kivy-2.7.bat console:

cd KivEnt/modules/core
python setup.py build_ext install
#check core install
cd ../../examples/2_basic_app
python main.py
cd ../../modules/cymunk
python setup.py build_ext install
#check that cymunk install
cd ../../examples/6_controlling_the_viewing_area
python main.py

Tested On:

Tested with master branch. Python 2.7 and Python 3.4.

Tested on Android, Ubuntu, Windows, OSX; iOS coming soon!

Support

If you need assistance, you can ask for help on our mailing list:

We also have an IRC channel:

  • Server : irc.freenode.net
  • Port : 6667, 6697 (SSL only)
  • Channel : #kivy

Contributing

We love pull requests and discussing novel ideas. Check out our contribution guide and feel free to improve KivEnt.

The following mailing list and IRC channel are used exclusively for discussions about developing the Kivy framework and its sister projects:

IRC channel:

  • Server : irc.freenode.net
  • Port : 6667, 6697 (SSL only)
  • Channel : #kivy-dev

License

KivEnt aims to be a full MIT licensed project. At the moment every module is MIT, however this could change in the future. To be sure of the licensing for a module refer to the LICENSE file inside that module.

More Repositories

1

kivy

Open source UI framework written in Python, running on Windows, Linux, macOS, Android and iOS
Python
17,477
star
2

python-for-android

Turn your Python application into an Android APK
Python
8,263
star
3

buildozer

Generic Python packager for Android and iOS
Python
1,708
star
4

plyer

Plyer is a platform-independent Python wrapper for platform-dependent APIs
Python
1,589
star
5

pyjnius

Access Java classes from Python
Python
1,384
star
6

kivy-designer

UI designer for Kivy - DEPRECATED
Python
815
star
7

kivy-ios

Toolchain for compiling Python / Kivy / other libraries for iOS
Python
771
star
8

audiostream

Audio API for streaming raw data to speakers
Python
190
star
9

pyobjus

Access Objective-C classes from Python
Python
177
star
10

kivy-website

Website of kivy.org
HTML
166
star
11

kivy-remote-shell

Remote SSH + Python interactive shell in Kivy
Python
110
star
12

oscpy

An efficient OSC implementation compatible with python2.7 and 3.5+
Python
109
star
13

kivy-launcher

Reboot of the older Kivy launcher
Python
107
star
14

pythonar

python auto reloader
Python
44
star
15

kivy-sdk-packager

Scripts for Kivy SDK generation on Windows, OS X and Linux
Python
38
star
16

kivy-berkelium

Berkelium extension for Kivy - DEPRECATED, use https://github.com/kivy-garden/garden.cefpython instead.
Python
25
star
17

p4a-cloud

Build cloud for Python for android - DEPRECATED
HTML
22
star
18

piki

kivy games for raspberry pi
Python
18
star
19

aprofiler

Simple tool that allow you to emit start/end event, and marks
Python
17
star
20

kivy-server

Docker configuration for the Kivy server
Shell
12
star
21

pycon2013

pycon 2013 kivy presentation
JavaScript
9
star
22

kivy-ideas

Various ideas related to the Kivy project.
9
star
23

condiment

Conditionally include or remove code, according to the environment variables
Python
7
star
24

kivy-translations

This is the repository where Kivy translations are managed - DEPRECATED
Python
7
star
25

plyer_demo

an android app to showcase all plyer features
Python
4
star
26

kivy-design

Graphical elements used by the Kivy Organization
4
star
27

ncis

Python
4
star
28

angle-builder

Build and releases ANGLE binaries for different platforms
Python
4
star
29

ncis-inspector

A Kivy app to interact with the NCIS module in Kivy apps
Python
3
star
30

p4a-pygame-bootstrap-components

The jni components of the python-for-android pygame bootstrap
C
3
star
31

kivy_pong_demo

Demo kivy pong-game app
Python
3
star
32

templates

This is a template repository, supposed to help developers with getting a quick setup of a kivy app repository that uses GitHub actions to build packages for various platforms.
Python
2
star
33

ncis-kivy

an ncis module to inspect kivy applications
Python
1
star
34

ncis-python

Python
1
star
35

kivy-website-docs

1
star
36

mcnotify

GitHub App that comments on predefined issues after certain events
JavaScript
1
star