Block instantiation

  • FrankBro
    29th Jul 2010 Former Staff 0 Permalink
    My guess is this would be pretty hard to achieve but here I go ..

    A way to transform copied block into a smaller block, with inputs and outputs. That block would be of a smaller size than the actual creation in that block and, if double clicked, would open in a pop-up to show what is inside of it. The application of this is mostly to create electronic parts, to make big projects more possible.

    It's the principle of the object oriented programming, copied blocks would be seen as objects and loaded. While I know ANSI-C doesn't have OOP, I think it would be pretty useful. (might create lag tho)

    What you think?
  • triclops200
    29th Jul 2010 Former Staff 0 Permalink
    cool, but almost impossible
  • um3k
    29th Jul 2010 Member 0 Permalink
    Awesome idea, but probably a little too advanced for The Powder Toy.
  • FrankBro
    29th Jul 2010 Former Staff 0 Permalink
    If any of you ever worked with labview, that feature is in. Labview is a graphical programming language and you can create blocks with inputs and outputs.

    Yea I know it would be hard to do it. The thing is I'm addicted with the electronic part of powder toy and the screen is never big enough :P

    I was thinking about doing a electronic simulator with python and pygame but I have no idea how to propagate electricity in the wires, I'll have to look in powder game's code.
  • triclops200
    29th Jul 2010 Former Staff 0 Permalink
    in order for it to run, you would have to add pixel space which, assuming we could get it working, would consume so much systems resources it would run too slow to be fun. it's not possible
  • triclops200
    29th Jul 2010 Former Staff 0 Permalink
    and btw look up yenka, it's free to use at home and it is a perfect electricity simulator.
  • FrankBro
    29th Jul 2010 Former Staff 0 Permalink
    Yea, I already have a lot of real electric simulator at my university already. I'm more looking for a game-type simulator, like powder toy.
  • FrankBro
    29th Jul 2010 Former Staff 0 Permalink
    just wondering triclops200, or anyone. Can you explain how the electricity is propagating in the wires in powder toy? Programming-wise.

    EDIT: I guess instead of high-jacking my own thread, I will ask in another thread.
  • ssc4k
    29th Jul 2010 Member 0 Permalink
    FrankBro:
    If any of you ever worked with labview, that feature is in.

    I love labview :p but that's different type of thing in this case. When you put a block of code containing more blocks of code int the program to the computer it's no different if you put the blocks in 1 by 1, it sees it the same reading it while the powder toy would have to see it differently then it normally does. While not impossible to code as you said not easy . I like the idea a lot and I think great things could come out of it but I don't think we will be seeing it in the game :/
  • Rconover
    29th Jul 2010 Member 0 Permalink
    *deleted for inappropriate content*