Lua Experiments: Custom Animated Explosion

Demon666 - Custom level - from Windows

This level is locked.

Discuss this level

Log in to comment on this level.
  • rilesrowe: Does lag, but its probly cause the pic is already on the screen, or cause there are a LOT (no of fence) of lines of code you could chuck, or shorten.
  • dp1000: It lags a little
  • Ronan: It…lags
  • teox: not as much as this one does
  • Demon666: @teox: I got one more question..... does this level lag as well? http://principiagame.com/level/3821
  • teox: still lags
  • Demon666: @Leis: even with my flaming wallpaper mine used to last 7 and a half hours (playing apparatus constantly) but for some reason now i cant break the 3 and a half hour mark now playing principia constantly. Whats interesting is that buying a new battery didn't help much either lmao.
  • Leis: @Demon666: I do use live wallpaper and heavy gaming..but I battery only last 6 hour (non-stop play principia )
  • Demon666: @teox: if its not to much trouble can you quickly close other apps running on your tablet and try this level again? it might be that your tablet has other background processes running that is causing it to lag.
  • Demon666: @Leis: mine it usually around 841mb but that might be cuz of my live wallpaper lol i do always clear out my ran frequently tho.
  • Demon666: @teox: yeah the problem is that none of my devices lag so its difficult for me to test out solutions for decreasing lag.....But I will run some experiments in the future to try and cut down as much of the lag as possible.
  • Leis: @Demon666: yup mine is rooted but actually it is no different.. cause some ppl phone have too much system rubbish or too many useless file in file directory which sometime cost your ram (because u system need keep preparing if u suddenly open it ),I personally always keep clean of my phone..manual delete empty files..lol my ram not running more then 600mb
  • teox: still very laggy
  • Demon666: @Leis: ikr it makes no sense some older devices lag can run it fine while newer devices can't lol..... also I'm just wondering is your note 2 rooted? because i used to think that because my note 2 is rooted and not running touchwiz that it helped performance.
  • Leis: @Demon666: my note 2 run flawless too :D
  • teox: galaxy tab 2 Samsung
  • Demon666: @teox: if you dont mind me asking.... what device are you using?
  • teox: bit laggy
  • teox: bit laggy
  • incrazyboyy: Motorola RAZR i
    no lag
    good work
  • JOELwindows7: @Demon666: My head had just exploded! This is already 4-core while S4 is 4-core of ~1 GHz maybe some RAM reason.
  • Demon666: @JOELwindows7: yeah its strange that my galaxy note 2 with only a 1.6ghz cpu runs flawlessly while a 2.5ghz nexus 5 lags lol. I'll be running future experiments to try and cut down the lag as much as possible. but for now I really need to finish my transformer lol.
  • Ctjet: No lag
  • The_Blacksmith_: Awesome! Knew youd get those gifs working at some point! LIKE
  • JOELwindows7: My device is Nexus 5
  • JOELwindows7: Why mine was lagging?! Certain Device
  • Demon666: @Cralant: subtracting the top and left row texels fixed it..... idky but idc as long as it works.... thanks...... oh and hows the lightning coming along? lol
  • Cralant: @Demon666: including the texels outside your frame? Have you used all 128 by 128 texels because they are all set as default a half transparent greyish color.
  • Demon666: @Cralant: they already have an alpha of 0 all the alpha texels have are {1,1,1,0}
  • Cralant: @Demon666: The lines are caused from the blurring between the texels that are not set and the texels that have been set as 0 alpha, as a result the lines you see are the blending between the two. For your current setup it would be best to take away 1 from both the top x and top y texel that are rendered in the sprite. Or just add another row and column of 0 alpha pixels in the top and right sides.
    Regarding having the animation on one lua script object. Texel size is currently limited to 128 by 128 which depending on the frame size can be many frames or a couple. For this size you may have issues fitting all the frames into the texel sheet. If you cannot do this then the only option to have the whole mechanism on one object would be to make tables containing each pixel array and setting each of those as the loaded texels each keyframe. Although this is more resource intensive then the current situation.
  • Demon666: @zardOz: thanks ill look into it. one more thing id like to ask it how to get rid of of those transparent lines near the top and right of the image
  • zardOz2: @Demon666: see cralents playing card thing he put all cards in one pattern and called for sections of the pattern
  • Golden: Looks good explosion though
  • Golden: Dosent lag my phone
  • zardOz2: The limit is 65k or something, some devices have a 9000 visible limit, will be fixed in the update should be able to handle 50-30x30 patterens and any extra code... still may lag tho lol
  • Demon666: almost* no idea
  • Demon666: i did just have an idea for optimizing the animation by keeping it all on one sprite and only changing the pixels that need to be changed..... i have no idea how to do that tho lmao
  • Demon666: @zardOz: lmao.... your phones really hates my experiments with a passion.... this was kinda a beta verson tho.... the problem with making it all onto one lua is that lua has a character limit so it might be impossible even for a small 8 frame animation like this....
  • zardOz2: Pretty bad, I just ran a test with the lua's only the lag becomes noticable with 3 luas only. The single works fine though, you may have to set all the patterns in a single first run and show each frame for a certain# of bits. Of course Im running on a prototype smartphone from 1996
  • Demon666: @zardOz: lol how badly does it lag?
  • zardOz2: The pattern code looks good, It must be the multiple luas+electronics. I think it will run well once you shove it all in one code.
  • zardOz2: So you dont want me say say anything then? This is confusing;)

LEVEL ID: 3894