Giter VIP home page Giter VIP logo

spacedrive's Introduction

SpaceDrive

A space game engine built on top of Panda3D and the Sandbox entity component system library.

Installation

SpaceDrive can be installed via pip. Sandbox (currently) has to be manually installed as well:

pip2 install git+https://github.com/croxis/sandbox.git
pip2 install git+https://github.com/croxis/SpaceDrive.git

Quick Start

To begin using SpaceDrive, import it and initialize with your desired log level. init() must be called before any other systems can be initiated.

import spacedrive

if __name__ == '__main__':
    # Configure any panda prc settings here
    spacedrive.init(log_level='info', window_title='SpaceDrive Demo')
    # Initiate the game loop.
    spacedrive.run()

Use

SpaceDrive is designed with a client-server model in mind. init() accepts run_client and run_server variables. If run_client is set to false SpaceDrive will run in windowless mode.

Features

SpaceDrive comes with a number of built in systems to serve a spaceship game. Features are enabled by calling their respective init functions. Custom systems and the component class they listen for can be passed in the init functions to override default behaviors.

import spacedrive

if __name__ == '__main__':
    # Configure any panda prc settings here
    spacedrive.init(log_level='info', window_title='SpaceDrive Demo')
    
    # Multipass physical based rendering based on Tobias work.
    # To use an alternative render system use spacedrive.init_graphics(system=CustomEntitySystem, CustomComponent) instead
    spacedrive.init_graphics()
    
    # Client netcode system. No default system or component provided (yet)
    spacedrive.init_client(system, component, address, port)
    
    # Server netcode system. No default system or component provided (yet)
    spacedrive.init_server(system, component, address, port)
    
    # Uses cefpython for html/css/javascript gui. This feature is not complete.
    spacedrive.init_gui()
     
    # Implements planet and moon orbit engine. Default provides realistic celestial movement using the 6 kepler variables
    spacedrive.init_orbits()
    
    # Implements ridged body physics using bullet that utilizes a cube grid system. A floating grid similar to CCP EVE Online is also planned.
    spacedrive.init_physics()
    
    # Add a custom SandBox EntitySystem
    spacedrive.init_system(system, component)
    
    # Initiate the game loop.
    spacedrive.run()

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.