Original TPT code

  • GAPDaTsar
    4th Sep 2014 Member 0 Permalink

    I was just wondering what the original code of the very first powder toy looked like so I can make my own physics/chemistry simulator.  So I just wanted a file of the original game/code.  Thx.  :)

  • jacob1
    5th Sep 2014 Developer 0 Permalink
    You can find some old source zip files here: https://powdertoy.co.uk/Download/Older.html OR on github here: https://github.com/simtr/The-Powder-Toy/tree/legacy

    I would recommend looking the old c source from version 83 (second link) though, has all the improvements we made over the years (things like update functions, can_move, not having everything in powder.c). The original source from Skylark does have a lot of good ideas but might be hard to read and also is just bad in some places (could be more efficient)
  • GAPDaTsar
    5th Sep 2014 Member 0 Permalink

    @jacob1 (View Post)

     So I got the earliest verson of TPT but there is no code!  Just a TPT.exe.

  • jacob1
    5th Sep 2014 Developer 1 Permalink
    @GAPDaTsar (View Post)
    get one labeled -src
  • GAPDaTsar
    6th Sep 2014 Member 0 Permalink

    Ah, okay.  Exactly, what is this md5 file?  What's it used for?  @jacob1 (View Post)

    Edited 2 times by GAPDaTsar. Last: 6th Sep 2014
  • jacob1
    6th Sep 2014 Developer 1 Permalink
    It can be used to make sure you downloaded the file correctly, but you can just ignore it.
  • GAPDaTsar
    6th Sep 2014 Member 0 Permalink

    @jacob1 (View Post)

     Ah, okay, and the fbi and font files are for what?  Lots and lots of hex apperently.

  • jacob1
    6th Sep 2014 Developer 0 Permalink
    Oh, you are talking about the source. md5.c is used when sending your password to the server so it's not just plaintext. fbi.h is a useless fbi logo that used to be displayed when you started TPT that says something about "don't do drugs". font.h contains the font of course :P, it's all in hex so not readable.
  • GAPDaTsar
    6th Sep 2014 Member 0 Permalink

    @jacob1 (View Post)

     Ah, thx.  :)