Log In  


Cart #cooling_particles-0 | 2019-12-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

Inspired by @dw817

Controls:

-Arrow Keys to move

// comment cls() call in draw method for those effects:

3


1

Cart #refoyoyaru-0 | 2019-12-09 | Code ▽ | Embed ▽ | No License
1

Definitely looks a lot better with the CLS off.
WOW ! It's like a fiery dragon ! Hats off and a STAR to you.

Minju instead of using NEW and DEL you can just scan the whole screen for colors to "burn" them. That's what I do HERE:

https://www.lexaloffle.com/bbs/?tid=27955


@dw817 haha nice !! The credits belong to you since I got inspired to do this by your version actually :D I only saw a gif these days in the gif dump so I am really happy that I now get to try out your version and get these tips from you!


Hey ! Glad to help, @Yesyoor. Yours is quite different though in that it makes a cool Dragon's tail. I'm thinking you could make a wicked SNAKE game where you eat glowing fireballs and have to avoid moving ice-bugs or ice-cubes or something.

I'm done for the day though. Have a good one !


:D thanks !
I started my pico-8 journey with my version of snake and currently I am working on a top down 2d game using libgdx, thats why I felt like recreating smaller things here and try stuff out ;)

Thanks again for showing me the people behind the magic :D


@dw817
you said you look for a color and burn them, I only found the pal() function in your code. Do you mean you change its transparency to "burn" it? Btw your code is so compact, impressive!


It's pretty straight-forward and the reason my code is often compact is I'm bone lazy. :)

I rarely use a variable name that exceeds 2-letters or an array that is 3. Now if @zep does make a custom IDE or something where you have 64-characters across, I may start to use longer variable names.

The PAL() function is just to set the colors in a line from dark to light for the fire.

Then I scan the screen a bunch of times. If the pixel is not black I change it to the next color darker and plot a random one beside it. By doing this thousands of time you get a nice burn effect.

Glad you're enjoying this code ! I also make use of this for the logo in my major release game, "Mildew Manor" found HERE:

https://www.lexaloffle.com/bbs/?tid=31730


yes please! More characters across would really be a big help! I tried coding in vs and then copying it to pico-8 once, but it was no good and I stick to code everything inside the pico-8 editor :D a possibility to zoom would be awesome!

I ll look up your code again right away :D



[Please log in to post a comment]