TPT in HTML (Concept)

  • 2015
    20th Feb 2015 Member 0 Permalink

    wow that is cool, are you planing to add other elements?

    @china-richway2 (View Post)

     

  • io
    20th Feb 2015 Member 0 Permalink

    TPT may be compiled with emenscripten(https://github.com/kripken/emscripten)

  • jacob1
    20th Feb 2015 Developer 2 Permalink
    @io (View Post)
    Doxin did that once :D http://www.superdoxin.com/static/webtpt/

    I tried doing it myself but couldn't make it work, his version has an annoying color bug which I know how to fix. Threads don't work though, which means turning on Newtonian Gravity or going into the save browser will just crash it. I guess some alternative would need to be made.

    This game here is a separate web game inspired by TPT, it could work out very nicely with more work. Just needs way more elements and a nice UI :P
    Edited once by jacob1. Last: 20th Feb 2015
  • Schicko
    21st Feb 2015 Member 0 Permalink

    @jacob1 (View Post)

     Wow, that is amazing! Someone should tell @Simon to integrate it to the site!

     

    It's a shame that it's really slow though. What's causing the lag though anyways? Is TPT code just not optimized well in javascript form? Can this be remedied?

  • jacob1
    21st Feb 2015 Developer 1 Permalink
    @Schicko (View Post)
    Actually, it's amazing that it runs that fast, not that it's that slow. c++ compiles into native code on your computer, it can be heavily optimized. Javascript is interpreted by your browser (isn't in assembly). So nothing is causing any lag, it's just running as fast as it can. It's definitely playable on my computer.
  • io
    21st Feb 2015 Member 0 Permalink

    I wold like to know how it can run in node-webkit...

  • Box-Poorsoft
    21st Feb 2015 Banned 0 Permalink
    This post is hidden because the user is banned
  • china-richway2
    21st Feb 2015 Member 0 Permalink

    @Lord_Bowserinator (View Post)

     I already realized the first problem. You can look at my code, when drawing and erasing it will calculate the line between two points and try to draw/erase on each pixel of the line. However while erasing the code didn't work. I don't know how to fix it yet. I am working on adding the ability to show the cursor size now.

    Edited 2 times by china-richway2. Last: 21st Feb 2015
  • io
    21st Feb 2015 Member 0 Permalink

    Could you use tpt icon at powderot.co.uk/favicon.ico ? Also... Superdoxin version running over node-webkit(win32): _

  • china-richway2
    21st Feb 2015 Member 0 Permalink

    @io (View Post)

     This is my own server and it has other uses, so I will not use that favicon.ico.

     

    @jacob1 (View Post)

     That one is amazing, but the code is completely unreadable. :) why not delete the login part, install, save browsers etc, make it a preview version of TPT and, if possible, ask Simon to upload it to the official site.

     

    I just found that when I move my mouse to the bottom of the canvas, mousemove() is not triggered. However the menus are drawn there correctly. This is very confusing. Can anyone help me out and tell me why?

    Edited once by china-richway2. Last: 21st Feb 2015