Jump to content

Alpha 20, Call to a non-existant function in the AI


Recommended Posts

Thank you for responding so quickly,

I'm still a beginner with javascript and I'm more accustomed to C and Java so I didn't thought that the function could be writen in another file, my bad.

Thank you again, I'll be more carefull.

Link to comment
Share on other sites

We have a few contexts that are separated (f.e. the GUI js files can't access functions defined in the simulation directly, and the AI is also restricted to its own functions). But apart from that, most functions can be called across files indeed.

JS doesn't care if it's split up in all different files, or if everything is in one file (on the web, everything is often put in one file to reduce the loading time). So we have to put our own meaning into it.

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...