Comments (3)
I do have this in my plans, like implementing an extension mechanism. Some of my plans are to implement Box2D and Bullet3D extensions to enable physics based games. This is a great idea.
However, I do think that entity and scene system is an essential component. Any game (even card games for example) needs entities, and scenes are like levels. Do you have anything against it or want to implement one yourself? In that case, please create a specific issue on the entity and scene system.
from silenceengine.
The reason why I feel said systems should be optional, is that they don't work in ways that are beneficial to every game. Rather than forcing the extra dead weight for those games, you could just uncheck the box in the creator and not have them included.
from silenceengine.
This is now done, I've added a method SilenceEngine.runOnInit()
which takes callbacks and runs them in the order of addition after the engine has been initialized.
This method adds a callback to be run after the engine is initialized. There can be many callbacks added via this method, and it is guaranteed that they will be called in the order they are added.
SilenceEngine.runOnInit((next) ->
{
// Do the task here. After the task is done, invoke next,
// which tells SilenceEngine that this is done successfully
// and SilenceEngine can call the next on-init callback
next.invoke();
});
Note that this only works if called before the platform specific Runtime is started. To make sure these gets called always, keep the calls to this method in the class initializer or the game's constructor.
Placing these calls in the static constructor will not work on Android, since the activity might not be destroyed from previous run and can cause issues.
I still think that entity and scene system needs to be in the core, and that is how everything (rendering and collision systems) are designed to work with. They are even the same for the card-like games and also dynamic games.
The tiled map package will be moved into a separate extension of course, in the next scheduled release.
from silenceengine.
Related Issues (20)
- Wav file playing incorrect in desktop backend HOT 1
- Use DrawElement with a IntBuffer (transformed in ByteBuffer) for Indexes of element HOT 3
- Streams support HOT 3
- AMD shouts on Pre GL3 shaders in Core profile HOT 1
- Implement model loading API HOT 1
- Issue with parsing APK HOT 13
- Re-Evaluate iOS support HOT 2
- A reasonable way to handle files loading HOT 6
- Source and Javadocs not available HOT 1
- There are any screen of the game editor? HOT 2
- Add error callbacks to all asynchronous methods
- Fix performance issue on DynamicTree2D and DynamicTree3D HOT 1
- Add a dialog system for modal dialogs `prompt`, `alert` and `confirm` in the JS style. HOT 1
- Implement a `FileWriter` for writing to files on Android and LWJGL backends
- Android backend crashes on relaunch
- Implement Preferences API for persistent storage of Key-Value pair objects.
- Creating polygon convex hull from image HOT 1
- Clean SceneGraph and Entity Component API
- Forum is not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from silenceengine.