Thanks for the idea about Perl/Tk and NetLogo.

The thing is... if this was just for a regular encapsulated simuation program, I would have used C++, I think. And that's what I was planning to do last year.

But I'm trying to approach this type of program from another angle now. My idea is (and it's not original,) that I have a MySQL database that holds all my program's environment variables, character variables, etc. I would be using Perl just to run the simulation (but with no graphical output using the Perl script itself.) The simulation is only run once a day for a fixed length of time.

The simulation would then output all that has happened in this program's world, events, etc. into a XML or other data type of file. Then, this is read into another Perl script that converts the actions that took place into a flash movie using SWF/Ming. The movie is exported, saved, and then I can view all that took place in a web browser.

I don't like Flash, but after looking at Java/applets for doing real graphics programming viewable in web browsers... it seems like the majority of the internet world is using Flash for graphics lately. SO, SWF/Ming looks like what I would need. The only thing is, confining a regular programming language (like Perl) with Flash/Actionscript, one can only do so much.

The reason I would even use Perl is just because of its availability on the server where I'm running all of this.

The point is, it doesn't matter how fast the simulation runs because it's only generated a specific times and then outputted to a .swf file that takes care of the rest. But maybe this all isn't very possible... though it's something I'd like to try.

In reply to Re^2: Game Events and Scripting by bladx
in thread Game Events and Scripting by bladx

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.