Quantum "uncertainty"

  • Videogamer555
    28th Dec 2011 Member 0 Permalink
    I have just made a quantum "uncertainty" effect on a massive scale. Every particle of a given element, (PLSM in this case) will randomly jump around the screen when it is present. With. So draw a 16x16 box of PLSM and there will be a total of 256 particles of plasma jumping around the screen randomly (only in unused pixels though, so they never "replace" a pixel of another element). If any PLSM particle is adjacent to another particle it will imediately cause damage to that particle if it is heat sensitive. Even have one particle of PLSM doing "quantum teleportation" like this, and a small block of wood, and usually in less than 1 second the random jumps of the PLSM will bring it into contact with the wood and set fire to it (not to mention that if the FIRE from the burning wood gets hot enough it will become PLSM and then do the same thing in a catestrophic chain reaction). It will then continue jumping around causing more damage. So if you have placed 5 pixels of PLSM, there will always be 5 pixels of PLSM at any given time on the screen, just at random locations. If the random jump attempts to place it where there is another particle (regardless if it is ontop of itself, on top of another particle of the same type, or on top of a particle of another type altogether) it will not cause a teleportation, but instead will wait till the next frame and attempt again. For small numbers of on screen particles, the probability of landing on something else is small, so teleporations happen once every frame. For simulations with lots of "stuff" or if I've placed lots of PLSM, then it's likely to land on something else, so most PLSM particles would attempt to land on something else, and therefore my script prevents them from moving in that frame, and it will try again next frame.

    This is an extremely powerful Lua addition to PLSM, making it an extremely dangerous weapon. It will by random jumping penetrate even the most heavilly fortified bunker and destroy it. from the inside, having never actually punched a hole in the wall of the bunker. I've layed wasted to Super Bunker II using this powerful form of PLSM.

    Here's the code for it.

    math.randomseed(os.time())
    function test_update(i, x, y, s, n)
    randx=math.random(4,607)
    randy=math.random(4,379)
    if tpt.get_property("type",randx,randy) == 0 then
    tpt.delete(i)
    tpt.create(randx,randy,"plsm")
    end
    end
    tpt.element_func(test_update, tpt.el.plsm.id)


    I made this while experimenting with random jumps to add this to the electron originally, to make it behave like a real electron and have quantum "uncertainty". This teleporting plasma is just an offshoot of my experimenting.
  • SkinnySatinTiger
    28th Dec 2011 Member 0 Permalink
    Edited once by SkinnySatinTiger. Last: 3rd Oct 2022
  • meezala
    8th Feb 2019 Member 0 Permalink

    Cool! Although technically this doesn't imply quantum physics, as the game runs on a pseudo randomizer engine.