Pixel Grapher

Golden - Custom level - from Android
PlayEdit5 players liked this.Log in to like this level.

HXCTcreations have me his code dipped in magical spell of compaction and realistic, it turned out it was amazing than my code, I gotta try harder next time lol

Credits to him, the creator of lua, HXCTcreations lol

Views: 597 Downloads: 225 Unique objects: 1 Total objects: 12

Discuss this level

Log in to comment on this level.
  • Golden: @gemaine: take your time
  • gemaine: @Golden: golden I don't think its going to be out on Monday just got 3\5 or it done
  • Golden: @HXCTCreations: im actually surprised how compact and realistic your code just did...
  • Golden: @HXCTCreations: wow, thanks, at least I tried my best to make lua compatible to be adjustable by only adding id to pixels
  • HXCTCreations: Try this :)
    for i=1,#pix do
    local val=(this:read(0)*#pix+1-i)
    if val>1 then val=1 end
    box[i]:set_color(val,val,val)
    end
  • Golden: @Demon666: @HXCTcreations: nvm I solved it :D
  • Golden: Do I have to use % math?
  • Golden: @Demon666: @HXCTcreations: is there any chance that math function can sort the boxes out automatically, I placed math in pixmath variable, it counts amount of pixel are in table and chooses math to sort it out, but I was unable to find a better way to keep it compact, like for i=1,#pix do; if this:read(0) > pixmath then --this, I need to multiply by 1 box then to 2 box?
  • Golden: @JaredmosesGuantia: oops, thanks for reminding me lol
  • JaredmosesGuantia: Did you say "beak" on the description?

LEVEL ID: 24388