Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin System #86

Open
KilledByAPixel opened this issue Jul 11, 2024 · 10 comments
Open

Plugin System #86

KilledByAPixel opened this issue Jul 11, 2024 · 10 comments

Comments

@KilledByAPixel
Copy link
Owner

KilledByAPixel commented Jul 11, 2024

It would be good to have a plugin system for littles where other components can live that are separate from the core engine.

The medals system, or at least the newgrounds implementation, would be moved to being a plugin.

Other ideas for plugins...

  • Box2d integration
  • 3d rendering system
  • 2d dynamic lighting system
  • post processing effects
  • procedural texture generation
  • AI system
  • multiplayer

Still thinking about the best way to set it up. What plugins would you like to see?

@rishavs
Copy link
Contributor

rishavs commented Jul 13, 2024

camera
Steam Integration
joystick integration

@KilledByAPixel
Copy link
Owner Author

We have joystick integration already, steam would be amazing though!

  • ui framework
  • level editor
  • animation system
  • pathfinding
  • import from popular level editors like Tiled

@thewrath
Copy link

If you give me some guidelines (on the expected result) I can try to work on it.

I could, for example, suggest that i try to re-implement the medal system as a plugin and thus make the necessary extension points appear. 🙂

@KilledByAPixel
Copy link
Owner Author

Thank you, but the main work here is really planning out how to set up the plugin system. I have a rough idea and hope to get to it soon. The medals system is already totally separate from everything else so it should be simple to move it to a plugin

@KilledByAPixel
Copy link
Owner Author

Spine 2d animation tool would be good for a plugin...

Spine Documentation

Also I just added Tiled editor support to the platformer demo, that could also be moved to a plugin eventually.

@KilledByAPixel
Copy link
Owner Author

We could integrate audio convolvers pretty easily as a plugin. This is a good demo...

https://mdn.github.io/voice-change-o-matic/

@KilledByAPixel
Copy link
Owner Author

We now how a plugin system! It is pretty simple, plugins can register for render or update callbacks. We can add more if necessary. I moved newgrounds and post processing to plugins. Also I created Box2D as a plugin.

@hockdudu
Copy link
Contributor

Is it possible for the plugin system to also support ESM integration?

@KilledByAPixel
Copy link
Owner Author

Is it possible for the plugin system to also support ESM integration?

Yes, that is a goal I hope to do soon! I just need to add exports and stuff, the first step was just getting the plugin system started.

@KilledByAPixel
Copy link
Owner Author

a 9 slice object where you can split up a sprite 9 ways to stretch it better.

https://youtu.be/37q-0oS65LY?si=CUDAtTurAVQraxni

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants