-
-
Notifications
You must be signed in to change notification settings - Fork 908
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
Artificial intelligence for game development #1164
Comments
This sounds like something we could have as a bridge library, do you know any good Dart packages that could be bundled into this? I only know about the a-star lib. |
I've been looking and can't find anything intended to dart. You could do something similar to what was done with flame_forge2d and box2d. Gdx-ai seems to me to be quite robust. Therefore, if the conversion from java to dart is considered feasible and guidelines are set, the community could collaborate in that regard. |
It is a looot of work to port big java libs to dart, but it can be done, so if anyone does it, I'd be happy to help with the bridge package. |
Well, I think it's wonderful that a line of work could be opened in this regard. |
After an arduous research task I have encountered several problems translating the library from java to dart. I don't know what type of Vector to use. I have seen that the flame-forge2d library uses "vector_math" but I have a problem about how to transcribe ```
since I cannot find
I would also like to know from which library to import a Math class for Math.sqrt. |
For Vector, we use the |
I would need help again. Apologies in advance. If I extend Vector2 (flame / extensions.dart) this class uses a constructor with "factory" so when I transcribe the gdx-ai classes that extend Vector2, it forces me to build with factory. The problem is that I can't call "super" if I build the new class with factory. So I would need some way to make Vector2 not build with "factory" or skip that rule somehow when I create a class that extends Vector2. An example of the problem is observed with the following class: SteerableAdapter or with SteeringBehaviour, which would give the following error if you extend to Vector2: "The unnamed constructor of superclass 'Vector2' (called by the default constructor of 'SteerableAdapter') must be a generative constructor, but factory found." Any help on this? Thanks in advance. |
class MyVector extends Vector2 {
MyVector() : super.zero();
} |
I have made this repository public flame-ai, which is rather an experiment because I don't have much experience. I'm not quite sure how to open a draft pull request, so I apologize, I would need advice on this. At the moment I am working with the steer folder to try to implement Steering Behavior the way it is done in this Pacman project. |
This is actually quite simple. Start making a pull request as usual, then after filling out a form -- instead of pressing the green [Create Pull Request] button, click a small arrow on the right side of that button. This will open a drop-down with the option to create a Draft pull request instead. Also, if you already created a regular PR, it can be converted into a Draft -- just click the "convert to Draft" link in the Reviewers section. |
I don't think we want such an early draft, it will be open for too long. Better discuss it on the other repository first until it is closer to release and then we can go through it and check if it is a package that we can include under the organization (if you'd want it of course). |
Actually I think that maybe a person with a greater technique than me when developing should take a first step in an external repository as Lukas thinks, so that the rest of us can make contributions, suggestions... |
Don't worry Norberto, we'll figure it out. Adding AI capabilities in Flame seem like a very important feature. |
It would be great if flame engine included an artificial intelligence framework such as gdx-ai.
The text was updated successfully, but these errors were encountered: