• Lucid Dreaming - Dream Views




    Results 1 to 7 of 7

    Threaded View

    1. #1
      Christian youssarian's Avatar
      Join Date
      Dec 2007
      Gender
      Location
      Independence, Kansas
      Posts
      441
      Likes
      41

      Pass Variables Between JavaScript and C++/Python?

      I've been using these languages for quite some time now. I want to apply my skills by making a browser-based JavaScript game, albeit probably a simple one to start off with, but I want to be able to save the data (like any modern game has). Unless I'm mistaken, PHP is a server-side language that wouldn't save data on the player's machine. JavaScript has the FileScriptObject as part of the ActiveX, but I think I should stay away from that since it's proprietary and won't work in some browsers.

      So without learning any new languages, I figure my best options are C++ and Python. But, how can I pass data from JavaScript code to a C++ or Python program?

      Thanks!

      (Addition: I'm also pretty good in PHP, too)
      Last edited by youssarian; 12-14-2009 at 05:25 AM.
      Learn the art of lucid dreaming in a whole new way!
      LD Count: 37 (35 DILD, 2 DEILD)

      Hey Newbies! Did you read the main pages and the tutorials? It will help you immensely.

      Zenventive: art, health, philosophy
      You are dreaming!

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •