TPT in HTML5 Canvas with Javascript

  • webb
    15th Aug 2013 Member 1 Permalink

    Title is self-expanatory. Hypothetically Speaking it shouldn't be to difficult as long as you understand the current code. What are your oppinions?

  • Sylvi
    15th Aug 2013 Moderator 0 Permalink

    @webb (View Post)

     I've wanted to do this, but held off on it. I'm working on a different idea, but it is simple to do. They already have scripts that detect collisions and actual particle physics. I've made a prototype somewhere too, but lost it while transfering files to my new host.

  • webb
    15th Aug 2013 Member 0 Permalink

    @Lockheedmartin (View Post)

     It's a shame you lost your prototype, I too have wanted to do this; however I do not have a great grasp on how TPT works, collision, reactions, etc. I understand, it is the more advanced aspects that I find difficult (Air, heat, gravity, weights)

  • boxmein
    15th Aug 2013 Former Staff 0 Permalink
    One could find asmjs of use in simple calculating functions, to accelerate them to near-native speed.
  • webb
    16th Aug 2013 Member 0 Permalink

    @boxmein (View Post)

     That is an interesting idea!

  • fordcars
    17th Nov 2013 Member 0 Permalink

    Emscripten Power!

     

    I tried compiling Powder Toy in Javascript using Emscripten, but it somehow can't find the header files :/

    Edited once by fordcars. Last: 17th Nov 2013