Jump to content

Develop a new AI


JuKu96
 Share

Recommended Posts

If i want to develop an new AI, how must i do this?

I have seen your little documentation at http://trac.wildfiregames.com, but how can i add the AI to the game?

I added an directory simulation/ai/myAI in the directory mods and added a data.json, but why does the game not load the AI, if i want to create a new game?

EDIT: It works!

Edited by JuKu96
Link to comment
Share on other sites

You can do something like this:

var data = new Uint8ClampedArray(width * height);Engine.DumpImage(filename, data, width, height, 255); // writes png

or print(sometext) and capture that output from StdOut on Linux or dbgView on Windows.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...