Coder Social home page Coder Social logo

bevy_modding_experiment's Introduction

Bevy Modding Experiment

This project demonstrates a simple approach to adding modding capabilities to a Bevy game, inspired by bevy_dynamic_plugin.

Limitations

  • Both the main application and plugins must use the same Bevy version and dynamically link Bevy using the bevy/dynamic_linking feature.
  • Components intended for use by plugins must reside in a separate dynamic library (dylib) crate and should not be subdirectory of the main application (?).
  • No WASM
  • Unsafe Code

Getting Started

To run the project, follow these steps:

git clone https://github.com/goktug97/bevy_modding_experiment
cd bevy_modding_experiment/plugin
cargo build --release
cd ../bevy_modding
cargo run --release

How It Works

  • Main Application: The core application initializes a scene featuring a camera and a stationary circle. It dynamically loads the plugin shared library using libloading. Then it calls the setup function, passing a mutable reference to the App instance (&mut App). This function is a required implementation within the plugin.

  • Plugin: The plugin is responsible for implementing the setup function. In this example, the plugin adds a system to move the circle.

bevy_modding_experiment's People

Contributors

goktug97 avatar

Stargazers

 avatar

Watchers

 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.