Silicon Toy - The Powder Toy silicon emulator for Windows Mobile

  • bchandark
    26th Jul 2010 Member 0 Permalink
    ief015
    Simon
    Oh, I didn't realize ief015 was writing his own code. My bad.
  • ief015
    26th Jul 2010 Former Staff 0 Permalink
    vsams14
    You can always look at Powder Toy's code for reference. I did it with Silicon Toy. (Kinda had to if I was going to emulate it)
    Also, FYI; Silicon Toy has no movement. It's all fixed blocks/particles.
  • vsams14
    26th Jul 2010 Member 0 Permalink
    did you directly make silicon toy for WM or did you make it for pc, then comple it for WM? I am guessing that the thing that is slowing my game down the most is the way that it drwas to the screen, but I don't know how pt draws to the screen so it's not much help...
  • vsams14
    26th Jul 2010 Member 0 Permalink
    also, if you wrote it in C#, did you use a form, or a blank project, or what? In fact, could I help? i already have some experiance in this area, and I know how to write in C#, so yeah. either way, i would be very greatful if you let me see your code, i wont giv it to anyone, just for programming sake. and if you want me to help you, or even if you dont need help, I could still speed up the rate at which it is being made! anyways, let me know!

    thanks!
  • ief015
    26th Jul 2010 Former Staff 0 Permalink
    I'm remaking Silicon Toy for PC, with a Screensaver application that will scroll through your silicon toy saves and perform diagram testing, going to try and make some pretty graphics for it too.
    I'm using a console application for the PC version, in WM, it is Windows Forms application.
    For the pc, I'm using SFML, which works very similar to SDL.

    If you really want, you can look at the main engine code: http://pastebin.com/Y5wBxBGT
    Like I said, pretty similar to Powder Toy.

    Take a look at line 14:
    if (pmap[y, x].type == P_NONE) { goto x_cont; } //acts as "continue" in a a for loop

    You'll see that, when silicon toy is going through all the particles, if it comes across a P_NONE (empty particle), it will skip the logic, and it will skip the drawing, instantly going to the next particle.

    (It looks a little confusing, since I'm using while() statements instead of for. This is because I want the first iteration to scan particles from top-left, to bottom-right -- and on the second iteration, it will scan from bottom-right to top-left, it's a work around for a little bug)
  • vsams14
    26th Jul 2010 Member 0 Permalink
    meh, i am mad at c based coding languages! i really don't like them because I dont know them too well, vb is so much nicer to understand just by glancing at it!
  • vsams14
    26th Jul 2010 Member 0 Permalink
    do you think you could take a look at my code and see what i am doing wrong?
  • ButtsexV2
    26th Jul 2010 Member 0 Permalink
    ief015:
    Just FYI;

    .NET = Microsoft

    don't forget that there is a Mono implementation for Android.
  • satibel
    26th Jan 2014 Member 0 Permalink

    hello I still have a Wm 6 phone, found this interesting aaaaand the website is dead :/
    could someone who still has this re-upload it somewhere?

  • ief015
    27th Jan 2014 Former Staff 0 Permalink