some fun elements

  • 6nop6nop
    23rd May 2022 Member 1 Permalink
    elem.allocate("MEEP", "GGEL")
    elem.element(elem.MEEP_PT_GGEL, elem.element(elem.DEFAULT_PT_GLOW))
    elem.property(elem.MEEP_PT_GGEL, "Name", "GGEL")
    elem.property(elem.MEEP_PT_GGEL, "Description", "gravity gel")
    elem.property(elem.MEEP_PT_GGEL, "Colour", 0x7f00ff)
    elem.property(elem.MEEP_PT_GGEL, "Gravity", 0.1)
    elements.property(elem.MEEP_PT_GGEL, "Update",function (i, x, y, ss, nt)
    sim.gravMap(x/4,y/4,0.1)
    end)
    elements.property(elem.MEEP_PT_GGEL, "Graphics",function (i, colr, colg, colb)
    return 0, 0x100019, 255, colr, colg, colb, 120, colr, colg, colb
    end)
     
    local INVR = elem.allocate("UWU", "INVR")
    elem.element(elem.UWU_PT_INVR, elem.element(elem.DEFAULT_PT_DMND))
    elem.property(elem.UWU_PT_INVR, "Name", "INVR")
    elem.property(elem.UWU_PT_INVR, "Description", "invincible virus")
    elem.property(elem.UWU_PT_INVR, "Colour", 0x00ff7f)
    elem.property(elem.UWU_PT_INVR, "MenuVisible", 1)
    elem.property(elem.UWU_PT_INVR, "MenuSection", SC_SPECIAL)
    elements.property(elem.UWU_PT_INVR, "Update",
    function(i, x, y, ss, nt)
    if (ss < nt) then
    for r in sim.neighbors(x,y) do
    --t = sim.partProperty(r,sim.FIELD_TYPE)
    if --[[ t and ]] t ~= INVR then
    --sim.partProperty(r,sim.FIELD_TYPE,INVR)
    tpt.parts[r].type = INVR
    end
    end
    end
    end)
     
  • kitsy
    25th May 2022 Member 0 Permalink

     

    Edited 3 times by Fur-one222. Last: 25th May 2022
  • 6nop6nop
    25th May 2022 Member 0 Permalink

    what

  • RebMiami
    5th Jun 2022 Member 0 Permalink

    Oh, I like gravity gel! It reminds me of how surface tension acts in real liquids.

     

    Part of me says "amoeba" when I see it. Could you make a version of it that can slowly eat and grow?